/* fjern.app — the one stylesheet.
 *
 * Transcribed from the two artboards in
 * design/Fjern Landingpage Konzept/ — "fjern Landingpage.dc.html" and
 * "fjern Unterseiten.dc.html" — which carry their values inline. Every colour,
 * size and shadow below is the artboard's; nothing here was invented.
 *
 * The tokens are the app's own (FjernColors / FjernType / Dimens), so the site
 * and the app agree on what fjern looks like.
 *
 * Responsive without a single media query, as the concept requires: flex-wrap
 * with flex-basis for the two-column blocks, auto-fit grids for the card rows,
 * clamp() for type and spacing. The layout finds its own breakpoints.
 */

/* ============================================================ fonts
   Self-hosted. Loading these from fonts.googleapis.com would hand every
   visitor's IP to Google before the privacy policy has said a word. */
@font-face { font-family: "DM Serif Display"; src: url("../fonts/DMSerifDisplay-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-Light.ttf") format("truetype");    font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-Regular.ttf") format("truetype");  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-Medium.ttf") format("truetype");   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Bold.ttf") format("truetype");    font-weight: 700; font-style: normal; font-display: swap; }

/* ============================================================ tokens */
:root {
  /* Paper and ink. One colour mode — the design commits to paper. */
  --desk: #EDE6D8;
  --paper: #F4EFE4;
  --card: #FFFCF6;
  --white: #FFFFFF;
  --ink: #1D2A2C;
  --ink-soft: #5C6B6A;
  --ink-faint: #94A09D;
  --rule: #E3DACA;

  /* Action */
  --teal: #0F6B63;
  --teal-pressed: #0A4F49;
  --teal-wash: #E4EFEC;

  /* Passport */
  --passport: #22362E;
  --passport-deep: #101A17;
  --gold: #C8963E;
  --parchment: #EBD9AE;

  /* Globe */
  --globe-coast: #A6C0CD;

  /* Bands */
  --band-bullseye: #6E3A5F;
  --band-sharp: #2E7D5B;
  --band-close: #C99A2E;
  --band-wide: #D2762F;
  --band-lost: #B7442F;

  /* Type */
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  /* Rhythm */
  --shell: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
}

/* ============================================================ reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px; /* the sticky header must not cover an anchor */
}
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-pressed); text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 60;
  background: var(--card); color: var(--ink); padding: 12px 18px;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(29,42,44,.2);
}
.skip-link:focus { top: 12px; }

/* ============================================================ language
   Both languages ship in the document; an inline script in <head> stamps
   .lang-de / .lang-en on <html> before first paint. With JavaScript off
   neither class is set and both languages stay visible — a store reviewer
   without JS still reads the whole privacy policy. */
html.lang-de [data-lang="en"],
html.lang-en [data-lang="de"] { display: none !important; }

/* ============================================================ shell */
.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}

/* ============================================================ header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(237, 230, 216, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 3px rgba(29,42,44,.18); }
.brand span { font-family: var(--serif); font-size: 27px; line-height: 1; color: var(--ink); }
.head-right { display: flex; align-items: center; flex-wrap: wrap; gap: 12px clamp(14px, 3vw, 32px); }
.head-nav { display: flex; flex-wrap: wrap; gap: 8px clamp(14px, 2.4vw, 28px); font-size: 15px; font-weight: 400; }
.head-nav a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 44px; }

/* The DE/EN pill. Always visible — it never collapses into a menu. */
.lang-pill {
  display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 999px; padding: 3px;
}
.lang-pill button {
  border: 0; border-radius: 999px; padding: 6px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  background: transparent; color: var(--ink-faint); font-weight: 400;
  cursor: pointer;
}
html.lang-de .lang-pill button[value="de"],
html.lang-en .lang-pill button[value="en"] {
  background: var(--teal); color: var(--card); font-weight: 700;
}

/* ============================================================ hero */
.hero {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 80px);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(40px, 5vw, 72px);
}
.hero__text { flex: 1 1 420px; min-width: 300px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--teal); color: var(--teal); border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 26px;
}
.badge-soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); display: block; flex: none;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04;
  letter-spacing: -.005em; margin-bottom: 22px; text-wrap: balance;
}
.hero__lead {
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65;
  color: var(--ink-soft); margin-bottom: 34px; max-width: 33em;
  text-wrap: pretty;
}
.hero__meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* The store badges: Apple's and Google's own artwork, at one height. Google's
   PNG is cropped to the badge itself, so both sit on the same line. */
.store-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.store-badge { display: inline-block; line-height: 0; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { display: block; height: 48px; width: auto; }

/* The phone, with the postcard tucked under its corner. */
.hero__device { flex: 0 1 400px; min-width: 280px; display: flex; justify-content: center; position: relative; }
.device { position: relative; width: min(100%, 340px); }
.device__phone {
  border-radius: 40px; background: var(--ink); padding: 9px;
  box-shadow: 0 30px 60px -20px rgba(29,42,44,.45), 0 2px 6px rgba(29,42,44,.2);
}
.device__phone img { width: 100%; border-radius: 32px; }
.device__postcard {
  position: absolute; bottom: -26px; left: -34px; width: 128px;
  padding: 9px 9px 26px; background: var(--card); border-radius: 4px;
  box-shadow: 0 14px 30px rgba(29,42,44,.18); transform: rotate(-7deg);
}
.device__postcard img { width: 100%; border-radius: 2px; }

/* ============================================================ sections */
.band-paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-card { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1;
}

/* --- how it plays: three steps --- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.step { display: flex; flex-direction: column; gap: 18px; }
.step__frame {
  background: var(--card); border-radius: 16px; padding: 22px;
  box-shadow: 0 10px 24px -14px rgba(29,42,44,.22), inset 0 0 0 1px rgba(29,42,44,.05);
  display: flex; justify-content: center; align-items: center;
}
.step__frame img.globe { width: 168px; height: 168px; }
.postcard-sm {
  width: 150px; padding: 8px 8px 24px; background: var(--white);
  border-radius: 3px; box-shadow: 0 6px 16px rgba(29,42,44,.14);
  transform: rotate(-2deg);
}
.step__no {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; color: var(--ink-faint); margin-bottom: 8px;
}
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.step p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }

/* --- the five bands --- */
.bands {
  margin-top: clamp(36px, 4vw, 56px); background: var(--card);
  border-radius: 18px; padding: clamp(22px, 3vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(29,42,44,.06);
}
.bands__kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 20px;
}
.bands__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.band { display: flex; flex-direction: column; gap: 8px; }
.band__head { display: flex; align-items: center; gap: 9px; }
/* Colour is never the only signal: each band carries its word and its range. */
.band__chip { width: 13px; height: 13px; border-radius: 3px; display: block; flex: none; }
.band__name { font-size: 16px; font-weight: 500; color: var(--ink); }
.band__dist { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

/* --- game modes --- */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.mode {
  background: var(--card); border-radius: 18px; padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 12px 28px -18px rgba(29,42,44,.28), inset 0 0 0 1px rgba(29,42,44,.05);
  display: flex; flex-direction: column; gap: 12px;
}
.mode__tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}

/* One card is lifted out of the row: the duel is the mode that gets people
   playing, so it wears the passport green the rest of the page reserves for
   the collection. Nothing about the grid changes — only the ink. */
.mode--featured {
  background: var(--passport);
  box-shadow: 0 18px 36px -20px rgba(29,42,44,.45), inset 0 0 0 1px rgba(200,150,62,.28);
}
.mode h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; }
.mode p { font-size: 16px; line-height: 1.62; color: var(--ink-soft); text-wrap: pretty; }
/* The duel card is dark: its own colours come after the base ones, or .mode p wins. */
.mode--featured .mode__tag { color: var(--gold); }
.mode--featured h3 { color: var(--parchment); }
.mode--featured p { color: rgba(235,217,174,.72); }

/* --- the passport, in its own dark green --- */
.passport { background: var(--passport); color: var(--parchment); }
.passport__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 72px);
}
.passport__text { flex: 1 1 380px; min-width: 290px; }
.passport .kicker { color: var(--gold); }
.passport h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 20px; color: var(--parchment); }
.passport__lead { font-size: 17px; line-height: 1.7; color: rgba(235,217,174,.78); margin-bottom: 30px; max-width: 32em; text-wrap: pretty; }
.passport__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px 28px; }
.passport__facts h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--parchment); letter-spacing: .01em; }
.passport__facts p { font-size: 15px; line-height: 1.6; color: rgba(235,217,174,.66); }
.passport__nothing { margin-top: 30px; font-size: 17px; line-height: 1.7; color: var(--gold); max-width: 30em; }
.passport__device { flex: 0 1 320px; min-width: 250px; display: flex; justify-content: center; }
.passport__device > div {
  border-radius: 34px; background: var(--passport-deep); padding: 8px;
  box-shadow: 0 26px 50px -18px rgba(0,0,0,.5); width: min(100%, 280px);
}
.passport__device img { width: 100%; border-radius: 27px; }

/* --- the postcard gallery ---
   Twelve cards, and the column count is stated rather than left to auto-fill:
   only 6, 4, 3 and 2 divide twelve, so every row comes out full. auto-fill
   would happily land on 5 or 7 and leave a ragged last row. The second and
   last place the site uses a media query, and for the same kind of reason as
   the first — the automatic answer is the wrong one here. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); }
@media (min-width: 560px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px)  { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(6, 1fr); } }
.postcard {
  background: var(--white); border-radius: 4px; padding: 7px 7px 20px;
  box-shadow: 0 10px 22px -14px rgba(29,42,44,.35), inset 0 0 0 1px rgba(29,42,44,.05);
}
.postcard img { width: 100%; border-radius: 2px; }

/* --- two columns: what it costs / offline --- */
.two-col {
  max-width: var(--shell); margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.two-col h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; margin-bottom: 16px; }
.two-col p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }
.two-col p + p { margin-top: 14px; }

/* --- FAQ --- */
.faq {
  max-width: var(--shell); margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px);
}
.faq__head { flex: 0 1 280px; min-width: 240px; }
.faq__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.faq__list { flex: 1 1 440px; min-width: 290px; display: flex; flex-direction: column; gap: 2px; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 18px; font-weight: 500; color: var(--ink); min-height: 44px;
}
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 18px; color: var(--teal); flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { font-size: 16px; line-height: 1.68; color: var(--ink-soft); margin-top: 14px; max-width: 46em; text-wrap: pretty; }

/* --- contact --- */
.contact {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(52px, 6vw, 84px) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.contact__text { flex: 1 1 360px; min-width: 280px; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; margin-bottom: 12px; }
.contact p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.btn-teal {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--card); border-radius: 999px;
  padding: 17px 34px; font-family: var(--sans); font-size: 17px; font-weight: 600;
  letter-spacing: .04em; min-height: 56px; text-decoration: none;
}
.btn-teal:hover { background: var(--teal-pressed); color: var(--card); text-decoration: none; }

/* ============================================================ the duel invite
   /d/{code}. Not on the artboards: built from their tokens and their cards,
   so an invited visitor lands on the same paper as everyone else. */
.invite {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  background: var(--card); border-radius: 18px; padding: clamp(20px, 2.6vw, 28px);
  box-shadow: 0 14px 32px -20px rgba(29,42,44,.3), inset 0 0 0 1px rgba(29,42,44,.06);
  max-width: 34em;
}
.invite[hidden] { display: none; }
.invite-meta { margin-bottom: 30px; }
.invite__text { flex: 1 1 230px; min-width: 0; }
.invite__label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 10px;
}
.invite__code {
  display: inline-block; font-family: var(--mono); font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700; letter-spacing: .14em; color: var(--teal);
  background: var(--teal-wash); border-radius: 12px; padding: 10px 16px;
  margin-bottom: 14px; user-select: all;
}
.invite__hint { font-size: 15px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
/* White under the code, whatever the card is: a scanner wants the contrast. */
.invite__qr {
  flex: none; width: 132px; height: 132px; color: var(--ink);
  background: var(--white); border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(29,42,44,.08);
}
.invite__qr:empty { display: none; }
.invite__qr svg { display: block; width: 100%; height: 100%; }
.invite__hint--scan { margin-top: 10px; }
/* A phone cannot scan its own screen: on a touch device the code and the
   sentence about it go, and the link itself is the way in. A media query on
   the input, not on the width — a narrow desktop window still wants the code. */
@media (hover: none) and (pointer: coarse) {
  .invite__qr, .invite__hint--scan { display: none; }
}
.step__frame img.app-icon { width: 124px; height: 124px; margin: 22px 0; border-radius: 28px; box-shadow: 0 10px 22px -10px rgba(29,42,44,.35); }

.about h2 { margin-bottom: 18px; }
.about__lead { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 38em; text-wrap: pretty; }
/* Six cards: one row where there is room, two rows of three where there is
   not, and never a ragged five-and-one. The clamp is the switch — under 720px
   of row its middle term is huge and the minimum becomes 30%, above it the
   term is negative and the minimum falls back to 90px. No media query. */
.about__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(90px, (720px - 100%) * 999, 30%), 1fr));
  gap: clamp(12px, 2vw, 20px); margin: clamp(28px, 4vw, 44px) 0;
}
.about__cards .postcard:nth-child(odd) { transform: rotate(-2deg); }
.about__cards .postcard:nth-child(even) { transform: rotate(1.5deg); }

/* ============================================================ footer */
.site-foot { background: var(--ink); color: rgba(255,252,246,.72); }
.site-foot__inner { max-width: var(--shell); margin: 0 auto; padding: clamp(44px, 5vw, 68px) var(--gutter) 32px; }
.site-foot__cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); justify-content: space-between; margin-bottom: 44px; }
.site-foot__brand { flex: 1 1 260px; min-width: 240px; max-width: 30em; }
.site-foot__brand .brand { margin-bottom: 14px; }
.site-foot__brand .brand span { color: var(--card); font-size: 26px; }
.site-foot__brand .brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: none; }
.site-foot__blurb { font-size: 15px; line-height: 1.65; color: rgba(255,252,246,.55); }
.site-foot__col { flex: 0 1 200px; min-width: 170px; }
.site-foot__col h2 {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,252,246,.4); margin-bottom: 16px;
}
.site-foot__col div { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.site-foot__col a { color: rgba(255,252,246,.78); display: inline-flex; align-items: center; min-height: 24px; }
.site-foot__col a:hover { color: var(--card); }
.site-foot__bar {
  border-top: 1px solid rgba(255,252,246,.12); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.site-foot__bar p { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(255,252,246,.4); }

/* ============================================================ subpages */
.doc {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) var(--section-y);
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: flex-start;
}
.doc-nav {
  flex: 1 1 220px; min-width: 210px; max-width: 280px;
  background: var(--card); border-radius: 16px; padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(29,42,44,.06);
}
/* The artboard makes this nav sticky unconditionally. That is right while it
   is a sidebar, and wrong the moment it wraps onto its own row: pinned at 92px
   it then floats over the text of the sheet below it. So it only sticks above
   the width where the two columns still fit side by side — ~845px, measured.
   It buys correctness, not layout. */
@media (min-width: 860px) {
  .doc-nav { position: sticky; top: 92px; }
}
.doc-nav h2 {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
  margin: 4px 10px 12px;
}
.doc-nav div { display: flex; flex-direction: column; gap: 2px; }
.doc-nav a {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 12px;
  border-radius: 10px; background: transparent; color: var(--ink-soft);
  font-size: 15px; font-weight: 400; text-decoration: none;
  min-height: 46px; justify-content: center;
}
.doc-nav a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.doc-nav a[aria-current="page"] { background: var(--teal-wash); color: var(--teal); font-weight: 500; }
.doc-nav a small { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; opacity: .55; }

.doc-sheet {
  flex: 3 1 520px; min-width: 290px;
  background: var(--card); border-radius: 20px; padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 16px 40px -26px rgba(29,42,44,.3), inset 0 0 0 1px rgba(29,42,44,.06);
}
.doc-sheet__slug {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.doc-sheet h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; margin-bottom: 10px; }
.doc-sheet__stand {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--ink-faint); margin-bottom: clamp(28px, 3.5vw, 40px);
}
.doc-sheet section { margin-bottom: 30px; }
.doc-sheet h2 {
  font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.35;
  letter-spacing: .01em; margin-bottom: 12px; color: var(--ink);
}
.doc-sheet p { font-size: 16px; line-height: 1.72; color: var(--ink-soft); margin-bottom: 12px; max-width: 44em; text-wrap: pretty; }
.doc-sheet__foot { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 24px; }
.doc-sheet__foot p { font-size: 15px; line-height: 1.7; color: var(--ink-faint); margin: 0; }

/* The provider card: findable under § 5 DDG, not plastered across the page. */
.provider {
  background: var(--paper); border-radius: 14px; padding: 24px 26px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  box-shadow: inset 0 0 0 1px rgba(29,42,44,.05);
}
.provider__label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 12px;
}
.provider__name { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.provider__address { font-size: 14px; line-height: 1.6; color: var(--ink-faint); margin-bottom: 12px; font-style: normal; }
.provider__mail { font-size: 15px; color: var(--ink-soft); }

/* The subpage footer is the compact one-line variant. */
.site-foot--doc .site-foot__inner {
  max-width: 1100px; padding: 34px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  align-items: center; justify-content: space-between;
}
.site-foot--doc p { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(255,252,246,.6); }
.site-foot--doc nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.site-foot--doc nav a { color: rgba(255,252,246,.7); }
.site-foot--doc nav a:hover { color: var(--card); }
