/* ==========================================================================
   Drama Club Inc. — site styles
   ========================================================================== */

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4ede4;
  --ink: #1f1418;
  --muted: #62555a;
  --line: #e7ddd2;
  --accent: #8e1b2e;
  --accent-hover: #74121f;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3e5;
  --gold: #8f6214;

  /* Stage (hero) colours stay the same in light and dark mode */
  --stage-ink: #fff6ec;
  --stage-muted: #ecd6cc;
  --stage-gold: #f3d08a;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 20, 24, 0.05), 0 10px 30px rgba(31, 20, 24, 0.06);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120c0e;
    --surface: #1b1316;
    --surface-2: #211719;
    --ink: #f3ebe5;
    --muted: #b9aaa6;
    --line: #34272b;
    --accent: #f07a8a;
    --accent-hover: #f592a0;
    --accent-ink: #1a0a0e;
    --accent-soft: #3a1c22;
    --gold: #e3b45e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1em; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1rem;
  }
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-gold { background: var(--stage-gold); color: #2a0a12; }
.btn-gold:hover { background: #f8dda6; }

.btn-ghost {
  border-color: rgba(255, 246, 236, 0.45);
  color: var(--stage-ink);
}
.btn-ghost:hover {
  border-color: rgba(255, 246, 236, 0.8);
  background: rgba(255, 246, 236, 0.08);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

/* Stage (curtain hero) --------------------------------------------------- */

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--stage-ink);
  background-color: #3a0b16;
  background-image:
    radial-gradient(ellipse 55% 80% at 50% -12%, rgba(255, 210, 140, 0.3), rgba(255, 210, 140, 0) 70%),
    linear-gradient(90deg, rgba(10, 0, 4, 0.55), rgba(10, 0, 4, 0) 22%, rgba(10, 0, 4, 0) 78%, rgba(10, 0, 4, 0.55)),
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.24) 0px,
      rgba(0, 0, 0, 0) 28px,
      rgba(255, 255, 255, 0.05) 44px,
      rgba(0, 0, 0, 0) 60px,
      rgba(0, 0, 0, 0.24) 88px),
    linear-gradient(180deg, #5e1022 0%, #3a0b16 60%, #22060d 100%);
}
.stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e3b45e 20%, var(--stage-gold) 50%, #e3b45e 80%, transparent);
}
.stage h1, .stage h2 { color: var(--stage-ink); }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stage .eyebrow { color: var(--stage-gold); }

.hero {
  padding: clamp(80px, 13vw, 150px) 0 clamp(120px, 14vw, 170px);
  text-align: center;
}
.hero h1 {
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: 0.35em;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
}
.hero .lead {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--stage-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.page-hero {
  padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 7vw, 84px);
  text-align: center;
}
.page-hero h1 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
}
.page-hero .lead {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--stage-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.page-hero .meta {
  margin: 0;
  color: var(--stage-muted);
  font-size: 0.95rem;
}

/* Sections -------------------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface-2); }
.section-tight-top { padding-top: 0; }

.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.grid-4 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); }
.card-lg { padding: clamp(28px, 4vw, 40px); }
.card-lg p { font-size: 1.15rem; color: var(--ink); }

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Facts strip (overlaps the hero) */
.facts-wrap {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 680px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
.fact {
  padding: 24px 28px;
  background: var(--surface);
}
.fact-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}
.fact-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Split layout */
.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }
  .split-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.split-intro { color: var(--muted); font-size: 1.125rem; }
.prose-lg p { font-size: 1.15rem; }
.prose-lg p:last-child { margin-bottom: 0; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.steps h3 { margin-bottom: 0.3em; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--muted); }

/* Call to action band */
.cta {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 24px;
}
.cta::after { display: none; }
@media (min-width: 860px) {
  .cta { grid-template-columns: 1fr auto; }
}
.cta h2 { margin-bottom: 0.25em; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.cta p { margin: 0; color: var(--stage-muted); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Definition list (company info) */
.dl { margin: 0; }
.dl > div {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.dl > div:first-child { border-top: 0; padding-top: 0; }
.dl > div:last-child { padding-bottom: 0; }
@media (min-width: 600px) {
  .dl > div { grid-template-columns: 210px 1fr; gap: 16px; }
}
.dl dt { color: var(--muted); font-size: 0.95rem; }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Contact --------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }
}
.contact-list { display: grid; gap: 16px; }
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-item .icon { flex: none; margin: 0; }
.contact-item h2 {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-item a,
.contact-item address {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-item p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.contact-item p a { font-size: inherit; color: var(--accent); }

.form h2 { font-size: 1.6rem; }
.form > p { margin-bottom: 24px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
label { font-size: 0.95rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7c80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 0.875rem; }
.form-status { margin: 12px 0 0; font-weight: 500; }
.form-status:empty { display: none; }

/* Legal pages ----------------------------------------------------------- */

.legal {
  display: grid;
  gap: 32px;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}
@media (min-width: 960px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
}
.legal-single { display: block; }
.legal-single .prose { margin-inline: auto; }

.toc {
  align-self: start;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow: auto;
  }
}
.toc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; letter-spacing: 0; }
.toc[open] summary::after { content: "\2212"; }
@media (min-width: 960px) {
  .toc summary { pointer-events: none; }
  .toc summary::after { display: none; }
}
.toc ol { margin: 0; padding: 0 0 6px; list-style: none; }
.toc a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
}
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.prose { max-width: 72ch; }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}
.prose > h2:first-child,
.prose > .callout + h2 { margin-top: 0; }
.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 650;
}
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--gold); }

.callout {
  margin: 0 0 2.5em;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
}
.callout p:last-child { margin-bottom: 0; }

.address-card {
  margin: 0 0 1em;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.table-wrap {
  margin: 0 0 1.5em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* 404 ------------------------------------------------------------------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 64px 0;
  text-align: center;
}
.not-found .code {
  margin-bottom: 8px;
  color: var(--stage-gold);
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 600;
  line-height: 1;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
}
.footer-brand p { max-width: 32ch; margin-top: 14px; }
.site-footer h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer address { margin-bottom: 12px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* Motion & print -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none !important; }
  .stage { background: none !important; color: #000 !important; }
  .stage h1, .stage .lead, .stage .meta, .stage .eyebrow { color: #000 !important; }
  .legal { display: block; padding: 0; }
  body { background: #fff; color: #000; }
}
