/* clubster.dk - deliberately boring: hand-written CSS, no build, no deps.
   Tokens mirror the app's cfy-theme (North Harbour ramps) so the marketing
   site and the product share a bloodline. Light/dark follows the system,
   bridged onto html.dark exactly like the app's theme.js. */

/* Noto Sans Variable, the app's face (@fontsource-variable/noto-sans,
   OFL-1.1). Latin subset only: covers æøå and the IPA in the entry. */
@font-face {
  font-family: 'Noto Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/noto-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --brand-100: #e4ecf7;
  --brand-200: #c9d9ee;
  --brand-300: #a3bde0;
  --brand-400: #7597cd;
  --brand-600: #3c61ad;
  --brand-700: #345195;
  --brand-800: #2c4278;

  --slate-0:   #ffffff;
  --slate-100: #eef2f7;
  --slate-200: #dfe6ee;
  --slate-300: #c8d3e0;
  --slate-400: #9daab9;
  --slate-500: #7c8a9c;
  --slate-600: #5d6b7e;
  --slate-700: #455364;
  --slate-800: #313e4f;
  --slate-900: #22303f;
  --slate-950: #141d28;

  /* Semantic layer - same names and steps as the app (cfy-theme, base.css) */
  --page-bg:     var(--slate-0);
  --panel-bg:    var(--slate-0);
  --border:      var(--slate-200);
  --chip:        var(--slate-200);
  --text:        var(--slate-900);
  --text-muted:  var(--slate-600);
  --text-faint:  var(--slate-500);
  --primary:     var(--brand-600);
  --primary-hover: var(--brand-700);
  --primary-text:  var(--slate-0);
  --link:        var(--brand-600);
  --link-hover:  var(--brand-700);
  /* The typed word's marker stroke: a soft brand wash under the ink */
  --marker:      color-mix(in srgb, var(--brand-200) 70%, transparent);
  --focus-ring:  2px solid var(--brand-400);
  /* The page's one width: the dictionary entry never grows past it */
  --measure:     640px;
}
html.dark {
  --page-bg:     var(--slate-950);
  --panel-bg:    var(--slate-900);
  --border:      var(--slate-700);
  --chip:        var(--slate-800);
  --text:        var(--slate-100);
  --text-muted:  var(--slate-400);
  --text-faint:  var(--slate-500);
  --primary:     var(--brand-400);
  --primary-hover: var(--brand-300);
  --primary-text:  var(--slate-950);
  --link:        var(--brand-400);
  --link-hover:  var(--brand-300);
  --marker:      color-mix(in srgb, var(--brand-800) 75%, transparent);
}

* { box-sizing: border-box; }

html {
  font-family: 'Noto Sans Variable', system-ui, sans-serif;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--text);
}

a:focus-visible, .button:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ── Top bar: always dark, like the app's side panels ─────────────────
   A fixed-dark surface, so per BRAND.md's caveat the lockup and button
   take their dark values explicitly, whatever the visitor's scheme. */
.topbar {
  background: var(--slate-900);
  border-bottom: 1px solid var(--slate-800);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Logo and button align with the entry's edges below */
  max-width: calc(var(--measure) + 3rem);
  height: 4.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.topbar svg { display: block; height: 36px; width: auto; }
/* Dark lockup values (mirrors the html.dark rules inside the SVG) */
.topbar .app-header__lockup .c1 { fill: #3c61ad; }
.topbar .app-header__lockup .c3,
.topbar .app-header__lockup .cb { fill: #74c3ed; }
.topbar .app-header__lockup .wm { fill: #e4ecf7; }
.topbar .app-header__lockup .word { transform: translateX(1.07px); }
.topbar .button {
  --primary: var(--brand-400);
  --primary-hover: var(--brand-300);
  --primary-text: var(--slate-950);
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.button:hover { background: var(--primary-hover); }

/* ── Page: one column, the question then the answer ──────────────────── */
.page {
  flex: 1;
  width: 100%;
  /* The entry sits dead centre in whatever the header and footer leave */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* PARKED (2026-10-06): the typewriter sentence is off the page for now;
   its markup was <h1 class="hero"> with the #prefix/#suffix-left/#cursor/
   #suffix-right spans inside .hero__ink, plus assets/typewriter.js.

   The question. Left-aligned on purpose: a centred line would wobble
   sideways with every keystroke; anchored left, only its end moves. */
.hero {
  margin: 0 0 clamp(3rem, 9vh, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__lead {
  display: block;
  margin-bottom: 0.3em;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  color: var(--text-muted);
}
.hero__word {
  display: block;
  white-space: nowrap;
  /* Sized so the longest word ("håndværkerlauget?") fits a 320px phone */
  font-size: clamp(2rem, 8.5vw, 4.25rem);
  font-weight: 750;
  color: var(--text);
}
.hero__ink {
  color: var(--primary);
  /* A marker stroke under the lower half of the word; it grows and
     shrinks with the typing because it is the span's own background */
  background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%);
}

#cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.9em;
  margin: 0 0.02em;
  border-radius: 1px;
  background: var(--primary);
  vertical-align: -0.08em;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #cursor { display: none; }
}

/* ── The answer: the dictionary entry ─────────────────────────────────
   Ordbog typography, kept verbatim from the original site: the headword,
   the word class, inline small-caps labels on a chip, the sense heading. */
.lexicon {
  width: 100%;
  max-width: var(--measure);
}
.lexicon__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.lexicon__word { font-size: 3rem; line-height: 1.05; letter-spacing: -0.01em; }
.lexicon__pos { font-size: 1.1rem; color: var(--text-muted); }
.lexicon__facts { margin: 0 0 1.75rem; }
.lexicon__facts > div { margin-bottom: 0.45rem; }
.lexicon__facts dt {
  display: inline;
  padding: 0.1rem 0.4rem;
  background: var(--chip);
  font-variant: small-caps;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.lexicon__facts dd { display: inline; margin: 0 0 0 0.4rem; }
.lexicon__sense-title {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
}
.lexicon__sense { margin: 0; line-height: 1.55; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  /* Plain inline text, not flex: flex would swallow the spaces around the link */
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__sep { margin: 0 0.5rem; color: var(--text-faint); }
.footer a[href] {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer a[href]:hover { color: var(--link-hover); }

/* ── Phone width ─────────────────────────────────────────────────────── */
@media (max-width: 40rem) {
  .topbar__inner { height: 3.75rem; padding: 0 1rem; }
  .topbar svg { height: 30px; }
  .button { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
  .page { padding-left: 1rem; padding-right: 1rem; }
  .footer { padding: 1.25rem 1rem; }
}
