/* Fandomain. One stylesheet, system fonts, no scripts. */

:root {
  --ink: #0b1424;
  --ink-2: #132039;
  --ink-3: #1c2c4a;
  --chalk: #f4f0e7;
  --chalk-2: #e9e3d5;
  --paper: #fbf9f4;
  --lime: #c6f24e;
  --lime-deep: #3c5f0c;
  --on-dark: #f4f0e7;
  --on-dark-muted: #b3bdcf;
  --on-light: #0b1424;
  --on-light-muted: #48536a;
  --rule-dark: rgba(244, 240, 231, 0.16);
  --rule-light: rgba(11, 20, 36, 0.14);
  --radius: 14px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible, .paper :focus-visible { outline-color: var(--lime-deep); }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.022em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.012em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--lime); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.dark .eyebrow { color: var(--lime); }
.light .eyebrow, .paper .eyebrow { color: var(--lime-deep); }

.lede { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; max-width: 40rem; }

/* Bands */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .muted { color: var(--on-dark-muted); }
.light { background: var(--chalk); color: var(--on-light); }
.paper { background: var(--paper); color: var(--on-light); }
.light .muted, .paper .muted { color: var(--on-light-muted); }
.band { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.band-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* Header */
.site-header { background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; color: var(--on-dark);
}
.wordmark svg { width: 30px; height: 30px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a {
  display: inline-block; padding-block: 0.35rem;
  font-size: 0.95rem; font-weight: 600; color: var(--on-dark-muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--on-dark); }
.site-nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--lime); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-home { padding-block: clamp(4rem, 11vw, 8.5rem) clamp(4rem, 10vw, 7.5rem); }
.hero-home h1 { max-width: 13ch; }
.hero-home .lede { margin-top: 1.6rem; color: var(--on-dark-muted); }
.hero-page { padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero-page h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); max-width: 18ch; }
.hero-page .lede { margin-top: 1.25rem; color: var(--on-dark-muted); }
.hero-art {
  position: absolute; z-index: 0; pointer-events: none;
  color: var(--on-dark);
  right: -4%; top: 50%; transform: translateY(-50%);
  width: min(56rem, 60%); opacity: 0.9;
}
.hero-home .lede { max-width: 34rem; }
.hero-page .hero-art { width: min(34rem, 55%); right: -4%; opacity: 0.75; }
.hero-art .accent { stroke: var(--lime); }
@media (max-width: 760px) {
  .hero-art { width: 140%; right: -95%; top: 38%; opacity: 0.22; }
  .hero-page .hero-art { width: 120%; right: -50%; opacity: 0.28; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #d6f878; }
.btn-ghost { border-color: var(--rule-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-3); }

/* Section heads */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); max-width: 46rem; }
.section-head p { font-size: 1.125rem; }
.more { margin-top: 2.5rem; font-weight: 700; }

/* Practices list */
.practices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-light); }
.practices li {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.25rem 1rem;
  padding-block: 1.4rem; border-bottom: 1px solid var(--rule-light);
}
@media (min-width: 820px) {
  .practices li { grid-template-columns: 4.5rem minmax(14rem, 22rem) 1fr; align-items: baseline; }
}
.num { font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--lime-deep); letter-spacing: 0.04em; }
.dark .num { color: var(--lime); }
.practices h3 { font-size: 1.2rem; }
.practices p { grid-column: 2 / -1; margin: 0; }
@media (min-width: 820px) { .practices p { grid-column: auto; } }

/* Two-up */
.two-up { display: grid; gap: 2rem; }
@media (min-width: 820px) { .two-up { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.panel { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.panel h3 { margin-bottom: 0.75rem; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: 0.35rem; }

.tags { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.55rem 0.9rem; border-radius: 6px; background: var(--ink); color: var(--on-dark);
}

/* Principles (dark band) */
.principles { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.principles li { border-top: 1px solid var(--rule-dark); padding-top: 1.25rem; }
.principles h3 { margin-bottom: 0.5rem; }
.statement { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; max-width: 24ch; margin: 0; }

/* Tickets */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 680px) { .tickets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
.ticket {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper); color: var(--on-light);
  border: 1px solid var(--rule-light); border-radius: var(--radius);
}
.light .ticket { background: var(--paper); }
.paper .ticket { background: #fff; }
.ticket-body { padding: 1.5rem 1.5rem 1.4rem; flex: 1; }
.ticket-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.ticket-kind { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime-deep); }
.ticket h3 { margin-bottom: 0.6rem; }
.ticket p { color: var(--on-light-muted); margin: 0; }
.ticket-stub {
  position: relative; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem; border-top: 2px dashed var(--rule-light);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--on-light-muted);
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--chalk); border: 1px solid var(--rule-light);
}
.paper .ticket-stub::before, .paper .ticket-stub::after { background: var(--paper); }
.ticket-stub::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket-stub::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket-stub strong { color: var(--on-light); font-weight: 600; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }
.steps li { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.steps h3 { margin: 0.4rem 0 0.5rem; }

/* Service detail */
.service { display: grid; gap: 1.25rem; padding-block: 2.5rem; border-top: 1px solid var(--rule-light); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service { grid-template-columns: 5rem 1fr 1fr; gap: 2.5rem; } }
.service h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
.service ul { margin: 0; padding-left: 1.1rem; }
.service li { margin-bottom: 0.4rem; }
.service .get { margin-top: 1.25rem; padding: 1rem 1.15rem; background: var(--chalk); border-radius: 10px; }
.service .get strong { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 0.3rem; }
.list-label.spaced { margin-top: 2.5rem; }
.list-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-light-muted); margin: 0 0 0.6rem; }

/* Prose pages */
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; } }

.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-light); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--rule-light); }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-light-muted); padding-top: 0.2rem; }
.facts dd { margin: 0; font-weight: 600; }

/* Call to action band */
.cta { background: var(--lime); color: var(--ink); }
.cta .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 3rem; } }
.cta h2 { max-width: 20ch; }
.cta .eyebrow { color: var(--ink); }
.cta p { font-size: 1.125rem; max-width: 34rem; }
.email-big { font-size: clamp(1.35rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; word-break: break-word; }

/* Contact card */
.contact-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-card .email-big { color: var(--lime); }
.contact-card .eyebrow { color: var(--lime); }
.contact-card .muted { color: var(--on-dark-muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid var(--rule-dark); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 2rem; padding-block: 3rem 2.25rem; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .wordmark { margin-bottom: 0.75rem; }
.site-footer h2 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 0.8rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); padding-top: 1.25rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

/* Not found */
.notfound { min-height: 60vh; display: grid; align-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
}

@media print {
  .site-header, .hero-art, .site-nav { display: none; }
  .dark, .cta { background: #fff; color: #000; }
}
