/* SOF Survival of the Fittest page. Tokens only; palette lives in theme.css. */

body { font-feature-settings: "ss01", "cv11"; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--w-display); line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--tr-h2); }
.eyebrow { font-size: var(--fs-micro); font-weight: 600; text-transform: var(--case-eyebrow); letter-spacing: var(--tr-eyebrow); }

/* header: logo + back link, full width */
.site-header { position: relative; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.header-link { margin-left: auto; font-size: var(--fs-small); font-weight: 600; text-decoration: none; color: var(--muted-strong); }
.header-link:hover { color: var(--ink); text-decoration: underline; }

/* hero: edge to edge, the outlined acronym is the image */
.hero { min-height: min(92svh, 940px); align-content: end; border-bottom: 1px solid var(--line); }
.hero-inner { gap: clamp(24px, 3vw, 40px); }
.hero-mark { position: absolute; z-index: 0; right: -0.04em; top: clamp(8px, 4vw, 56px); font-family: var(--font-display); font-size: clamp(10rem, 4rem + 30vw, 34rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none; }
.hero .eyebrow { position: relative; color: var(--accent-text); }
.hero-title { position: relative; display: grid; }
.hero-title .kicker { font-size: clamp(2.5rem, 1.2rem + 5vw, 6rem); line-height: 0.9; letter-spacing: 0.04em; }
.hero-title .word { font-size: var(--fs-display); letter-spacing: var(--tr-display); color: var(--accent); margin-left: -0.04em; }
.hero-title .tail { font-size: clamp(2.5rem, 1.2rem + 5vw, 6rem); line-height: 0.9; letter-spacing: 0.04em; }
.hero .lead { position: relative; color: var(--muted-strong); max-width: 46ch; }
.hero-facts { position: relative; display: grid; gap: 0; border-top: 2px solid var(--line-strong); }
.hero-facts > div { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.hero-facts dt { font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--muted); }
.hero-facts dd { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: 0.02em; line-height: 1.05; }
.hero-cta { position: relative; }
@media (min-width: 860px) {
  .hero-facts { grid-template-columns: 1fr 1.4fr 1fr; }
  .hero-facts > div { border-bottom: 0; padding-right: 24px; }
  .hero-facts > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
}

/* idea */
.idea-text { display: grid; gap: 20px; font-size: var(--fs-lead); color: var(--muted-strong); max-width: 60ch; }
.idea-text p:first-child { color: var(--ink); }
.statement { padding-block: clamp(40px, 6vw, 88px); }
.statement blockquote p { font-family: var(--font-display); font-size: clamp(2.6rem, 1.2rem + 5.6vw, 7rem); line-height: 0.92; letter-spacing: 0.01em; max-width: 16ch; }
.statement figcaption { margin-top: 20px; font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; }

/* partner: three units on one green rule, unequal columns */
.units { counter-reset: unit; display: grid; gap: 0 clamp(20px, 3vw, 40px); }
.units > li { counter-increment: unit; display: grid; align-content: start; gap: 12px; padding-block: 24px 36px; border-top: 2px solid var(--accent); }
.units > li::before { content: counter(unit, decimal-leading-zero); font-family: var(--font-display); font-size: clamp(3.5rem, 2.4rem + 3vw, 6rem); line-height: 0.8; color: var(--accent); }
.units h3 { font-size: var(--fs-h3); letter-spacing: 0.02em; line-height: 1.02; }
.units p { color: var(--muted); font-size: var(--fs-small); max-width: 38ch; }
@media (min-width: 700px) { .units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.founder { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.founder h3 { font-size: var(--fs-h3); letter-spacing: 0.02em; }
.founder p { color: var(--muted-strong); max-width: 62ch; }
.founder .source { font-size: var(--fs-small); color: var(--muted); }
.founder .source a { color: var(--accent-text); }
@media (min-width: 900px) { .founder { grid-template-columns: 1.5fr 1fr; gap: 40px; } }

/* dates: time rail with open slots */
.rail > li { display: grid; gap: 4px 32px; padding-block: 22px; border-top: 1px solid var(--line); }
.rail > li:last-child { border-bottom: 1px solid var(--line); }
.rail .time { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.25rem); white-space: nowrap; line-height: 1; color: var(--accent-text); letter-spacing: 0.02em; }
.rail h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.rail p { color: var(--muted); font-size: var(--fs-small); }
.rail .open { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--muted-strong); }
.rail .open::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--accent); }
@media (min-width: 760px) { .rail > li { grid-template-columns: minmax(15rem, 0.42fr) 1fr; align-items: baseline; } }
.note { font-size: var(--fs-small); color: var(--muted); max-width: 60ch; }

/* participation */
.kv dd { font-size: 1.0625rem; }
.kv .open { color: var(--accent-text); font-weight: 600; }
.closing { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 0.9; }
.closing span { color: var(--accent); }
.signup { display: grid; gap: 16px; margin-top: 32px; }
.signup .button { justify-self: start; min-width: 14rem; }
@media (max-width: 559px) { .signup .button { justify-self: stretch; } }

/* hero partner badge: Mattlock logo + name, links out */
.partner-badge { position: relative; display: inline-flex; align-items: center; gap: 16px; justify-self: start; text-decoration: none; color: var(--ink); }
.partner-badge img { width: clamp(64px, 5vw + 40px, 96px); height: auto; }
.partner-badge > span { display: grid; gap: 4px; }
.partner-badge .eyebrow { color: var(--accent-text); }
.partner-badge strong { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); letter-spacing: 0.02em; line-height: 1; }
.partner-badge:hover strong { text-decoration: underline; text-underline-offset: 0.15em; }
.hero-goal { position: relative; max-width: 30ch; font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem); line-height: 1.22; font-weight: 500; color: var(--ink); }
.hero-goal strong { white-space: nowrap; font-weight: 800; color: var(--accent-text); letter-spacing: 0.02em; }

/* goal: green field, the primary aim in large type */
.goal { padding-block: clamp(48px, 7vw, 104px); }
.goal h2 { margin-top: 12px; }
.goal-text { margin-top: clamp(20px, 3vw, 32px); max-width: 40ch; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.35; }

/* philosophy pair: smart / conscious */
.pair { display: grid; gap: 0; margin-top: 8px; }
.pair > div { display: grid; gap: 6px 24px; padding-block: 18px; border-top: 2px solid var(--accent); }
.pair dt { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1; color: var(--ink); }
.pair dd { font-size: 1.0625rem; color: var(--muted-strong); }
@media (min-width: 640px) { .pair > div { grid-template-columns: 9rem 1fr; align-items: baseline; } }

/* programme: index list with check-ruled items */
.program h3 { font-size: var(--fs-h3); letter-spacing: 0.02em; line-height: 1.02; }
.ticks { display: grid; gap: 10px; }
.ticks > li { position: relative; padding-left: 22px; color: var(--muted-strong); font-size: var(--fs-small); max-width: 62ch; }
.ticks > li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 2px; background: var(--accent); }
.ticks strong { color: var(--ink); font-weight: 600; }

/* 30 / 90 days: two compact rails */
.phases { display: grid; gap: clamp(32px, 4vw, 48px); }
.phase h3 { display: grid; gap: 4px; margin-bottom: 12px; font-size: var(--fs-h3); letter-spacing: 0.02em; }
.phase h3 span { font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--accent-text); }
.phase .rail > li { padding-block: 14px; }
.phase .rail .time { font-size: 1.375rem; }
.phase .rail p { color: var(--muted-strong); }
@media (min-width: 760px) { .phase .rail > li { grid-template-columns: 9rem 1fr; } }

/* compass table */
.board th[scope="row"] { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.02em; white-space: nowrap; }
.board td { color: var(--muted-strong); }
.board td.num-cell { color: var(--ink); font-weight: 600; }
.table-note { margin-top: 16px; }
@media (max-width: 639px) {
  .board thead { display: none; }
  .board tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 18px; border-top: 1px solid var(--line); }
  .board tbody tr:first-child { border-top: 0; }
  .board th, .board td { padding: 0; border-top: 0; }
  .board td:not(.num-cell) { grid-column: 1 / -1; grid-row: 2; }
  .board td.num-cell { grid-column: 2; grid-row: 1; align-self: center; }
}

/* safety limits and official sources */
.limits { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.limits p { max-width: 72ch; font-size: var(--fs-small); color: var(--muted-strong); }
.limits strong { color: var(--ink); }
.limits a { color: var(--accent-text); }

/* founder: two photos beside the text */
.founder-photos { display: grid; gap: 12px; }
.founder-photos picture { display: block; }
.founder-photos img { width: 100%; height: auto; filter: grayscale(0.15); }
/* side by side at equal height: column ratio 16:9 matches 4:3 next to 3:4 */
@media (min-width: 600px) { .founder-photos { grid-template-columns: 16fr 9fr; } }
.founder-photo figcaption { margin-top: 8px; font-size: var(--fs-micro); }
.founder-text { display: grid; gap: 16px; align-content: start; }
.founder-text .button { justify-self: start; }
/* second host: three portraits; on phones two side by side, the third full width */
.founder-photos-trio { grid-template-columns: 1fr 1fr; }
.founder-photos-trio picture:last-child { grid-column: 1 / -1; }
@media (min-width: 600px) { .founder-photos-trio { grid-template-columns: repeat(3, 1fr); } .founder-photos-trio picture:last-child { grid-column: auto; } }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; color: var(--muted); }
.footer-row a { text-decoration: none; color: var(--ink); }
.footer-row a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-small); }

/* Mattlock logos: company raven beside the partner heading, unit ravens in the units list */
.partner-intro { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.partner-mark img { width: clamp(88px, 7vw + 48px, 132px); height: auto; }
.mark-note { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); max-width: 34ch; }
.units > li { grid-template-columns: 1fr auto; column-gap: 16px; }
.units > li > :not(.unit-logo) { grid-column: 1 / -1; }
.units > li::before { grid-column: 1; grid-row: 1; align-self: end; }
.unit-logo { grid-column: 2; grid-row: 1; }
.unit-logo img { width: clamp(84px, 3vw + 64px, 112px); height: auto; }
.units .logo-note { color: var(--muted-strong); padding-top: 12px; border-top: 1px solid var(--line); }

@media print {
  .hero-mark { display: none; }
  .hero-title .word, .units > li::before, .closing span { color: var(--accent-text); }
  .units { grid-template-columns: repeat(3, 1fr) !important; }
}

/* day agenda: 10 numbered topics with a pause rule */
.agenda-title { margin-top: 40px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; }
.agenda > li { display: grid; grid-template-columns: 3rem 1fr; gap: 16px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); }
.agenda > li:last-child { border-bottom: 1px solid var(--line); }
.agenda-num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent-text); letter-spacing: 0.02em; }
.agenda p { max-width: 62ch; }
.agenda .by { color: var(--muted); }
.agenda > li.agenda-break { display: flex; align-items: center; gap: 16px; padding-block: 10px; font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--muted-strong); }
.agenda > li.agenda-break::before, .agenda > li.agenda-break::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.rail-later { margin-top: 40px; }

/* NETWORK 2.0: talks list, postponement note, single host photo */
.talks .talk-by { margin-top: 8px; color: var(--accent-text); font-size: var(--fs-small); font-weight: 600; }
.goal .goal-shift { margin-top: 24px; max-width: 62ch; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-strong); font-size: var(--fs-small); }
.founder-photos-single { max-width: 360px; }
@media (min-width: 900px) { .founder-single { grid-template-columns: minmax(14rem, 0.4fr) 1fr; } }

/* NETWORK 2.0 in the 07.11. NETWORK colours (30.11.2026): red bands carry white text only */
.band-ink .goal-shift { color: var(--on-ink); border-top-color: color-mix(in srgb, var(--on-ink) 40%, transparent); }
.band-ink .eyebrow, .band-ink figcaption { color: var(--on-ink); }

/* minimal Advent accent: one line-drawn snowflake, red, no decoration beyond it */
.flake { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.advent { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--accent-text); }
.advent .flake { color: var(--accent); }
.hero .advent { justify-self: start; }

/* place and access: price with what it includes, ticket like the 07.11. page */
.kv .incl { display: block; margin-top: 4px; color: var(--muted-strong); font-size: var(--fs-small); }
.ticket { display: grid; gap: 24px; margin-top: 40px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border-top: 2px solid var(--accent); }
.ticket-head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; }
.ticket-head h3 { font-size: var(--fs-h3); letter-spacing: 0.02em; }
.ticket-price { font-family: var(--font-display); font-size: clamp(3.5rem, 2.4rem + 3vw, 5.5rem); line-height: 0.85; color: var(--accent); font-variant-numeric: tabular-nums; }
.ticket-incl > li { display: flex; gap: 12px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted-strong); }
.ticket-incl > li:last-child { border-bottom: 1px solid var(--line); }
.ticket-incl > li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent); transform: translateY(-2px); }
.ticket-fine { font-size: var(--fs-small); color: var(--muted); }
.ticket .signup { margin-top: 0; }
.footer-row .advent { color: var(--muted); }
@media print { .flake { display: none; } .ticket { border: 1px solid var(--line-strong); } }
