/* =========================================================================
   The Lake Erie Ballet Archive — playbill theme
   Dark stage ground, ivory type, crimson and antique gold.
   Evolved from the original site's black background and theatrical framing.
   No layout framework: a single centred measure with full-bleed image bands.
   ========================================================================= */

:root {
  --ink-900: #08080a;
  --ink-800: #0c0b0d;
  --ink-700: #141317;
  --ink-600: #1c1a20;
  --ink-500: #2a272f;
  --rule:    #35313c;

  --ivory:      #f3ece1;
  --ivory-dim:  #c9c1b6;
  --ivory-faint:#8e877e;

  --crimson:      #9e2b32;
  --crimson-lift: #c4444c;
  --gold:         #c9a227;
  --gold-lift:    #e0bf4d;

  --measure: 40rem;
  --wide: 74rem;

  --f-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --f-body: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Safeguard: content is never hidden waiting on JS. Any reveal animation is
   progressive enhancement only. (No scroll-reveal library is used on this
   site; this rule is a standing guard against one ever being added.) */
[data-aos] { opacity: 1 !important; transform: none !important; }

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

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

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

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

a { color: var(--gold-lift); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 39, 0.38); }
a:hover, a:focus { color: var(--ivory); border-bottom-color: var(--crimson-lift); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink-900);
  padding: 0.6rem 1rem; border: 0; z-index: 50; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- measure ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;   /* container is NEVER flush to the viewport */
}
.wrap.wide { max-width: var(--wide); }

/* ---------- masthead ---------- */

.masthead {
  background: var(--ink-900);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.masthead::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--gold) 45%, var(--crimson) 100%);
  opacity: 0.65;
}
.mast-in {
  max-width: var(--wide);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.15rem;
  min-width: 0;
}

.brand { border: 0; display: flex; align-items: baseline; gap: 0.85rem; min-width: 0; flex-wrap: wrap; }
.brand:hover { color: inherit; }
.brand-mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: 0.28rem 0.55rem 0.28rem 0.75rem;
  white-space: nowrap;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  min-width: 0;
}

/* Nav wraps rather than clips — a menu wider than its container must never
   push links past the viewport edge. */
.mainnav { min-width: 0; }
.mainnav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  min-width: 0;
}
.mainnav li { min-width: 0; }
.mainnav a {
  border: 0;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ivory-dim);
  padding-block: 0.3rem;
  display: inline-block;
  border-bottom: 1px solid transparent;
}
.mainnav a:hover, .mainnav a:focus { color: var(--ivory); border-bottom-color: var(--gold); }
.mainnav a[aria-current="page"] { color: var(--gold-lift); border-bottom-color: var(--crimson); }

/* ---------- page head ---------- */

.pagehead {
  background: var(--ink-900);
  padding-block: 3.5rem 3rem;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--crimson-lift);
}
.pagehead h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ivory);
  animation: rise 620ms cubic-bezier(.2,.7,.3,1) both;
}

/* CSS-only entrance that ENDS visible; if it never runs, content still shows. */
@keyframes rise {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pagehead h1 { animation: none; }
}

/* ---------- figures ---------- */

figure { margin: 0; }

.hero-fig {
  margin-block: 2.75rem 0;
  border: 1px solid var(--rule);
  position: relative;
}
.hero-fig::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0) 55%, rgba(8,8,10,0.55) 100%);
  pointer-events: none;
}
.hero-fig img { width: 100%; }

.inline-fig {
  margin-block: 2.5rem;
  border: 1px solid var(--rule);
}

/* ---------- prose ---------- */

.prose {
  padding-block: 3rem 4rem;
  max-width: 40rem;
}
.prose > *:first-child { margin-top: 0; }

.prose p { margin: 0 0 1.45rem; }

.prose p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--ivory);
  border-left: 2px solid var(--crimson);
  padding-left: 1.35rem;
  margin-left: -1.35rem;
}

.prose h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 3.1rem 0 1.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  color: var(--ivory);
  position: relative;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 3.25rem; height: 1px;
  background: var(--gold);
}

.prose h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold-lift);
  margin: 2.2rem 0 0.8rem;
}

.prose strong { font-weight: 600; color: var(--ivory); }
.prose em { font-style: italic; }

.prose ul, .prose ol { margin: 0 0 1.45rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }

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

.foot {
  background: var(--ink-900);
  border-top: 1px solid var(--rule);
  padding-block: 3rem 3rem;
  font-size: 0.925rem;
}
.foot .wrap { max-width: var(--wide); }

.notice {
  border: 1px solid rgba(158, 43, 50, 0.55);
  background: rgba(158, 43, 50, 0.08);
  padding: 1.15rem 1.35rem;
  margin-bottom: 2.75rem;
  color: var(--ivory-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}
.notice p { margin: 0; }
.notice strong { color: var(--crimson-lift); letter-spacing: 0.03em; }

.findex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
}
.fcol { min-width: 0; }
.fh {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: 0.45rem; line-height: 1.45; }
.fcol a { color: var(--ivory-dim); border: 0; font-size: 0.9rem; }
.fcol a:hover, .fcol a:focus { color: var(--gold-lift); }

.copy {
  margin: 1.75rem 0 0;
  font-size: 0.8rem;
  color: var(--ivory-faint);
  letter-spacing: 0.02em;
}

/* ---------- wider viewports ---------- */

@media (min-width: 56rem) {
  body { font-size: 1.09375rem; }
  .pagehead { padding-block: 5rem 4rem; }
  .prose { padding-block: 3.75rem 5rem; }
}

@media (max-width: 34rem) {
  .brand-name { font-size: 0.8rem; letter-spacing: 0.12em; }
  .prose p:first-of-type { font-size: 1.1rem; }
  .mainnav ul { gap: 0.15rem 1rem; }
}
