/* Shared styles for the smaller pages: the privacy policy and the 404 page.
   The home page keeps its own copy of the palette inline, so a change to the colours goes in both places. */
:root {
  --gutter: clamp(20px, 5vw, 56px);
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
  --bg: #F4F3EF; --bg-2: #EBE8E1; --panel: #FFFFFF;
  --text: #1C1F2E; --muted: #5A5E6E;
  --line: rgba(28, 31, 46, .12); --line-strong: rgba(28, 31, 46, .26);
  --copper: #B87333; --copper-text: #9A5A22; --btn: #A8652A; --on-btn: #FFFFFF; --live: #2F7D5B;
  --logo-a: #1C1F2E; --logo-b: #B87333;
  --sky: linear-gradient(180deg, #74AAD6 0%, #9CC6E6 42%, #CFE2EE 78%, #E9EFF1 100%);
  --night: 0; --day: 1;
  --dune-far2: #F1E4CB; --dune-far: #EDDABA; --dune-mid: #DFC090; --dune-line: rgba(160, 110, 50, .28); --silhouette: #1C1F2E;
  --cover-1: #B87333; --cover-2: #F3E9D6; --cover-3: #CF9367;
  --show-sun: none; --show-moon: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #12141F; --bg-2: #181B29; --panel: #1A1D2B;
  --text: #EEEAE3; --muted: #A7A29A;
  --line: rgba(238, 234, 227, .10); --line-strong: rgba(238, 234, 227, .24);
  --copper: #CF9367; --copper-text: #D9A57C; --btn: #CF9367; --on-btn: #12141F; --live: #7CC8A2;
  --logo-a: #EEEAE3; --logo-b: #CF9367;
  --sky: linear-gradient(180deg, #05070F 0%, #0C1024 45%, #1A1F3B 80%, #262C4B 100%);
  --night: 1; --day: 0;
  --dune-far2: #20264A; --dune-far: #1C2140; --dune-mid: #151932; --dune-line: rgba(238, 234, 227, .07); --silhouette: #07090F;
  --cover-1: #C98A4B; --cover-2: #CDBFA6; --cover-3: #A86A36;
  --show-sun: block; --show-moon: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12141F; --bg-2: #181B29; --panel: #1A1D2B;
  --text: #EEEAE3; --muted: #A7A29A;
  --line: rgba(238, 234, 227, .10); --line-strong: rgba(238, 234, 227, .24);
  --copper: #CF9367; --copper-text: #D9A57C; --btn: #CF9367; --on-btn: #12141F; --live: #7CC8A2;
  --logo-a: #EEEAE3; --logo-b: #CF9367;
  --sky: linear-gradient(180deg, #05070F 0%, #0C1024 45%, #1A1F3B 80%, #262C4B 100%);
  --night: 1; --day: 0;
  --dune-far2: #20264A; --dune-far: #1C2140; --dune-mid: #151932; --dune-line: rgba(238, 234, 227, .07); --silhouette: #07090F;
  --cover-1: #C98A4B; --cover-2: #CDBFA6; --cover-3: #A86A36;
  --show-sun: block; --show-moon: none;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 40; padding: 10px 14px; border-radius: 8px;
  background: var(--btn); color: var(--on-btn); text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

/* Header */
.page-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; text-decoration: none; }
.logo { height: 23px; width: auto; aspect-ratio: 1502 / 228; }
.controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: 7px; }
.lang a {
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.6; padding: 4px 9px; border-radius: 5px;
  color: var(--text); opacity: .7; text-decoration: none;
}
.lang a[aria-current] { background: var(--text); color: var(--bg); opacity: 1; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; color: var(--text);
}
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: var(--show-sun); }
.icon-moon { display: var(--show-moon); }

/* Buttons and line icons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 1rem; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn) 86%, var(--text)); }
.btn-ghost { border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 18%, transparent); }
.btn-ghost:hover { border-color: var(--text); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Policy text */
.doc { max-width: 44rem; padding-block: clamp(36px, 6vw, 72px) clamp(64px, 8vw, 112px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.back .icon { width: 16px; height: 16px; }
.doc h1 { margin: 28px 0 0; font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.updated { margin: 14px 0 0; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.doc .intro { margin-top: 1.6rem; font-size: 1.12rem; color: var(--text); }
.doc h2 { margin: 2.6rem 0 0; font-size: 1.3rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.doc p { margin: .9rem 0 0; color: var(--muted); }
.doc a { color: var(--text); text-decoration-color: var(--copper); text-underline-offset: .18em; }

/* Footer */
.site-footer { padding-block: 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin: 0; display: flex; align-items: center; gap: 14px; }
.footer-inner a { text-underline-offset: .18em; }
.footer-inner a:hover { color: var(--text); }
.footer-logo { height: 16px; width: auto; aspect-ratio: 1502 / 228; }

/* 404: the home page's desert, with a wagon that took a wrong turn */
.lost {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh;
  overflow: hidden; background: var(--sky);
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.night, .day { transition: opacity .6s ease; }
.night { opacity: var(--night); }
.day { opacity: var(--day); }
.clouds { fill: #FFFFFF; opacity: .92; }
.lost-top { position: relative; z-index: 1; display: flex; align-items: center; height: 68px; }
.lost-content { position: relative; z-index: 1; align-self: center; padding-block: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: .85rem; opacity: .75; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.lost h1 {
  margin: 14px 0 0; max-width: 15ch; font-weight: 600; font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.03em; text-wrap: balance;
}
.lede { margin: 1.3rem 0 0; max-width: 34rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); opacity: .82; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.land { position: relative; z-index: 1; width: 100%; height: clamp(180px, 25vw, 330px); }
.dune-far2 { fill: var(--dune-far2); }
.dune-far { fill: var(--dune-far); }
.ripples { fill: none; stroke: var(--dune-line); stroke-width: 1.4; stroke-linecap: round; }
.dune-mid { fill: var(--dune-mid); }
.dune-near { fill: var(--bg); }
.rig { fill: none; stroke: var(--silhouette); stroke-width: 2.2; stroke-linecap: round; }
.post { fill: var(--silhouette); }
.board { fill: var(--cover-1); }
.board-alt { fill: var(--cover-3); }
.board-text { fill: var(--silhouette); font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: .06em; }
