/* Acadiana Shakespeare Festival — The Broadside × La Fête system (DESIGN.md) */

:root {
  --indigo: #26305A;
  --vermilion: #D9482B;
  --vermilion-deep: #B93A22;
  --paper: #F8F5EE;
  --midnight: #171C33;
  --indigo-soft: #A9B4D6;
  --paper-dim: #DCD6C8;
  --stone: #6B6455;
  --hairline: #D8D2C4;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--midnight);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Browser surfaces carry the design too */
::selection { background: var(--vermilion); color: var(--paper); }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }
html { scrollbar-color: var(--indigo) var(--paper); }
body { caret-color: var(--vermilion); }

a { color: var(--vermilion-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; color: var(--indigo); text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }

.fleur { fill: currentColor; }

/* Buttons: solid printed rectangles */
.btn {
  display: inline-block;
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 24px;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-vermilion { background: var(--vermilion-deep); color: var(--paper); }
.btn-vermilion:hover { background: #9E2F1B; color: var(--paper); }
.btn-indigo { background: var(--indigo); color: var(--paper); }
.btn-indigo:hover { background: var(--midnight); color: var(--paper); }
.btn-lg { padding: 18px 32px; font-size: 0.875rem; }

.text-link { font-size: 0.95rem; }

/* Header */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--midnight);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.1;
}
.wordmark .mark { width: 30px; height: 30px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.site-nav > a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--midnight);
}
.site-nav > a:not(.btn):hover { color: var(--vermilion-deep); }

/* Hero — the one authored moment */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--indigo);
  color: var(--paper);
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px) clamp(64px, 8vw, 104px);
}
.sunburst {
  position: absolute;
  right: max(-150px, -10vw);
  top: -110px;
  width: clamp(300px, 36vw, 520px);
  height: auto;
  fill: var(--vermilion);
  opacity: 0;
  transform: rotate(-14deg) scale(0.94);
  animation: burst-in 900ms var(--ease-out) 120ms forwards;
}
.hero-inner {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-title {
  font-size: clamp(2.5rem, 5.9vw, 5rem);
  line-height: 1.04;
  color: var(--paper);
  max-width: 26ch;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 800ms var(--ease-out) 60ms forwards;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: var(--measure);
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 800ms var(--ease-out) 140ms forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 800ms var(--ease-out) 220ms forwards;
}
.hero-alt { color: var(--indigo-soft); font-size: 0.95rem; }
.hero-alt:hover { color: var(--paper); }

@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@keyframes burst-in { to { opacity: 0.92; transform: rotate(0deg) scale(1); } }

/* Proof strip */
.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 56px;
  row-gap: 8px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem;
  color: var(--stone);
  text-align: center;
}
.proof strong { color: var(--midnight); font-weight: 600; }

/* Stages — a sequence, not cards */
.stages {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}
.stages h2 { padding-bottom: 22px; border-bottom: 3px solid var(--midnight); }
.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.stage {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(30px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--hairline);
}
.stage:last-child { border-bottom: none; }
.stage-numeral {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 4.75rem);
  line-height: 0.9;
  color: var(--vermilion);
}
.stage-body { display: flex; flex-direction: column; gap: 10px; max-width: var(--measure); }
.stage-body h3 { color: var(--indigo); font-size: 1.5rem; }
.stage-body p { color: #4A4437; }

/* Teachers */
.teachers {
  background: #FFFFFF;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.teachers, .judges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
  justify-content: center;
}
.teachers-copy, .judges-copy { flex: 1 1 460px; max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.teachers-copy p, .judges-copy p { font-size: 1.05rem; line-height: 1.65; color: #4A4437; max-width: var(--measure); }
.teachers-actions, .judges-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 4px; }

.steps {
  flex: 0 1 400px;
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 30px 32px;
}
.steps h3 { font-family: var(--text); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.steps ol { margin: 0; padding: 0 0 0 1.4em; display: flex; flex-direction: column; gap: 12px; }
.steps li { font-size: 0.98rem; line-height: 1.55; }
.steps li::marker { font-family: var(--display); color: var(--vermilion); }

/* Judges */
.verse {
  flex: 0 1 400px;
  align-self: center;
  margin: 0;
  padding-top: 18px;
  border-top: 3px solid var(--indigo);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verse p { font-family: var(--text); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--indigo); }
.verse cite { font-style: normal; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.judges-contact { font-size: 0.95rem; color: var(--stone); }

/* Future */
.future { background: var(--indigo); color: var(--paper); }
.future-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 100px) clamp(20px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.future h2 { color: var(--paper); }
.future-lede { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; max-width: 32ch; }
.future p:not(.future-lede) { color: var(--paper-dim); max-width: var(--measure); }

/* Footer */
.site-foot {
  background: var(--midnight);
  color: #9A94A8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 40px;
  padding: 28px clamp(20px, 5vw, 72px);
  font-size: 0.88rem;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .foot-mark { width: 22px; height: 22px; opacity: 0.62; }
.site-foot a { color: #B9B3C4; }
.site-foot a:hover { color: var(--paper); }

/* Scroll reveals — quiet, not the hero's moment */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.stage-list .stage:nth-child(2).reveal { transition-delay: 70ms; }
.stage-list .stage:nth-child(3).reveal { transition-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title, .hero-sub, .hero-actions { animation: none; opacity: 1; transform: none; }
  .sunburst { animation: none; opacity: 0.92; transform: none; }
  .reveal { transition: opacity 300ms ease; transform: none; }
}

/* Small screens */
@media (max-width: 760px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
  .stage { grid-template-columns: 64px 1fr; }
  .proof { flex-direction: column; }
  .hero-actions .btn-lg { width: 100%; text-align: center; }
}
