/* ===========================================================
   TEDxTGS 2026 — Design tokens
   Palette: near-black ground, TEDx red, warm ivory ink,
            muted brass accent (a nod to "forgotten forms" /
            heritage without copying last year's literal theme).
   Type: Fraunces (display, characterful serif) + Work Sans (body)
         + JetBrains Mono (timestamps / data / eyebrows).
=========================================================== */

:root {
  --bg: #0e0d0c;
  --bg-alt: #131211;
  --panel: #18160f14;
  --panel-solid: #17150f;
  --ink: #f4efe4;
  --ink-dim: #c9c2b2;
  --red: #e62b1e;
  --red-dim: #a91d13;
  --brass: #a2916d;
  --line: rgba(244, 239, 228, 0.12);
  --line-strong: rgba(244, 239, 228, 0.22);

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

img { max-width: 100%; display: block; }

address { font-style: normal; }

/* ===================== NAV ===================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-mark { color: var(--red); }

.nav-links {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--red);
  color: var(--ink);
  text-decoration: none;
  padding: 8px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover { background: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 140px 28px 90px;
}

.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, 150vw);
  height: min(1180px, 150vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 40% at 50% 42%, rgba(230, 43, 30, 0.16), transparent 70%);
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 100%;
  height: 100%;
  animation: ring-spin 90s linear infinite;
}

.ring-inner {
  width: 66%;
  height: 66%;
  border-color: var(--line);
  animation: ring-spin-reverse 70s linear infinite;
}

.ring-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px 4px rgba(230, 43, 30, 0.55);
  transform: translateX(-50%);
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes ring-spin-reverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ring-outer, .ring-inner { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 28px;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 12vw, 7.5rem);
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-x {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
}

.hero-school {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink-dim);
  margin: 6px 0 30px;
}

.hero-chapter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}

.hero-theme {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--red);
  margin: 0 0 26px;
}

.hero-copy {
  max-width: 600px;
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin: 0 0 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
}

.meta-value {
  font-size: 1rem;
  font-weight: 500;
}

.countdown .meta-value {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 1.15rem;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--red-dim);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

/* ===================== SECTIONS ===================== */
.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section.about { background: var(--bg-alt); }
.section.committee { background: var(--bg-alt); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 48px;
  max-width: 800px;
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.about-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.about-block p {
  color: var(--ink-dim);
}

.social-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.social-row a {
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.social-row a:hover { color: var(--red); border-color: var(--red); }

/* ===================== SPEAKERS ===================== */
.group-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin: 40px 0 26px;
}
.group-label:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 8px;
}

.speaker-card {
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.speaker-card:hover { border-color: var(--line-strong); }

.speaker-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #232019;
  background-size: cover;
  background-position: center;
  position: relative;
}
.speaker-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
}

.speaker-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 18px 20px 2px;
}

.speaker-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin: 0 20px 12px;
}

.speaker-bio {
  font-size: 0.92rem;
  color: var(--ink-dim);
  margin: 0 20px 22px;
}

/* ===================== TBA PANEL ===================== */
.tba-panel {
  border: 1px dashed var(--line-strong);
  padding: 40px;
  max-width: 640px;
}
.tba-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.tba-copy { color: var(--ink-dim); margin: 0; }
.tba-copy a { color: var(--ink); border-bottom: 1px solid var(--line-strong); text-decoration: none; }
.tba-copy a:hover { color: var(--red); border-color: var(--red); }
.schedule-tba { margin-bottom: 40px; }

/* ===================== SCHEDULE ===================== */
.timeline {
  list-style: none;
  margin: 0 0 50px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: flex;
  gap: 28px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.t-time {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--brass);
  min-width: 90px;
}

.t-label { font-size: 1.02rem; }

.btn-tickets { margin-right: 18px; }
.tickets-note {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--ink-dim);
  font-style: italic;
}

/* ===================== VENUE ===================== */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.venue address {
  font-size: 1.05rem;
  color: var(--ink-dim);
  line-height: 1.8;
}
.map-embed { border: 1px solid var(--line); }

/* ===================== ARCHIVE ===================== */
.archive-copy { color: var(--ink-dim); max-width: 600px; margin-bottom: 40px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--panel-solid);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.video-embed {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===================== FOOTER ===================== */
.site-footer { padding: 60px 0 30px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { margin: 0 0 8px; }
.footer-tagline { color: var(--ink-dim); margin: 0; font-size: 0.92rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--red); }
.footer-fine {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 0 28px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  opacity: 0.7;
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(14,13,12,0.85);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .about-grid, .venue-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    z-index: 10;
  }
}

@media (max-width: 520px) {
  .hero-meta { gap: 24px; }
  .timeline li { flex-direction: column; gap: 4px; }
}
