@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-variable-v1.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-variable-v1.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fafafb;
  --surface: #fff;
  --soft: #f2f3f5;
  --tint: #edf0fa;
  --text: #23262d;
  --muted: #606671;
  --accent: #485aa6;
  --on-accent: #fff;
  --outline: #e0e3e9;
  --shadow: rgb(35 38 45 / 6%);
  --page: min(1120px, calc(100% - 80px));
  --section-space: clamp(56px, 6vw, 84px);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #111317;
  --surface: #17191e;
  --soft: #23262d;
  --tint: #272f49;
  --text: #edeef2;
  --muted: #b0b5c1;
  --accent: #adbefa;
  --on-accent: #18234a;
  --outline: #343840;
  --shadow: rgb(0 0 0 / 16%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #111317;
    --surface: #17191e;
    --soft: #23262d;
    --tint: #272f49;
    --text: #edeef2;
    --muted: #b0b5c1;
    --accent: #adbefa;
    --on-accent: #18234a;
    --outline: #343840;
    --shadow: rgb(0 0 0 / 16%);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: var(--background); color: var(--text); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

h1, h2 { margin: 0; font-family: "Newsreader", Georgia, serif; font-weight: 450; letter-spacing: -.025em; line-height: 1.14; text-wrap: balance; overflow-wrap: break-word; }
h1 { max-width: 11ch; font-size: clamp(3.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2.3rem, 3.5vw, 3rem); }
h3 { margin: 0; font-size: 1.05rem; font-weight: 650; line-height: 1.5; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header, footer, .hero, .section, .reflection-showcase, .closing, .trust-strip, .legal-main, .legal-footer { width: var(--page); margin-inline: auto; }
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 96px; padding-block: 20px; border-bottom: 1px solid var(--outline); }
.site-header-actions, .legal-header-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 28px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; font-family: "Newsreader", Georgia, serif; font-size: 1.4rem; font-weight: 600; text-decoration: none; }
.brand-copy { display: grid; gap: 5px; line-height: 1.15; }
.brand-tagline { color: var(--muted); font-family: "Manrope", system-ui, sans-serif; font-size: .75rem; font-weight: 500; }
.brand-mark { width: 40px; height: 44px; object-fit: contain; }
.site-header nav, footer nav, .legal-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-header nav a, footer nav a, .legal-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .8rem; font-weight: 550; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"], footer nav a:hover, .legal-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }

.language-picker { position: relative; display: inline-flex; flex-shrink: 0; }
.language-picker::after { position: absolute; top: 50%; right: 12px; color: var(--muted); content: "⌄"; pointer-events: none; transform: translateY(-60%); }
.language-picker select { min-width: 68px; min-height: 44px; padding: 8px 28px 8px 12px; appearance: none; border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; font: 600 .75rem/1.5 "Manrope", system-ui, sans-serif; }
.language-picker option { background: var(--surface); color: var(--text); }

.landing-header { position: absolute; top: 0; left: 50%; transform: translateX(-50%); border-bottom: 1px solid rgb(255 255 255 / 16%); color: #fbf5e9; }
.landing-header .brand-tagline, .landing-header nav a { color: #d3d0dc; }
.landing-header nav a:hover { color: #fff; }
.landing-header .language-picker select { background: rgb(12 12 29 / 65%); border-color: rgb(255 255 255 / 25%); color: #fbf5e9; }
.landing-header .language-picker::after { color: #fbf5e9; }
.landing-header .language-picker option { color: var(--text); background: var(--surface); }
.hero { position: relative; isolation: isolate; width: 100%; overflow: hidden; background: #0c0c1d; color: #fbf5e9; }
.hero-inner { width: var(--page); min-height: 820px; margin-inline: auto; display: flex; align-items: center; padding-block: 170px 100px; }
.hero-copy { position: relative; z-index: 2; width: 60%; min-width: 0; }
.hero h1 { max-width: none; white-space: pre-line; font-size: clamp(3.8rem, 6.5vw, 6.2rem); font-weight: 350; letter-spacing: -.045em; line-height: 1.08; text-wrap: initial; }
.hero .eyebrow { color: #dbc8a7; }
.hero .hero-lede { max-width: 40ch; color: #d5d0de; }
.hero .privacy-cue { color: #c4bfce; }
.hero .store-link, .closing .store-link { background: #efe1c3; color: #282138; border-color: #efe1c3; border-radius: 4px; }
.hero .store-coming, .closing .store-coming { color: #d5d0de; border-color: rgb(255 255 255 / 24%); border-radius: 4px; }
.hero .store-coming strong, .closing .store-coming strong { color: #fbf5e9; }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, #0c0c1d, transparent 30%), linear-gradient(90deg, #0c0c1d 18%, rgb(12 12 29 / 85%) 35%, transparent 65%); pointer-events: none; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: .7rem; font-weight: 650; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; }
.hero-lede { max-width: 45ch; margin: 28px 0 32px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.store-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.store-link, .store-coming { display: grid; align-content: center; min-height: 56px; padding: 12px 20px; border: 1px solid var(--outline); border-radius: 10px; text-decoration: none; line-height: 1.5; }
.store-link { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 650; text-align: center; }
.store-link:hover { box-shadow: 0 3px 12px var(--shadow); text-decoration: underline; text-underline-offset: 4px; }
.store-coming { min-width: 144px; color: var(--muted); }
.store-coming strong { color: var(--text); font-size: .8rem; font-weight: 550; }
.store-coming small { margin-top: 2px; font-size: .68rem; }
.privacy-cue { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--muted); font-size: .75rem; }
.privacy-cue svg { width: 14px; height: 14px; }

/* The original artwork forms one continuous scene behind the opening. */
.hero-visual { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 66%; margin: 0; }
.dreamscape-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.trust-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; border-block: 1px solid var(--outline); }
.trust-strip p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: .76rem; }
.trust-strip p::before { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--accent); content: ""; }

.section { padding-block: var(--section-space); }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading > p:not(.eyebrow), .showcase-copy > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.section-heading > p:not(.eyebrow) { max-width: 64ch; }
.journal-section .section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; max-width: none; margin-bottom: 48px; }
.journal-section .eyebrow, .journal-section h2 { grid-column: 1; }
.journal-section .section-heading > p:not(.eyebrow) { grid-column: 2; grid-row: 1 / 3; align-self: center; max-width: 46ch; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: 24px; border-top: 1px solid var(--outline); }
.step-number { display: block; margin-bottom: 20px; color: var(--accent); font: 400 2.4rem/1 "Newsreader", Georgia, serif; }
.steps p, .privacy-grid p { margin: 12px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.85; }

.reflection-showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 7vw, 100px); padding-block: var(--section-space); border-block: 1px solid var(--outline); }
.showcase-copy > p.disclaimer { padding-top: 20px; border-top: 1px solid var(--outline); font-size: .75rem; line-height: 1.8; }
.reflection-art { position: relative; min-width: 0; margin: 0; padding: 42px 0 0 36px; }
.reflection-art::before { position: absolute; top: -12px; left: 12px; content: "“"; color: var(--accent); opacity: .3; font: 150px/1 "Newsreader", Georgia, serif; }
.reflection-art figcaption { position: relative; }
.reflection-art .eyebrow { margin-bottom: 20px; font-size: .65rem; }
.reflection-art blockquote { margin: 0; max-width: 30ch; font-family: "Newsreader", Georgia, serif; font-size: clamp(1.65rem, 2.4vw, 2.1rem); font-weight: 400; line-height: 1.4; text-wrap: pretty; }
.reflection-source { margin: 24px 0 0; color: var(--muted); font-size: .75rem; }

.privacy-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0 72px; align-items: start; }
.privacy-section .section-heading { grid-column: 1; margin-bottom: 0; }
.privacy-grid { grid-column: 2; grid-row: 1 / 3; }
.privacy-grid details { border-bottom: 1px solid var(--outline); }
.privacy-grid details:first-child { border-top: 1px solid var(--outline); }
.privacy-grid summary { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; font-size: .95rem; font-weight: 600; cursor: pointer; list-style: none; }
.privacy-grid summary::-webkit-details-marker { display: none; }
.privacy-grid summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.privacy-grid details[open] summary::after { content: "−"; }
.privacy-grid p { margin: 0; padding: 0 32px 24px 0; }
.privacy-section .text-link { grid-column: 1; justify-self: start; }
.text-link { display: inline-block; margin-top: 32px; padding-block: 8px; color: var(--accent); font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { color: var(--text); }
.closing { width: 100%; display: grid; justify-items: center; gap: 30px; padding: 72px 24px; background: #0c0c1d; color: #fbf5e9; text-align: center; }
.closing .eyebrow { color: #dbc8a7; }
.closing h2 { max-width: 24ch; font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 400; }
.closing .store-actions { justify-content: center; }

footer { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 14px 48px; padding-block: 40px 32px; border-top: 1px solid var(--outline); color: var(--muted); }
footer .footer-brand { color: var(--text); font-size: 1.2rem; }
footer p { grid-column: 1; max-width: 45ch; margin: 0; font-size: .76rem; }
footer nav { grid-column: 2; grid-row: 1 / 3; align-items: flex-end; flex-direction: column; gap: 0; }
footer small { grid-column: 1; margin-top: 16px; font-size: .68rem; }
.appearance-picker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .72rem; }
.appearance-picker select { min-width: 0; min-height: 44px; max-width: 180px; padding: 8px 10px; border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
footer .appearance-picker { grid-column: 2; grid-row: 3; justify-self: end; margin-top: 16px; }

.legal-main { padding-block: 64px var(--section-space); }
.legal-title { max-width: 900px; padding-bottom: 56px; }
.legal-title h1 { max-width: 22ch; font-size: clamp(2.6rem, 4.5vw, 3.7rem); line-height: 1.16; }
.legal-title > p:last-child { margin: 24px 0 0; color: var(--muted); font-size: .9rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 700px); justify-content: space-between; gap: 64px; }
.legal-index { position: sticky; top: 24px; align-self: start; border-block: 1px solid var(--outline); }
.legal-index > summary { padding: 16px 4px; font-size: .8rem; font-weight: 650; cursor: pointer; }
.legal-index > summary::marker { color: var(--accent); }
.legal-index[open] > summary { border-bottom: 1px solid var(--outline); }
.legal-toc { display: grid; gap: 4px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 16px 4px; }
.legal-toc strong { margin-bottom: 12px; font-size: .8rem; }
.legal-toc a { padding-block: 5px; color: var(--muted); font-size: .76rem; line-height: 1.55; text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.legal-toc .legal-toc-document { margin-top: 16px; color: var(--text); font-weight: 650; }
.legal-toc .legal-toc-document:first-of-type { margin-top: 0; }
.legal-copy, .legal-title { min-width: 0; overflow-wrap: anywhere; }
.legal-document + .legal-document { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--outline); }
.legal-document-heading { padding-bottom: 24px; scroll-margin-top: 24px; }
.legal-document-heading h2 { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.2; }
.legal-document-heading p { margin: 16px 0 0; }
.legal-document > p:first-of-type { margin-top: 0; }
.legal-document > section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--outline); scroll-margin-top: 24px; }
.legal-document h3 { margin-bottom: 16px; font-family: "Newsreader", Georgia, serif; font-size: 1.8rem; font-weight: 500; line-height: 1.3; }
.legal-document h4 { margin: 24px 0 0; font-size: 1rem; line-height: 1.5; }
.legal-copy p, .legal-copy li { color: var(--muted); font-size: .92rem; line-height: 1.9; }
.legal-copy p { margin-block: 16px; }
.legal-copy a { color: var(--accent); text-underline-offset: 4px; }
.legal-copy ul, .legal-copy ol { padding-left: 1.4rem; }
.legal-copy li + li { margin-top: 12px; }
.legal-copy .legal-consent, .deletion-highlight { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--outline); border-radius: 12px; background: var(--tint); }
.legal-copy .legal-consent strong, .deletion-highlight strong { color: var(--accent); }
.deletion-steps li { padding-left: .3rem; }
.deletion-fallback p { font-size: .85rem; }
.legal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-block: 28px 36px; border-top: 1px solid var(--outline); }
.legal-footer small { margin: 0; font-size: .72rem; }

.error-page { display: grid; place-items: center; padding-block: 40px; }
.error-page main { width: min(650px, calc(100% - 40px)); text-align: center; }
.error-mark { width: 80px; height: 80px; margin: 0 auto 24px; object-fit: contain; }
.error-page h1 { max-width: 100%; font-size: clamp(2.8rem, 6vw, 4rem); }
.error-page main > p:not(.eyebrow) { margin: 24px auto; color: var(--muted); }
.primary-link { display: inline-block; margin-top: 12px; padding: 14px 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: .87rem; font-weight: 650; text-decoration: none; }
.error-page .appearance-picker { display: flex; justify-content: center; margin: 32px auto 0; }

@media (max-width: 1050px) {
  .site-header-actions, .legal-header-actions { gap: 20px; }
  .site-header nav { gap: 0 16px; }
  .site-header nav a { font-size: .75rem; }
  .hero-inner { min-height: 740px; }
  .hero h1 { font-size: clamp(3.5rem, 7vw, 4.5rem); }
  .legal-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; gap: 16px; }
  .site-header-actions { display: contents; }
  .landing-header nav a[href="/legal"] { display: none; }
  .landing-header nav { order: 3; flex-basis: 100%; gap: 0 24px; }
  .hero-inner { min-height: 820px; align-items: flex-end; padding-block: 250px 60px; }
  .hero-copy { width: 100%; }
  .hero-visual { width: 100%; }
  .dreamscape-image { object-position: right top; }
  .hero::after { background: linear-gradient(0deg, #0c0c1d 3%, rgb(12 12 29 / 90%) 24%, rgb(12 12 29 / 30%) 65%, rgb(12 12 29 / 48%)); }
  .hero h1 { font-size: clamp(3.4rem, 8vw, 4.8rem); }
  .hero .hero-lede { max-width: 48ch; }
  .trust-strip { justify-content: flex-start; gap: 14px 28px; }
  .journal-section .section-heading { display: block; margin-bottom: 32px; }
  .journal-section .section-heading > p:not(.eyebrow) { margin-top: 20px; max-width: 60ch; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; }
  .step-number { grid-row: 1 / 3; margin: 0; font-size: 2rem; }
  .steps h3, .steps p { grid-column: 2; }
  .steps p { max-width: 60ch; }
  .reflection-showcase { grid-template-columns: 1fr; gap: 40px; }
  .reflection-art { padding-left: 24px; }
  .privacy-section { grid-template-columns: 1fr; gap: 28px; }
  .privacy-section .section-heading, .privacy-grid, .privacy-section .text-link { grid-column: 1; grid-row: auto; }
  .privacy-section .text-link { margin-top: 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-index { position: static; }
  .legal-toc { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; padding: 16px 4px; }
  .legal-toc strong, .legal-toc .legal-toc-document { grid-column: 1 / -1; }
  .legal-toc a { min-height: 36px; }
  .legal-header-actions { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 540px) {
  :root { --page: calc(100% - 40px); --section-space: 56px; }
  .site-header { min-height: 80px; padding-block: 18px 12px; gap: 12px; }
  .brand { gap: 9px; font-size: 1.23rem; }
  .brand-mark { width: 34px; height: 40px; }
  .brand-tagline { font-size: .67rem; }
  .landing-header nav { gap: 0 18px; }
  .site-header nav a { font-size: .72rem; }
  .legal-header-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .legal-header-actions nav { flex: 1; }
  h1 { max-width: 11ch; font-size: clamp(2.8rem, 11vw, 3.5rem); }
  h2 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .eyebrow { margin-bottom: 16px; font-size: .66rem; }
  .hero-inner { min-height: 780px; padding-top: 270px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(2.7rem, 10.5vw, 3.7rem); }
  .hero .eyebrow { font-size: .64rem; }
  .hero-lede { margin: 22px 0 26px; font-size: .95rem; }
  .store-actions { gap: 10px; }
  .store-link, .store-coming { padding-inline: 16px; }
  .store-coming { min-width: 128px; }
  .hero-visual { height: 100%; }
  .dreamscape-image { object-position: center top; }
  .reflection-art blockquote { font-size: 1.65rem; }
  .trust-strip { flex-direction: column; padding-block: 20px; gap: 12px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p:not(.eyebrow), .showcase-copy > p:not(.eyebrow) { margin-top: 18px; font-size: .9rem; }
  .showcase-copy > p.disclaimer { font-size: .75rem; }

  .closing { padding-block: 56px; }
  .closing h2 { max-width: 18ch; }
  footer { grid-template-columns: 1fr; gap: 12px; padding-block: 32px; }
  footer p, footer nav, footer small, footer .appearance-picker { grid-column: 1; grid-row: auto; }
  footer nav { align-items: flex-start; margin-top: 8px; }
  footer small { margin-top: 8px; }
  footer .appearance-picker { justify-self: start; margin-top: 8px; }
  .legal-main { padding-top: 40px; }
  .legal-title { padding-bottom: 32px; }
  .legal-title h1 { font-size: 2.5rem; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc a { min-height: 40px; }
  .legal-document h3 { font-size: 1.65rem; }
  .legal-copy p, .legal-copy li { font-size: .9rem; }
  .legal-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .store-link, .primary-link { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
}
