/* Stadsdelsguiden — the family's publisher page (docs/FUNDING.md § 2).
   Static on purpose: no build, no runtime, no dependencies. The design is
   docs/DESIGN.md ("Fräsch") done by hand — white paper, near-black ink,
   hairline seams, radius 0, Bricolage display over a mono data voice.
   The guide list on the pages mirrors shared/utils/guideSites.ts by hand —
   update both when a district launches (add-district skill § 4b). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #101114;
  --rule: rgba(16, 17, 20, 0.1);
  --info: #1e5fb4;
  --dim: 0.62;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1012;
    --ink: #f2f2f4;
    --rule: rgba(242, 242, 244, 0.12);
    --info: #8fb8ff;
    --dim: 0.66;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }

.mono,
.overline {
  font-family: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
}
.overline {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}
.dim { opacity: var(--dim); }

/* ---- layout: full-bleed sections separated by hairlines ---- */
.pad { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(20px, 16px + 1.2vw, 26px);
  text-decoration: none;
}
.lang { text-decoration: none; }
@media (hover: hover) {
  .lang:hover { text-decoration: underline; text-decoration-thickness: 1px; }
}

.hero {
  padding-top: clamp(48px, 9vw, 112px);
  padding-bottom: clamp(48px, 9vw, 112px);
  border-bottom: 1px solid var(--rule);
}
h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(2.25rem, 1.1rem + 5vw, 4.75rem);
  margin: 0 0 0.5em;
  max-width: 16ch;
}
.lead { font-size: 1.125rem; max-width: 62ch; margin: 0; }

.section-label {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

/* guide cards: 1px seams painted by the gap over the rule colour */
.guides {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.guide {
  background: var(--paper);
  padding: clamp(24px, 3vw, 40px);
  text-decoration: none;
  display: block;
}
.guide h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0 0 4px;
}
.guide .domain { display: block; margin-bottom: 12px; }
.guide p { font-size: 0.875rem; margin: 0; }
@media (hover: hover) {
  .guide:hover { background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
  .guide:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; }
}

/* two prose columns with a hairline seam, stacking on narrow screens */
.cols {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.col { background: var(--paper); padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); }
.col h2, .about h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0 0 0.6em;
}
.col p, .about p { max-width: 65ch; margin: 0 0 1em; }
.col p:last-child, .about p:last-child { margin-bottom: 0; }

.about {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}

footer { padding-top: 24px; padding-bottom: 32px; }
