/* ==========================================================================
   Fauquier Community Theatre — fauquiertheater.org
   Design system: brand navy + star red/green accents drawn from the FCT logo
   ========================================================================== */

:root {
  --navy: #1b3a7a;
  --navy-dark: #12295a;
  --navy-deep: #0d1f45;
  --red: #d92b34;
  --red-dark: #b31e27;
  --green: #3aa63f;
  --gold: #f2b632;
  --ink: #22304a;
  --ink-soft: #4a5875;
  --paper: #ffffff;
  --paper-warm: #f6f7fb;
  --line: #dfe4ef;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(13, 31, 69, 0.10);
  --shadow-md: 0 6px 24px rgba(13, 31, 69, 0.12);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--navy); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); }

p, ul, ol { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3rem 0; }
.section--tint { background: var(--paper-warm); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.75em; }
.prose h2:first-child { margin-top: 0; }

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  max-width: 1240px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  padding: 0.5rem 0;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--navy-dark);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--paper-warm); color: var(--navy-dark); }
.site-nav a[aria-current="page"] { color: var(--red-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-tickets {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  white-space: nowrap;
}
.btn-tickets:hover { background: var(--red-dark); color: #fff; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.1rem;
  }
  .site-nav a { padding: 0.7rem 0.75rem; font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1rem; }
  .brand-name small { font-size: 0.6rem; }
  .btn-tickets { font-size: 0.85rem; padding: 0.5rem 0.9rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(58, 166, 63, 0.25), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(217, 43, 52, 0.28), transparent 55%),
    linear-gradient(160deg, var(--navy-dark), var(--navy-deep));
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero p {
  color: #d7deef;
  font-size: 1.2rem;
  max-width: 56ch;
}
.hero .btn-row { margin-top: 1.75rem; }

.page-hero {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-deep));
  color: #fff;
  padding: 2.75rem 0;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #c9d3ea; margin: 0.5rem 0 0; max-width: 62ch; }

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

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--navy-dark); background: transparent; }
.btn-outline:hover { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
.hero .btn-outline, .page-hero .btn-outline { color: #fff; }
.hero .btn-outline:hover, .page-hero .btn-outline:hover { background: #fff; color: var(--navy-dark); border-color: #fff; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.card-link .more { color: var(--red-dark); font-weight: 700; }

/* News archive */
.news-year {
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
  color: var(--navy);
}
.news-year:first-child { margin-top: 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.news-card-media {
  aspect-ratio: 16 / 10;
  background: var(--paper-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-noimg {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--line);
  letter-spacing: 0.15em;
}
.news-card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.news-card-body h3 { font-size: 1.15rem; margin: 0; }
.news-date {
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}
.news-excerpt { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Blog post */
.post { padding: 2.5rem 0 3.5rem; }
.post-wrap { max-width: 760px; }
.post-back { margin-bottom: 1rem; }
.post-back a { font-weight: 600; text-decoration: none; }
.post h1 { margin: 0.2rem 0 1.25rem; }
.post-hero {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  background: var(--paper-warm);
}
.post-body img {
  border-radius: var(--radius);
  margin: 1.25rem auto;
}
.post-body figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: -0.5rem;
}
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-dark);
  font-size: 0.95rem;
}
.post-nav a:hover { color: var(--red-dark); }
.post-nav a span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.post-nav-newer { text-align: right; }

/* Show cards */
.show-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.show-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.show-card .show-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.show-card .show-body > :last-child { margin-top: auto; }
.show-dates {
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.show-meta { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.5rem;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   Misc components
   -------------------------------------------------------------------------- */

.eyebrow {
  color: var(--red-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.divider { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.notice {
  background: var(--paper-warm);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
th { background: var(--paper-warm); color: var(--navy-dark); }

dl.faq dt {
  font-weight: 700;
  color: var(--navy-dark);
  margin-top: 1.25rem;
}
dl.faq dd { margin: 0.25rem 0 0; }

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  margin-bottom: 0.75rem;
  background: var(--paper);
}
details summary {
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
}
details[open] summary { margin-bottom: 0.5rem; }
details > :last-child { margin-bottom: 0; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { color: var(--navy-dark); }

/* Donor / name columns */
.name-columns {
  columns: 3 14rem;
  column-gap: 2.5rem;
  list-style: none;
  padding: 0;
}
.name-columns li { padding: 0.15rem 0; break-inside: avoid; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3e4; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.25rem; }
.cta-band .btn-primary { background: #fff; color: var(--red-dark); }
.cta-band .btn-primary:hover { background: var(--paper-warm); color: var(--red-dark); }
.cta-band .btn-outline { color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--red-dark); border-color: #fff; }

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

.site-footer {
  background: var(--navy-deep);
  color: #b9c4de;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer a { color: #e6ebf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.2rem 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #8fa0c5;
}

.social-row { display: flex; gap: 0.9rem; margin-top: 0.5rem; flex-wrap: wrap; }
