/* Sterrek — sterrek.com
 *
 * Eén stylesheet, geen framework, geen externe verzoeken.
 *
 * De tokens komen uit het designsysteem van de app (docs/DESIGN_SYSTEM.md):
 * kalkwit en zand als vlakken, warm antraciet als inkt, terracotta als het ene
 * accent. Geen schaduwen — diepte is een toonstap en een haarlijn. Hoeken zijn
 * krap gehouden (DESIGN_BRIEF.md §3.5: krapper, functioneel, bijna recht).
 * Donkere modus is de avondversie van hetzelfde huis.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --canvas: #faf7f1;
  --panel: #fffdf8;
  --sand: #f1ebe0;
  --hairline: #e2dacc;
  --ink: #22201c;
  --ink-muted: #645c51;
  --accent: #a34a28;
  --accent-ink: #faf7f1;
  --accent-soft: #f6e4d9;
  --accent-deep: #3a1a0c;

  /* Het hero-beeld. Eigen tokens, zodat de avondversie één blok is. */
  --v-wall-top: #f8f3ea;
  --v-wall: #ebe1d1;
  --v-floor: #ded2bd;
  --v-light: #fffdf8;
  --v-shade: #c9b99e;
  --v-sky-top: #f4dcbe;
  --v-sky-bottom: #eab98a;
  --v-sun: #a34a28;
  --v-line: #cdbfa7;

  --hair: 2px;
  --xs: 8px;
  --sm: 12px;
  --md: 16px;
  --lg: 20px;
  --xl: 24px;
  --xxl: 32px;
  --xxxl: 48px;

  --measure: 34rem;
  --page: 64rem;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #16130f;
    --panel: #1f1b16;
    --sand: #221d18;
    --hairline: #3a342b;
    --ink: #f5f1e8;
    --ink-muted: #a9a196;
    --accent: #e59b72;
    --accent-ink: #2a1710;
    --accent-soft: #3a2117;
    --accent-deep: #f2c9af;

    --v-wall-top: #262019;
    --v-wall: #1a1610;
    --v-floor: #131009;
    --v-light: #6b4a2e;
    --v-shade: #0a0806;
    --v-sky-top: #3d2317;
    --v-sky-bottom: #7d4526;
    --v-sun: #e59b72;
    --v-line: #43392c;
  }
}

/* ------------------------------------------------------------------ basis */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 1.5rem + 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(1.85rem, 1.3rem + 2.3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-weight: 600;
}

p {
  margin: 0 0 var(--md);
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--hairline);
}

a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
}

/* Een overline: kort label, versalen, ruime spatiëring. Nooit een zin. */
.overline {
  display: block;
  margin: 0 0 var(--md);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.overline-accent {
  color: var(--accent);
}

.lead {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  max-width: 30rem;
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 0.92rem;
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--md);
  top: var(--md);
  z-index: 10;
  padding: var(--sm) var(--md);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  text-decoration: none;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--xxl);
}

@media (max-width: 30rem) {
  .wrap {
    padding-inline: var(--lg);
  }
}

section {
  padding-block: clamp(var(--xxxl), 8vw, 104px);
}

section h2 {
  margin-bottom: var(--lg);
}

.ruled {
  border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------- masthead */

.masthead {
  padding-block: var(--xl);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand .mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--accent);
}

.brand .wordmark {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.masthead nav ul {
  display: flex;
  gap: var(--lg);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.masthead nav a {
  display: inline-block;
  padding-block: var(--xs);
  color: var(--ink-muted);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
}

.masthead nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding-block: clamp(var(--xxl), 6vw, 72px) clamp(var(--xxl), 5vw, 56px);
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: var(--xl);
}

.hero .lead {
  color: var(--ink);
}

.hero-actions {
  margin-top: clamp(var(--xl), 3vw, var(--xxxl));
}

/* De ene primaire actie op de pagina. */
.cta {
  display: inline-block;
  min-height: 52px;
  padding: 14px var(--xl);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.cta:hover {
  background: var(--ink);
  color: var(--canvas);
}

/* ---------------------------------------------------- het hero-beeld */

/* Volle breedte, geen hoekafronding: het beeld is de opening van de pagina,
   geen kaart erop. */
.visual {
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: min(60vh, 560px);
  overflow: hidden;
  background: var(--v-wall);
}

@media (max-width: 34rem) {
  .visual {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

.visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* De korrel maakt van vlakke kleurvlakken bepleisterd materiaal. Vermenigvuldigen
   op licht, zacht licht op donker — anders is korrel op een donker vlak niet te
   zien. */
.grain {
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .grain {
    mix-blend-mode: soft-light;
  }
}

/* -------------------------------------------------------------- vandaag */

/* De vier dingen die je 's ochtends invult, als één regel in plaats van vier
   kaarten. */
.inputs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm) var(--lg);
  margin: var(--xl) 0 0;
  padding: var(--md) 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.inputs .result {
  color: var(--accent);
}

.inputs .result::before {
  content: "\2192\00a0\00a0";
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- pijlers */

.pillars {
  display: grid;
  gap: var(--xl);
  margin: clamp(var(--xl), 4vw, var(--xxxl)) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--xxl);
  }
}

.pillars > li {
  padding-top: var(--lg);
  border-top: 2px solid var(--ink);
}

.pillars .num {
  display: block;
  margin-bottom: var(--sm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.pillars h3 {
  margin-bottom: var(--xs);
}

.pillars p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.footnote {
  margin-top: clamp(var(--xl), 3vw, var(--xxl));
  color: var(--ink-muted);
  max-width: 40rem;
}

/* --------------------------------------------------- het leven gebeurt */

.fragments {
  display: grid;
  gap: 0;
  margin: clamp(var(--xl), 4vw, var(--xxxl)) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .fragments {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--xxxl);
  }
}

.fragments > li {
  padding-block: var(--lg);
  border-top: 1px solid var(--hairline);
}

.fragments .when {
  display: block;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: var(--xs);
}

.fragments p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* ------------------------------------------------------------ filosofie */

.philosophy {
  background: var(--sand);
}

.philosophy .statement {
  color: var(--ink);
  font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 500;
  margin: 0 0 var(--xl);
  max-width: 14ch;
}

.philosophy .rule {
  width: 56px;
  height: 3px;
  margin: 0 0 var(--xl);
  border: 0;
  background: var(--accent);
}

.philosophy p {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 32rem;
}

/* ------------------------------------------------------------------ beta */

.beta-block {
  margin-top: clamp(var(--xl), 4vw, var(--xxl));
  padding: clamp(var(--lg), 3vw, var(--xl));
  background: var(--sand);
  border-radius: 12px;
  max-width: var(--measure);
}

.beta-block h3 {
  margin-bottom: var(--xs);
}

.beta-block p {
  margin: 0;
  color: var(--ink-muted);
}

/* Een plaatshouder die de eigenaar nog moet invullen. In woorden gemarkeerd en
   niet alleen in kleur. */
.placeholder {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 6px;
  font-size: 0.92em;
  font-weight: 600;
}

.no-server {
  margin-top: var(--lg);
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--xxl) var(--xxxl);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lg);
  margin: 0 0 var(--lg);
  padding: 0;
  list-style: none;
}

footer nav a {
  color: var(--ink);
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

footer p {
  margin-bottom: var(--xs);
}

/* -------------------------------------------------------------- document */

/* Privacy en Hulp lezen als een document. Functioneel, niet uitgedost. */
.doc h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
  margin-bottom: var(--lg);
}

.doc .lead {
  color: var(--ink);
  max-width: 36rem;
}

.doc .meta {
  margin-bottom: var(--xxl);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.doc h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: var(--xxl);
  margin-bottom: var(--sm);
  padding-top: var(--md);
  border-top: 1px solid var(--hairline);
}

.doc h3 {
  margin-top: var(--xl);
  margin-bottom: var(--xs);
}

.doc > :first-child {
  margin-top: 0;
}

.doc ul {
  margin: 0 0 var(--md);
  padding-left: 1.15em;
  max-width: var(--measure);
}

.doc li {
  margin-bottom: var(--xs);
}

.doc li:last-child {
  margin-bottom: 0;
}

.doc .aside {
  margin: var(--xl) 0 0;
  padding: var(--lg);
  background: var(--sand);
  border-radius: 12px;
  max-width: var(--measure);
}

.doc .aside > :first-child {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
