/* Public conference schedule (index.html ONLY) — "Blackout" brand system.
   Dark-first, single theme (no prefers-color-scheme block by design).
   admin.html + staff.html keep style.css; this file must not be linked from them. */

/* Antenna (licensed, self-hosted from public/fonts — woff2 built from the supplied OTFs).
   Text family has 200 / 400 / 500 / 900 uprights only: ask for those weights explicitly.
   400 comes from "Antenna-Regular copy.otf" — NOT "ANTENNA.otf", which is a caps-only heavy display cut.
   The 200/400/900 files lacked the macron vowels (āēīōū, needed for "Alkemē"); those glyphs are
   synthesised from each face's own letter + macron outlines by tools/build_antenna_fonts.py.
   ROLLBACK to the untouched originals: swap the three urls below for antenna-extralight-orig /
   antenna-regular-orig / antenna-black-orig .woff2 (same folder) and bump ?v= in index.html. */
@font-face { font-family: "Antenna"; font-weight: 200; font-style: normal; font-display: swap; src: url("fonts/antenna-extralight-2.woff2") format("woff2"); }
@font-face { font-family: "Antenna"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/antenna-regular-3.woff2") format("woff2"); }
@font-face { font-family: "Antenna"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/antenna-medium.woff2") format("woff2"); }
@font-face { font-family: "Antenna"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/antenna-black-2.woff2") format("woff2"); }
@font-face { font-family: "Antenna Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/antenna-cnd-medium.woff2") format("woff2"); }
@font-face { font-family: "Antenna Compressed"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/antenna-cmp-black.woff2") format("woff2"); }

:root {
  --bg: #0e0f12; --surface: #14161a; --raised: #16181d; --ink: #f2efe7; --muted: #9aa0a8; --faint: #565b64;
  --line: #23262c; --line-strong: #2a2e35; --accent: #0066b3; --accent-ink: #fff; --accent-soft: #132534;
  --accent-line: #2f5f86; --accent-lt: #5aa5de; --ring: rgba(0, 102, 179, .25);
  --good: #3ec78d; --warn: #c0562a; --warn-lt: #e8956b; --warn-bg: #241610; --warn-line: #5c3320;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .6); --radius: 0px;
  --font: "Antenna", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Antenna Condensed", "Antenna", system-ui, sans-serif;
  --display-hero: "Antenna Compressed", "Antenna Condensed", "Antenna", system-ui, sans-serif;

  --card-radius: 10px;
  --maxw: 960px;
  /* text-size multiplier, driven by the A− / A+ header buttons (common.js,
     persisted in localStorage). Scales schedule text only — the cloned site
     chrome (.dtf-*) deliberately keeps the live site's fixed sizes. */
  --fs: 1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
}

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

/* ---- buttons (square, uppercase micro-label) ---- */
.btn, .refresh-btn, .day-tab, .pop-close {
  font-family: var(--font);
  font-size: calc(11px * var(--fs)); font-weight: 900; text-transform: uppercase; letter-spacing: .18em;
  border-radius: var(--radius); cursor: pointer; line-height: 1;
  transition: filter .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, .refresh-btn:hover, .day-tab:hover, .pop-close:hover { filter: brightness(1.12); }

/* ---- dentthefuture.com site chrome (cloned header + footer) ----
   Palette mirrors the live Squarespace site (cream #f7f4ee, ink #1b1918), NOT the
   Blackout tokens — that's deliberate, so it reads as the same site. */
.dtf-header {
  /* Two states like the live site (confirmed via Andreas's screenshots 2026-08-23):
     tall padding at the top of the page, compressed once scrolled (.compact, set by JS).
     Headless measurements miss this — Squarespace drives it from scroll/rAF. */
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 52px 40px; transition: padding 0.25s ease;
  background: #f7f4ee; color: #1b1918;
  box-shadow: 0 1px 0 rgba(27, 25, 24, 0.08);
}
.dtf-header.compact { padding: 28px 40px; }
.dtf-logo { display: flex; align-items: center; }
.dtf-logo img { height: 56px; width: auto; display: block; }
.dtf-nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.dtf-nav a {
  color: #1b1918; text-decoration: none; font-size: 16px; line-height: 1.5;
  font-family: var(--font); font-weight: 400; white-space: nowrap;
}
.dtf-nav a:hover { opacity: 0.6; }
.dtf-nav a.active { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.dtf-social { display: inline-flex; align-items: center; gap: 12px; margin-left: 4px; }
.dtf-social a { display: inline-flex; }
.dtf-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.dtf-burger span { display: block; width: 22px; height: 2px; background: #1b1918; margin: 5px 0; }

/* footer band = the site's dark navy section theme (#223f7c), cream text */
.dtf-footer { background: #223f7c; color: #f7f4ee; }
.dtf-footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 20px 96px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.dtf-footer p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; font-family: var(--font); font-weight: 500; }
.dtf-footer p.dtf-fhead { font-size: 24px; font-weight: 400; line-height: 1.3; margin: 0 0 8px; }
.dtf-footer p.dtf-fgap { margin-top: 18px; }
.dtf-footer a { color: #f7f4ee; text-decoration: underline; text-underline-offset: 3px; }
.dtf-footer a:hover { opacity: 0.6; }

@media (max-width: 1160px) {
  .dtf-burger { display: block; }
  .dtf-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #f7f4ee; border-bottom: 1px solid rgba(27, 25, 24, 0.12);
    padding: 8px 0 12px;
  }
  .dtf-nav.open { display: flex; }
  .dtf-nav a { padding: 10px 20px; font-size: 16px; }
  .dtf-social { padding: 10px 20px; gap: 16px; }
}
/* Squarespace's mobile header (≤949px on the live site): fixed-height bar, small logo.
   NON-sticky on mobile (Andreas 2026-08-24) — it scrolls away with the page. */
@media (max-width: 949px) {
  .dtf-header { padding: 26px 23px; position: static; }
  .dtf-header.compact { padding: 26px 23px; } /* no shrink on mobile */
  .dtf-logo img { height: 30px; }
}
@media (max-width: 640px) {
  .dtf-footer-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 16px 36px; }
}

/* ---- header ---- */
.site-header {
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.header-text { display: flex; flex-direction: column; }
.header-text h1 {
  margin: 0;
  font-family: var(--display-hero);
  font-weight: 900;
  font-size: calc(44px * var(--fs));
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.header-text h1::after { content: "."; color: var(--accent-lt); }
/* tagline renders as the eyebrow ABOVE the title (cosmetic order only; JS still sets its text) */
.header-text p {
  order: -1;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: calc(11px * var(--fs)); font-weight: 500;
  text-transform: uppercase; letter-spacing: .3em;
}
.header-text p::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--muted); vertical-align: middle; margin-right: 10px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.refresh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 11px 14px;
  white-space: nowrap;
}
.refresh-btn:hover { color: var(--ink); border-color: var(--accent); }
.refresh-icon { font-size: 14px; line-height: 1; }

/* text-size stepper (A− / A+). Deliberately NOT scaled by --fs, so the
   controls stay put while everything else grows/shrinks. */
.fs-btn {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 11px 12px;
  font-size: 11px; letter-spacing: .08em;
}
.fs-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--accent); }
.fs-btn:disabled { opacity: .35; cursor: default; }

/* ---- TEST-ONLY time-travel clock (delete with the #time-test block) ----
   Lives INSIDE the cream .dtf-header, so it is styled for that palette,
   not the Blackout tokens. */
.time-test {
  display: none; /* the clock only drives the MOBILE All/Upcoming/Past filter */
  align-items: center; gap: 8px;
  padding: 6px 8px;
  border: 1px dashed var(--warn); border-radius: 8px;
  min-width: 0;
}
@media (max-width: 640px) { .time-test { display: flex; } }
.time-test input {
  background: #fff; color: #1b1918;
  border: 1px solid rgba(27, 25, 24, .3); border-radius: var(--radius);
  font-family: var(--font); font-size: 12px; padding: 6px 8px;
  color-scheme: light; min-width: 0;
}
/* tight mobile header bar */
@media (max-width: 949px) {
  .time-test { padding: 4px 6px; gap: 6px; }
  .time-test input { font-size: 11px; padding: 5px 6px; }
}

/* NOW badge — in-progress items on the mobile Upcoming tab */
.now-badge {
  display: inline-block; margin-left: 8px; padding: 2px 6px 1px;
  background: var(--accent); color: var(--accent-ink);
  font-size: calc(9px * var(--fs)); font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
  border-radius: 3px; vertical-align: 1px;
}

/* ---- day tabs ---- */
.day-tabs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.day-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 11px 16px;
}
.day-tab:hover { color: var(--ink); border-color: var(--accent); }
.day-tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---- schedule body ---- */
.schedule { max-width: var(--maxw); margin: 0 auto; padding: 20px; }
.day-heading {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-weight: 500; font-size: calc(26px * var(--fs)); line-height: .98; letter-spacing: .01em;
  text-transform: uppercase;
}
.day-heading::after { content: "."; color: var(--accent-lt); }

/* session days: side-by-side day columns */
.stack .day-col { margin-bottom: 8px; }
.daycols { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
.daycols .day-col {
  flex: 1 1 0; min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius); padding: 12px 12px 6px;
}
.day-col .day-heading { font-size: calc(22px * var(--fs)); margin: 4px 2px 14px; }

/* a day = stack of rows, one per start time; cards in a row share it equally (--n = count) */
.timeline { width: 100%; }
.tl-row {
  display: grid;
  grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

/* ---- cards ---- */
.card {
  position: relative; min-width: 0;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--muted); /* Dent grey by default … */
  border-radius: var(--card-radius);
  padding: 8px 10px 7px;
  font-size: calc(12.5px * var(--fs));
}
.card.t-session, .card.t-activity { border-left-color: var(--accent); } /* … Dent blue for sessions + activities */
.card.has-copy { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.card.has-copy:hover, .card.has-copy.is-open { border-color: var(--accent); background: var(--accent-soft); }
.card .c-more {
  margin-top: 6px;
  color: var(--accent-lt);
  font-size: calc(10px * var(--fs)); font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
}
.card .c-more::after { content: " \203A"; }
.tl-card .c-time {
  color: var(--accent-lt);
  font-weight: 500; font-size: calc(11px * var(--fs)); letter-spacing: .1em; text-transform: uppercase;
}
.tl-card .c-main { margin-top: 3px; color: var(--ink); font-weight: 400; font-size: calc(13.5px * var(--fs)); line-height: 1.25; }
.tl-card .c-presenter { font-weight: 500; }
/* presenter name linking to LinkedIn: keep the name's look, subtle accent underline */
a.c-presenter { color: inherit; text-decoration: underline; text-decoration-color: var(--accent-lt); text-underline-offset: 2px; }
a.c-presenter:hover { color: var(--accent-lt); }
.tl-card .c-title { font-weight: 200; }
.tl-card .c-loc { display: block; margin-top: 3px; color: var(--muted); font-size: calc(10.5px * var(--fs)); font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
a.c-loc { text-decoration: none; width: fit-content; }
a.c-loc::after { content: " \2197"; color: var(--accent-lt); }
a.c-loc:hover { color: var(--accent-lt); text-decoration: underline; }

/* ---- session-copy popover (anchored to the clicked card; JS positions it) ---- */
.pop {
  position: absolute; z-index: 80;
  background: var(--raised); color: var(--ink);
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 24px); overflow-y: auto;
  --arrow-x: 24px;
}
.pop::before {
  content: ""; position: absolute; left: var(--arrow-x); width: 12px; height: 12px;
  background: var(--raised); border: 1px solid var(--accent-line);
  transform: translateX(-50%) rotate(45deg);
}
.pop.pop-down::before { top: -7px; border-right: none; border-bottom: none; }
.pop.pop-up::before { bottom: -7px; border-left: none; border-top: none; }
.pop-title {
  margin: 0 0 12px;
  font-family: var(--display); font-weight: 500; font-size: calc(22px * var(--fs)); line-height: .98; letter-spacing: .01em;
  text-transform: uppercase;
}
.pop-title::after { content: "."; color: var(--accent-lt); }
.pop-body { margin: 0 0 16px; white-space: pre-wrap; line-height: 1.55; font-size: calc(14px * var(--fs)); color: var(--ink); }
/* markdown-lite inside session copy: Antenna has no 700, so <strong> is pinned
   to the 500 Medium face (a bare bold would resolve to 900 Black) */
.pop-body strong { font-weight: 500; }
.pop-body a { color: var(--accent-lt); text-decoration: underline; text-underline-offset: 2px; }
.pop-body a:hover { filter: brightness(1.15); }
.pop-close { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 10px 16px; }

/* ---- status / footer ---- */
.status { text-align: center; color: var(--muted); padding: 40px 20px; font-size: calc(13px * var(--fs)); }
.status.error { color: var(--warn-lt); }
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px 40px;
  color: var(--faint);
  font-size: calc(11px * var(--fs)); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-align: center;
}

/* ---- mobile ---- */
@media (max-width: 640px) {
  .header-inner { padding: 22px 16px 18px; }
  .header-text h1 { font-size: calc(32px * var(--fs)); }
  .refresh-label { display: none; }
  .refresh-btn { padding: 11px 12px; }
  .schedule, .day-tabs { padding-left: 14px; padding-right: 14px; }

  /* session days stack: Tuesday underneath Monday */
  .daycols { flex-direction: column; gap: 16px; overflow-x: visible; }
  .daycols .day-col { min-width: 0; width: 100%; flex: none; }

  /* concurrent items: two still sit side by side; three or more list under one another */
  .tl-row { grid-template-columns: minmax(0, 1fr); }
  .tl-row[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
