/* ===========================================================================
   site.css — what the design system assumed React would do.

   canaan.css has no media query hiding `.nav__links` or `.burger`, because the
   old page rendered one or the other from `state.isDesktop`. On static pages
   both are in the markup and CSS decides, which is how it should have been:
   the breakpoint is a layout fact, not application state.

   Same for `.drawer` — it was mounted only while open. Here it is always in the
   DOM, closed by default, and opened by one attribute on the nav.
   =========================================================================== */

/* Mobile first: the inline links and the language pill are desktop-only. */
.nav__links{display:none}
.nav__right > .lang{display:none}

@media(min-width:900px){
  .nav__links{display:flex}
  .nav__right > .lang{display:flex}
  .burger{display:none}
}

/* The drawer is closed until the nav says otherwise. `display:none` rather than
   a height transition so nothing inside it is focusable while hidden. */
.drawer{display:none}
.nav[data-menu="true"] .drawer{display:flex}

/* No-JS: the toggle cannot work, so the burger is never shown and the desktop
   links are used at every width. Slightly cramped on a small phone and entirely
   navigable, which is the right trade against a dead button. */
.no-js .burger{display:none}
.no-js .nav__links{display:flex}

/* The FAQ used to have a block here giving canaan.css's `[data-open]` rules
   `[open]` twins for <details>. The legacy home page moved to <details> too,
   so those rules now live in canaan.css and nothing sets `data-open`. */

/* The language switch is links now, not buttons — it navigates rather than
   setting state. canaan.css styles `.lang button`, so the anchors need the
   same treatment to look identical. */
.lang a{
  display:inline-block;
  font-family:var(--mono);font-size:10px;letter-spacing:.08em;
  padding:4px 9px;border-radius:999px;color:var(--muted);
  text-decoration:none;
  transition:background .25s var(--ease),color .25s var(--ease);
}
.lang a[data-on="true"]{background:var(--terracotta-deep);color:var(--limestone)}

/* The contact form cannot send without script: the endpoint needs a Turnstile
   token, and only script can get one. So with no JS the check and the send
   button are not shown at all, and a <noscript> line points at the email
   address instead — a dead button would be worse than no button. */
.no-js [data-needs-js]{display:none}
