@import url('/assets/fonts.css');

/* Lantern Digest
   Subject: bonus terms for German-speaking readers. The subject is numbers,
   so numbers get their own typeface and their own component (.specs).
   Self-contained: no CDN, no third-party requests, no trackers. */

:root {
  --paper:   #f1f3f2;
  --raise:   #ffffff;
  --sunk:    #e7eaea;
  --ink:     #0e1518;
  --ink-2:   #37454a;
  --muted:   #5e6a6e;
  --rule:    #d2d8d8;
  --hair:    #e3e7e7;
  --signal:  #0a5a8c;
  --signal-2:#e8f0f6;
  --warn:    #a32017;
  --warn-bg: #fbeeec;

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --shell: 76rem;
  --read:  36rem;

  --f-xs: 0.75rem;
  --f-sm: 0.86rem;
  --f-md: clamp(1rem, 0.97rem + 0.14vw, 1.09rem);
  --f-lg: clamp(1.15rem, 1.07rem + 0.36vw, 1.35rem);
  --f-xl: clamp(1.5rem, 1.3rem + 0.95vw, 2.1rem);
  --f-2xl:clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --f-3xl:clamp(2.5rem, 1.85rem + 3.1vw, 4.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0c1113;
    --raise:   #141a1c;
    --sunk:    #10171a;
    --ink:     #e8ecec;
    --ink-2:   #b3bdbf;
    --muted:   #8a9599;
    --rule:    #2a3335;
    --hair:    #1d2427;
    --signal:  #6fb3dc;
    --signal-2:#122430;
    --warn:    #e08c82;
    --warn-bg: #2a1614;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--f-md);
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 3rem); }
.read  { max-width: var(--read); }

a { color: var(--signal); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skiplink { position: absolute; left: -9999px; background: var(--raise); color: var(--ink); padding: .7rem 1rem; border: 1px solid var(--rule); }
.skiplink:focus { left: 1rem; top: 1rem; z-index: 30; }

.eyebrow {
  font-family: var(--mono); font-size: var(--f-xs); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal);
  margin: 0 0 .7rem;
}
.stamp {
  font-family: var(--mono); font-size: var(--f-xs); color: var(--muted);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ chrome -- */

.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: var(--f-xs);
  letter-spacing: .05em; color: var(--muted);
}
.bar a { color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--signal); text-decoration: underline; }
.bar [aria-current="true"] { color: var(--ink); }
.bar nav { display: flex; gap: .45rem; }

.brandbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1.4rem 0 1.3rem; border-bottom: 2px solid var(--ink);
}
.brandbar .logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brandbar .logo svg { display: block; flex: none; }
.brandbar .logo span {
  font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em;
}
.brandbar .sections { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; font-size: var(--f-sm); }
.brandbar .sections a { color: var(--ink-2); text-decoration: none; }
.brandbar .sections a:hover { color: var(--signal); text-decoration: underline; }

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

.hero { padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); }
.hero h1 {
  font-size: var(--f-3xl); line-height: 1.03; letter-spacing: -.035em;
  font-weight: 600; margin: 0 0 1.2rem; max-width: 15ch;
}
.hero .dek { font-size: var(--f-lg); line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 46ch; }

/* --------------------------------------------------- SIGNATURE: spec strip -- */

/* flex, not auto-fit grid: auto-fit keeps empty tracks and their 1px gaps,
   which draws stray hairlines to the right of the last real cell. */
.specs {
  display: flex; flex-wrap: wrap; gap: 1px; margin: 2.2rem 0 0;
  background: var(--rule); border: 1px solid var(--rule);
}
.specs > div { flex: 1 1 9.5rem; min-width: 0; background: var(--paper); padding: .95rem 1rem 1.05rem; }
.specs dt {
  font-family: var(--sans); font-size: var(--f-xs); font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 .35rem;
}
.specs dd {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 500;
  letter-spacing: -.02em; color: var(--ink); margin: 0;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.specs dd small { display: block; font-family: var(--sans); font-size: var(--f-xs); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: .3rem; }
.specs--tight dd { font-size: 1.15rem; }
.specs--onraise > div { background: var(--raise); }

/* ----------------------------------------------------------------- section -- */

.slab { padding: clamp(2.4rem, 5vw, 3.6rem) 0; border-top: 1px solid var(--hair); }
.slab--sunk { background: var(--sunk); border-top-color: var(--rule); }
.slab--sunk .specs > div { background: var(--sunk); }

.slab-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.8rem; }
.slab-head h2 {
  font-family: var(--mono); font-size: var(--f-xs); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink); margin: 0;
}
.slab-head a { font-size: var(--f-sm); }

/* ------------------------------------------------------------------- items -- */

.items { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); grid-template-columns: 1fr; }
@media (min-width: 46rem) { .items { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .items--3 { grid-template-columns: repeat(3, 1fr); } }

.item { display: flex; flex-direction: column; }
.item h3 { font-size: var(--f-lg); line-height: 1.25; margin: 0 0 .55rem; font-weight: 600; letter-spacing: -.015em; }
.item h3 a { color: inherit; text-decoration: none; }
.item h3 a:hover { color: var(--signal); text-decoration: underline; }
.item p { margin: 0 0 .8rem; color: var(--ink-2); font-size: var(--f-sm); line-height: 1.58; }
.item .stamp { margin-top: auto; }

/* ------------------------------------------------------------------ offers -- */

.offer {
  background: var(--raise); border: 1px solid var(--rule);
  padding: clamp(1.2rem, 3vw, 1.7rem); margin-bottom: 1rem;
}
.offer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .3rem; }
.offer-top h3 { font-size: var(--f-xl); margin: 0; font-weight: 600; letter-spacing: -.02em; }
.offer-headline { font-family: var(--mono); font-size: var(--f-md); color: var(--ink-2); font-variant-numeric: tabular-nums; margin: 0; }

/* ------------------------------------------------------------------- forms -- */

.signup { background: var(--raise); border: 1px solid var(--rule); padding: clamp(1.5rem, 4vw, 2.4rem); }
.signup h2 { font-size: var(--f-xl); margin: 0 0 .7rem; font-weight: 600; letter-spacing: -.02em; }
.signup > p { color: var(--ink-2); max-width: 48ch; margin: 0; }
.fields { display: grid; gap: .85rem; grid-template-columns: 1fr; margin: 1.5rem 0 0; }
@media (min-width: 36rem) { .fields { grid-template-columns: 1fr 1fr; } }
.fields label { display: block; font-size: var(--f-sm); font-weight: 500; margin-bottom: .3rem; }
.fields .opt { font-weight: 400; color: var(--muted); }
.fields input {
  width: 100%; font-family: var(--sans); font-size: var(--f-md); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 0; padding: .7rem .8rem;
}
.fields input:focus { border-color: var(--signal); }
.fields input::placeholder { color: var(--muted); opacity: 1; }

.action {
  font-family: var(--sans); font-size: var(--f-md); font-weight: 600;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  border-radius: 0; padding: .75rem 1.6rem; cursor: pointer; margin-top: 1.2rem;
}
.action:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.smallprint { font-size: var(--f-sm); color: var(--muted); line-height: 1.55; margin: 1rem 0 0; max-width: 58ch; }

/* ------------------------------------------------------------------- flags -- */

.flag { border-left: 3px solid var(--signal); background: var(--signal-2); padding: 1rem 1.2rem; font-size: var(--f-sm); line-height: 1.6; color: var(--ink-2); }
.flag--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.flag--warn strong { color: var(--warn); }
.flag p { margin: 0; }

.blocker {
  border: 2px dashed var(--warn); color: var(--warn); background: var(--warn-bg);
  padding: .85rem 1.05rem; font-family: var(--mono); font-size: var(--f-xs); line-height: 1.55;
}

/* ------------------------------------------------------------------- prose -- */

.copy { max-width: var(--read); }
.copy h2 { font-size: var(--f-xl); line-height: 1.22; margin: 2.5rem 0 .9rem; font-weight: 600; letter-spacing: -.02em; }
.copy h2:first-child { margin-top: 0; }
.copy h3 { font-size: var(--f-md); margin: 1.8rem 0 .4rem; font-weight: 600; }
.copy p { margin: 0 0 1.05rem; }
.copy ul, .copy ol { padding-left: 1.25rem; margin: 0 0 1.05rem; }
.copy li { margin-bottom: .45rem; }
.copy strong { font-weight: 600; }
.copy .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.grid-table { width: 100%; border-collapse: collapse; font-size: var(--f-sm); margin: 0 0 1.4rem; }
.grid-table th, .grid-table td { text-align: left; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--hair); }
.grid-table thead th {
  font-family: var(--mono); font-size: var(--f-xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.grid-table td.fig { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid-table tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; }

.pagehead { padding: clamp(2rem, 5vw, 3.2rem) 0 1.7rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.2rem; }
.pagehead h1 { font-size: var(--f-2xl); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 0 0 .9rem; max-width: 19ch; }
.pagehead .dek { font-size: var(--f-lg); line-height: 1.45; color: var(--ink-2); margin: 0 0 1rem; max-width: 46ch; }

/* -------------------------------------------------------------------- foot -- */

.foot { border-top: 2px solid var(--ink); margin-top: clamp(2.5rem, 6vw, 4rem); padding: 1.9rem 0 3.5rem; font-size: var(--f-sm); color: var(--muted); }
.foot-cols { display: grid; gap: 1.7rem; grid-template-columns: 1fr; margin-bottom: 1.7rem; }
@media (min-width: 50rem) { .foot-cols { grid-template-columns: 2fr 1fr 1fr; } }
.foot h2 { font-family: var(--mono); font-size: var(--f-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 .7rem; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--signal); }
.foot .fine { max-width: 62ch; line-height: 1.65; }
