/*
  Shared styles for privacy.html and imprint.html.
  The tokens and nav mirror the inline CSS in index.html (the footer is shared via footer.js / footer.css); if the home page's design changes,
  update the matching rules here (or lift both into one shared stylesheet).
*/
/* Self-hosted fonts (downloaded from Google Fonts, SIL Open Font License). No requests are made to Google. */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #e8e9ec;
  --ink: #0d0f14;
  --mute: rgba(13, 15, 20, 0.56);
  --line: rgba(13, 15, 20, 0.14);
  --prism: linear-gradient(90deg, #ff3b3b, #ffb000, #2fd27a, #1e90ff, #a24bff);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --pad: 40px;
  --surface: rgba(255, 255, 255, 0.62);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(13, 15, 20, 0.04), 0 18px 40px -22px rgba(13, 15, 20, 0.28);
}


/* Background washes: two broad radial colours (sage top-left, sand bottom-right) on a fixed layer behind the page,
   so the content scrolls over them and they stay still. */
:root {
  --wash:
    radial-gradient(ellipse 85% 95% at 0% 0%, rgba(181, 203, 190, 1), transparent 88%),
    radial-gradient(ellipse 85% 95% at 100% 100%, rgba(220, 203, 185, 1), transparent 88%);
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--wash); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ---------- Nav (floating glass) ---------- */
.nav {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  width: min(1120px, calc(100% - 32px)); padding: 8px 8px 8px 24px;
  color: var(--ink); background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(13, 15, 20, 0.05), 0 12px 32px -14px rgba(13, 15, 20, 0.25);
}
.nav__logo { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; text-transform: uppercase; color: inherit; text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { color: inherit; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.62; transition: opacity 0.25s ease; }
.nav__links a:hover, .nav__links a:focus-visible { opacity: 1; }
.nav__cta {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.nav__cta:hover { background: #262a33; }
.nav__cta:focus-visible, .nav__logo:focus-visible, .nav__links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Legal page ---------- */
.legal { padding: 168px var(--pad) 120px; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.label { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; font: 500 11.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--prism); }
.label span:first-child { color: var(--ink); }
.legal-title { font-weight: 900; font-size: clamp(52px, 9vw, 128px); line-height: 0.88; letter-spacing: -0.045em; text-transform: uppercase; }
.legal-title .serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.02em; }
.legal-updated { margin-top: 28px; font: 500 11.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.legal-copy { margin-top: 64px; border-top: 1px solid var(--ink); }
.legal-copy section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.legal-copy h2 { margin-bottom: 14px; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.legal-copy p { max-width: 680px; font-size: 16px; line-height: 1.65; color: var(--mute); }
.legal-copy p + p { margin-top: 14px; }
.legal-copy strong { color: var(--ink); font-weight: 600; }
.legal-copy a { color: var(--ink); text-underline-offset: 3px; }
.legal-copy a:hover { text-decoration-thickness: 2px; }
.legal-copy a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.legal-back { display: inline-flex; align-items: center; gap: 10px; margin-top: 56px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.4s var(--ease); }
.legal-back:hover { background-size: 0 1px; background-position: 100% 100%; }

/* The footer is shared: markup in footer.js, styles in footer.css. */

@media (max-width: 900px) {
  :root { --pad: 22px; }
  .legal { padding-top: 136px; padding-bottom: 88px; }
}
@media (max-width: 640px) {
  .nav { top: calc(10px + env(safe-area-inset-top, 0px)); width: calc(100% - 20px); padding: 6px 6px 6px 18px; }
  .legal-copy section { padding: 28px 0; }
}


/* ================= Mobile menu: burger + full-page overlay ================= */
.nav__burger, .menu { display: none; }
@media (max-width: 640px) {
  .nav__right { display: none; }
  .nav__burger { position: relative; display: block; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); -webkit-tap-highlight-color: transparent; }
  .nav__burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: top 0.35s var(--ease), transform 0.35s var(--ease); }
  .nav__burger span:nth-child(1) { top: 17px; }
  .nav__burger span:nth-child(2) { top: 25px; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .nav__burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  .menu {
    position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
    padding: calc(96px + env(safe-area-inset-top, 0px)) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
    background-color: var(--bg); background-image: var(--wash);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease), visibility 0s; }
  .menu__cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px -12px rgba(13, 15, 20, 0.6); }
  .menu__links { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
  .menu__links li { border-bottom: 1px solid var(--line); opacity: 0; translate: 0 14px; }
  .menu.is-open .menu__links li { opacity: 1; translate: 0 0; transition: opacity 0.5s var(--ease) calc(var(--i) * 60ms + 80ms), translate 0.5s var(--ease) calc(var(--i) * 60ms + 80ms); }
  .menu__links a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; color: var(--ink); font-size: clamp(34px, 11vw, 52px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; text-decoration: none; }
  .menu__links i { position: relative; font-style: normal; font-weight: 400; font-size: 28px; letter-spacing: 0; color: var(--ink); transition: rotate 0.55s var(--ease), color 0.4s var(--ease); }
  /* spectrum copy of the arrow fades in on hover / press / focus, same as the approach rows */
  .menu__links i::after { content: "\2197"; position: absolute; inset: 0; background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transition: opacity 0.4s var(--ease); }
  .menu__links a:hover i, .menu__links a:active i, .menu__links a:focus-visible i { rotate: 45deg; color: transparent; }
  .menu__links a:hover i::after, .menu__links a:active i::after, .menu__links a:focus-visible i::after { opacity: 1; }
  .menu__links a:focus-visible, .menu__cta:focus-visible, .menu__foot a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
  .menu__foot { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 8px; font: 500 11.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
  .menu__foot a { color: var(--mute); text-decoration: none; }
  .menu__foot a[aria-current="page"] { color: var(--ink); }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu, .menu.is-open, .nav__burger span, .menu.is-open .menu__links li { transition: none; }
}

/* ---------- 404 page ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 140px var(--pad) 100px; text-align: center; }
.nf .label { margin-bottom: 28px; }
.nf__code { font-weight: 900; font-size: clamp(120px, 24vw, 320px); line-height: 0.8; letter-spacing: -0.05em; }
.nf__title { margin-top: 20px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em; }
.nf__text { max-width: 520px; margin-top: 28px; color: var(--mute); font-size: 16px; line-height: 1.6; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; transition: translate 0.35s var(--ease), background 0.3s; }
.btn:hover { translate: 0 -2px; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn--ink { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px -12px rgba(13, 15, 20, 0.6); }
.btn--line { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--lift); }
@media (max-width: 640px) { .nf__actions { flex-direction: column; width: 100%; } }
