/* ForisConf styles. Palette from logo/logo-notes.md */
:root {
  --ink: #0B1F3A;          /* Foris Ink */
  --teal: #0FA3B1;         /* Signal Teal (fills, large marks) */
  --teal-text: #0A7782;    /* darker teal for text on light bg (AA) */
  --teal-bright: #2CC4CF;  /* Bright Teal (on dark) */
  --amber: #F2A93B;        /* Node Amber (small highlights only) */
  --slate: #4A5B73;        /* secondary text */

  --bg: #FFFFFF;
  --bg-alt: #F3F6F9;
  --surface: #FFFFFF;
  --text: var(--ink);
  --muted: var(--slate);
  --accent: var(--teal-text);
  --accent-fill: var(--teal);
  --on-accent: var(--ink);
  --border: #D9E1EA;
  --band-bg: var(--ink);
  --band-text: #FFFFFF;
  --band-accent: var(--teal-bright);
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 20px rgba(11, 31, 58, .06);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07162B;
    --bg-alt: #0B1F3A;
    --surface: #0F2747;
    --text: #E8EEF5;
    --muted: #A9B8CB;
    --accent: var(--teal-bright);
    --accent-fill: var(--teal-bright);
    --on-accent: #07162B;
    --border: #1E3a5F;
    --band-bg: #0F2747;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--sans); overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 36px; width: auto; display: block; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 10px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--accent); }
.lang-toggle, .nav-toggle {
  font: 600 .85rem/1 var(--mono); color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; cursor: pointer;
}
.lang-toggle:hover, .nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; padding: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none; box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .site-nav a { padding: 12px; font-size: 1rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 22px; border-radius: 8px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: var(--text); }
.btn-ghost:hover { color: var(--accent); }
.btn[disabled] { opacity: .7; cursor: not-allowed; filter: grayscale(.4); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(900px 400px at 90% 0%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%),
    linear-gradient(var(--bg), var(--bg-alt));
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow, .kicker {
  font: 500 .8rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9em;
}
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 4.6rem); margin-bottom: .2em; letter-spacing: -.01em; }
.full-title {
  font-family: var(--serif); font-size: clamp(1.15rem, .9rem + 1.1vw, 1.6rem); line-height: 1.35;
  margin-bottom: .4em; color: var(--text);
}
.acr { color: var(--accent); font-weight: 700; border-bottom: 3px solid var(--amber); }
.local-title { color: var(--muted); font-size: 1rem; margin-bottom: 1em; }
.tagline { font-size: 1.15rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.hero-facts { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 6px; }
.hero-facts li { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 600; }
.fact-label { font: 500 .78rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 4.5em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.fee-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
}
.fee-chip span[aria-hidden] { color: var(--amber); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.online-chip { background: color-mix(in srgb, var(--amber) 16%, transparent); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.online-chip .chip-icon { color: var(--amber); flex: none; }
.eyebrow-online { color: #9A5800; font-weight: 700; } /* darker amber: passes contrast on white */
@media (prefers-color-scheme: dark) { .eyebrow-online { color: var(--amber); } }
.band-online { color: var(--amber); white-space: nowrap; }

.countdown-card {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .countdown-card { background: var(--surface); border: 1px solid var(--border); } }
.countdown-title { font: 500 .8rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-bright); margin-bottom: .4em; }
.countdown-date { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 1em; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; z-index: 1; }
.countdown > div {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px; padding: 10px 4px; text-align: center;
}
.cd-num { display: block; font: 500 clamp(1.4rem, 1rem + 1.5vw, 2rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.cd-unit { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #C9D5E3; margin-top: 4px; }
.countdown-closed { font-weight: 600; }
.tz-note { font-size: .85rem; color: #C9D5E3; margin: 1em 0 0; position: relative; z-index: 1; }
.door-art { position: absolute; right: -16px; bottom: -14px; width: 190px; color: var(--teal-bright); opacity: .22; pointer-events: none; }

/* ---------- free band ---------- */
/* manifesto */
.manifesto-band { background: var(--band-bg); color: var(--band-text); padding: clamp(56px, 8vw, 96px) 0; }
.manifesto-band .kicker { color: var(--band-accent); }
.manifesto-band h2 { color: #fff; }
.manifesto-band h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--amber); margin-top: 14px; }
.man-intro { color: #D3DEEA; font-size: 1.08rem; max-width: 70ch; }
.manifesto { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.manifesto li { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px; }
.man-num { display: block; font: 500 .95rem/1 var(--mono); color: var(--amber); margin-bottom: 14px; }
.manifesto h3 { color: #fff; margin: 0 0 .4em; }
.manifesto p { color: #D3DEEA; margin: 0; font-size: .95rem; }
.tools-note { margin-top: 44px; padding: 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); }
.tools-note h3 { color: #fff; margin: 0 0 .4em; }
.tools-note p { color: #D3DEEA; margin: 0; font-size: .95rem; }
.tools-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.tools-list dt { font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--band-accent); margin-bottom: 4px; }
.tools-list dd { margin: 0; color: #fff; }
.tools-outro { font-weight: 600; color: var(--amber) !important; }
.free-band { background: var(--band-bg); color: var(--band-text); padding: 44px 0; }
.free-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 40px; align-items: center; }
.free-band h2 { color: #fff; margin: 0; }
.free-band h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--amber); margin-top: 14px; }
.free-band p { color: #D3DEEA; margin: 0; grid-column: 1; }
.fee-table { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: grid; gap: 8px; }
.fee-table div {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px;
}
.fee-table dt { color: #E8EEF5; }
.fee-table dd { margin: 0; font: 600 1.1rem/1 var(--mono); color: var(--band-accent); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 70ch; }
.prose p { max-width: 70ch; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.tba {
  font-family: var(--mono); font-size: .88em; color: var(--muted);
  background: color-mix(in srgb, var(--amber) 16%, transparent); padding: 1px 6px; border-radius: 4px;
}

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.foris-card {
  border-left: 4px solid var(--accent-fill); padding: 8px 0 8px 24px; margin-top: 56px;
}
.foris-word { font: italic 700 3rem/1 var(--serif); color: var(--accent); margin-bottom: .2em; }
.foris-pos { font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foris-card hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.foris-acr { font-size: .95rem; color: var(--muted); }
.foris-acr b { color: var(--accent); font-size: 1.1em; }
.values { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.values li { border-top: 3px solid var(--accent-fill); padding-top: 14px; }
.values h3 { margin-bottom: .3em; }
.values p { color: var(--muted); font-size: .95rem; margin: 0; }

/* tracks */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.track {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--border);
}
.track-hl { border-top-color: var(--accent-fill); }
.track-3 { border-top-color: var(--amber); }
.track-4 { border-top-color: var(--slate); }
.track-tag { font: 500 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5em; }
.track h3 { font-size: 1.35rem; }
.track ul { margin: 0; padding-left: 1.1em; }
.track li { margin-bottom: .35em; font-size: .96rem; }
.track li::marker { color: var(--accent); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--border); }
.tl-item { position: relative; padding-top: 34px; }
.tl-dot {
  position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent-fill);
}
.tl-item.next .tl-dot { background: var(--accent-fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 22%, transparent); }
.tl-item.past .tl-dot { border-color: var(--muted); background: var(--muted); }
.tl-item.past { opacity: .7; }
.tl-date { font: 500 .95rem/1.4 var(--mono); color: var(--accent); margin-bottom: .3em; }
.tl-label { font-size: 1.1rem; margin-bottom: .4em; }
.badge { display: inline-block; font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 4px; }
.badge-next { background: var(--amber); color: var(--ink); }
.badge-past { border: 1px solid var(--border); color: var(--muted); }

/* cfp */
.cfp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.guide-list { margin: 0; }
.guide-list > div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.guide-list > div:last-child { border-bottom: 0; }
.guide-list dt { font-weight: 600; }
.guide-list dd { margin: 0; color: var(--muted); }
.steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 600 .9rem/1 var(--mono);
  background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--accent);
}
.submit-box { display: grid; gap: 10px; justify-items: start; margin: 0; }
.small { font-size: .88rem; color: var(--muted); }

/* proceedings */
.proc-date { font-size: 1.05rem; }
.proc-date strong { font-family: var(--mono); color: var(--accent); }

/* committees */
.committees { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.committees .card { border-top: 3px solid var(--accent-fill); }
.committees p { margin: 0; }
.supporters { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.supporters h3 { margin: 0 0 6px; }
.supporters-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }

/* venue */
.venue-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* faq */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.faq summary {
  cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 500 1.3rem/1 var(--mono); color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* contact */
.contact { text-align: center; }
.contact .lead, .contact p { margin-left: auto; margin-right: auto; }
.email-link { font: 600 clamp(1.2rem, 1rem + 1.4vw, 1.8rem)/1.3 var(--serif); word-break: break-word; }

/* footer */
.site-footer { background: #07162B; color: #C9D5E3; padding: 48px 0 24px; font-size: .92rem; }
.site-footer a { color: var(--teal-bright); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; }
.footer-title { font-family: var(--serif); color: #fff; max-width: 40ch; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; }
.footer-bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .free-inner, .cfp-grid, .venue-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fee-table { grid-column: 1; grid-row: auto; }
  .foris-card { margin-top: 0; }
  .values, .manifesto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .timeline::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .tl-item { padding: 0 0 0 40px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .values, .committees, .manifesto, .tools-list { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; }
  .countdown-card { padding: 20px; }
  .countdown { gap: 6px; }
  .guide-list > div { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 30px; }
  .card, .track { padding: 20px; }
}
[id] { scroll-margin-top: 72px; }
