/* StoryFrame.tv — dark cinematic, restrained. No JS required. */

:root {
  --ink: #0b0b0c;          /* page canvas */
  --ink-2: #121214;        /* raised surface */
  --line: #2a2a2e;         /* hairline rules */
  --line-strong: #3d3d42;
  --paper: #ececea;        /* primary type */
  --paper-dim: #a7a7a3;    /* secondary type */
  --paper-faint: #6e6e6b;  /* tertiary / labels */
  --live: #e0483a;         /* live indicator only — used sparingly */
  --max: 1080px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--paper); color: var(--ink); }

a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--paper-faint); }
a:hover { text-decoration-color: var(--paper); }

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11,11,12,.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 28px; height: 28px; }

.brand-name {
  font-size: 17px;
  letter-spacing: .04em;
  font-weight: 600;
}

.brand-name .tld { color: var(--paper-dim); font-weight: 400; }

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.site-nav a {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }

/* ---------- framing motif ---------- */

.frame {
  border: 1px solid var(--line);
  padding: 48px 40px;
  position: relative;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ---------- layout ---------- */

main { display: block; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.section + .section { border-top: 1px solid var(--line); }

.kicker {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: .005em;
  margin-bottom: 22px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 16px;
}

h3 {
  font-size: 17px;
  letter-spacing: .03em;
  font-weight: 600;
  margin-bottom: 10px;
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 44em;
}

p { max-width: 44em; margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.dim { color: var(--paper-dim); }

/* hero */

.hero { padding: 110px 24px 90px; }

.hero .frame { padding: 64px 48px; }

/* live dot — decorative pulse, one per site ideally */

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 10px;
  vertical-align: 2px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* grids */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 36px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.cell {
  background: var(--ink);
  padding: 32px 28px;
}

.cell .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--paper-faint);
  display: block;
  margin-bottom: 14px;
}

.cell p { font-size: 15.5px; color: var(--paper-dim); }

/* event roster */

.roster { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }

.roster li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.roster .event-name {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 24px);
}

.roster .event-type {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  text-align: right;
}

/* definition list (FAQ / glossary) */

.qa { border-top: 1px solid var(--line); margin-top: 36px; }

.qa dt {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 23px);
  padding: 28px 0 10px;
}

.qa dd {
  color: var(--paper-dim);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  max-width: 46em;
}

.qa dd p { color: inherit; }

/* steps (portal journey) */

.steps { list-style: none; counter-reset: step; margin-top: 36px; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper-faint);
}

.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 15.5px; color: var(--paper-dim); }

/* CTA band */

.cta-band { text-align: center; }
.cta-band .frame { padding: 56px 40px; }
.cta-band p { margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 56px;
  color: var(--paper-faint);
  font-size: 14px;
}

.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-lineage { margin-bottom: 18px; max-width: 52em; }

.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }

.footer-nav a { color: var(--paper-faint); font-size: 13px; }
.footer-nav a:hover { color: var(--paper); }

.site-footer a { color: var(--paper-faint); }
.site-footer a:hover { color: var(--paper); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 14px 24px; gap: 10px; }
  .hero { padding: 64px 24px 56px; }
  .hero .frame { padding: 40px 26px; }
  .frame { padding: 36px 26px; }
  .section { padding: 52px 24px; }
  .roster li { flex-direction: column; gap: 4px; }
  .roster .event-type { text-align: left; }
}
