/* 23rd Biennial Beautillion — Columbia (MD) Chapter, Jack and Jill of America, Inc.
   Colors come straight from the RR brand sheet: gold, navy, gray, black. */
:root {
  --navy: #0e2142;
  --navy-deep: #091631;
  --gold: #bf9d2f;
  --gold-soft: #d8bd63;
  --gray: #939598;
  --ink: #050608;
  --paper: #f6f4ef;
  --white: #ffffff;
  --text: #1b2232;
  --muted: #5c6270;
  --rule: #ddd6c4;

  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header (letterhead: navy bar over a gold band) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.masthead { background: var(--navy); }
.masthead .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.seal {
  width: 92px; height: 92px; flex: none;
  border-radius: 50%;
  border: 3px solid var(--white);
  overflow: hidden;
  margin-bottom: -40px;          /* hangs down over the gold band, like the letterhead */
  position: relative; z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  background: var(--white);
}
.seal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.chapter-name {
  color: var(--white);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(15px, 2.1vw, 22px);
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
}
.goldband { background: var(--gold); border-bottom: 1px solid #a8892a; }
.goldband .wrap { display: flex; justify-content: flex-end; min-height: 44px; align-items: center; }

.nav { display: flex; gap: clamp(10px, 2vw, 26px); flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--navy); }

.menu-btn {
  display: none;
  background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); padding: 10px 0;
  align-items: center; gap: 8px;
}
.menu-btn .bars { width: 20px; height: 2px; background: var(--navy); position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
}
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }

@media (max-width: 900px) {
  .seal { width: 64px; height: 64px; margin-bottom: -26px; border-width: 2px; }
  .masthead .wrap { min-height: 56px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--gold);
    padding: 8px var(--gutter) 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(14,33,66,.2); font-size: 16px; }
  .goldband { position: relative; }
}

/* ---------- Home hero (from the program cover) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 56px 1fr;
  min-height: min(88vh, 860px);
}
.hero .stripe-navy { background: var(--navy); }
.hero .stripe-gold { background: var(--gold); }
.hero-photo {
  position: relative;
  background: url("../images/hero-tuxedo.jpg") center 20% / cover no-repeat;
}
.hero-photo::after {           /* deepen the bottom so the type reads */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,8,0) 35%, rgba(5,6,8,.85) 72%, var(--ink) 100%);
}
.hero-copy {
  position: absolute; right: 0; bottom: 0;
  left: 166px;
  padding: 0 clamp(20px, 5vw, 64px) clamp(36px, 6vw, 64px);
  text-align: right;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
.edition {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1;
  margin: 0;
}
.edition .ord { font-family: var(--script); color: var(--gold); font-size: 1.35em; margin-right: .15em; }
.title-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(76px, 13vw, 168px);
  line-height: .9;
  margin: .05em 0 .12em;
  letter-spacing: -.01em;
}
.gold-plate {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(15px, 2vw, 24px);
  padding: 4px 16px;
  line-height: 1.3;
}
.when-where {
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 24px);
  margin: 14px 0 0;
  letter-spacing: .02em;
}
.when-where .sep { color: var(--gold); margin: 0 .5em; }

.countdown {
  display: inline-flex; gap: 22px;
  margin-top: 26px;
  border-top: 1px solid rgba(191,157,47,.5);
  padding-top: 16px;
}
.countdown div { text-align: center; min-width: 56px; }
.countdown b {
  display: block;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.countdown span {
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .16em; font-size: 12px; color: var(--gold-soft);
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 14px 10px 1fr; min-height: 640px; }
  .hero-copy { left: 24px; text-align: center; }
  .countdown { gap: 14px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark a { color: var(--gold-soft); }
.section.white { background: var(--white); }

.eyebrow {
  font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  font-size: 13px; color: var(--gold);
  margin: 0 0 10px;
}
h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy); line-height: 1.1; }
.section.dark h2, .section.dark h3 { color: var(--white); }
h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 0 0 18px; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 24px; margin: 0 0 8px; }
.lede { font-size: 19px; max-width: 62ch; color: var(--muted); }
.section.dark .lede { color: rgba(255,255,255,.78); }
.rule { width: 72px; height: 3px; background: var(--gold); border: 0; margin: 0 0 22px; }

/* Welcome: theme wordmark centered, text full width below */
.welcome { text-align: center; }
/* Eyebrow sits lower: gap to the top of the big R is about a third smaller than before */
.welcome .eyebrow { font-size: clamp(15px, 1.8vw, 19px); letter-spacing: .22em; margin: 16px 0 0; }
.welcome .wordmark { margin: 2px auto 22px; width: min(88%, 860px); }
.welcome .wordmark img { width: 100%; mix-blend-mode: multiply; }
.welcome-text { text-align: left; }
.signoff { font-family: var(--script); font-size: 34px; color: var(--navy); margin: 8px 0 0; line-height: 1.1; }
@media (max-width: 560px) { .welcome .wordmark { width: 100%; } }

/* Motto band */
.motto {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 44px var(--gutter);
  border-top: 6px solid var(--gold);
  border-bottom: 6px solid var(--navy);
}
.motto p {
  margin: 0;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(20px, 3.4vw, 34px); letter-spacing: .06em; line-height: 1.3;
}
.motto .g { color: var(--gold); }

/* Up next */
.upnext { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.event {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(191,157,47,.45);
  padding: 24px;
}
.event .date {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
  font-size: 14px; color: var(--gold-soft); margin: 0 0 6px;
}
.event h3 { margin-bottom: 6px; }
.event p { margin: 0; color: rgba(255,255,255,.78); }
.event.feature { background: var(--gold); border-color: var(--gold); }
.event.feature .date { color: var(--navy); }
.event.feature h3, .event.feature p { color: var(--ink); }
@media (max-width: 860px) { .upnext { grid-template-columns: 1fr; } }

/* Tab cards */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-top: 4px solid var(--gold);
  padding: 24px 22px 22px;
  text-decoration: none; color: var(--text);
  box-shadow: 0 1px 0 var(--rule), 0 8px 24px rgba(14,33,66,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--rule), 0 14px 30px rgba(14,33,66,.12); }
.card .num { font-family: var(--display); color: var(--gold); font-size: 14px; letter-spacing: .16em; }
.card h3 { margin: 6px 0 8px; font-size: 22px; text-transform: uppercase; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; flex: 1; }
.card .go { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--navy); }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  background: var(--ink) url("../images/hero-tuxedo.jpg") center 18% / cover no-repeat;
  color: var(--white);
  padding: clamp(84px, 12vw, 140px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 6px solid var(--gold);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,6,8,.94) 0%, rgba(5,6,8,.78) 50%, rgba(14,33,66,.55) 100%);
}
.page-hero .wrap { position: relative; }
.page-hero .kicker { font-family: var(--script); color: var(--gold); font-size: clamp(30px, 4vw, 42px); margin: 0; line-height: 1; }
.page-hero h1 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 76px); line-height: 1; margin: 6px 0 12px; letter-spacing: .01em;
}
.page-hero p { margin: 0; max-width: 60ch; color: rgba(255,255,255,.8); font-size: 18px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.panel {
  background: var(--white);
  border-left: 4px solid var(--navy);
  padding: 26px 26px 22px;
  box-shadow: 0 1px 0 var(--rule);
}
.panel.gold { border-left-color: var(--gold); }
.panel h3 { text-transform: uppercase; }

/* Calendar timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 34px 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; background: var(--paper);
  border: 2px solid var(--gold); border-radius: 50%;
}
.timeline li.big::before { background: var(--gold); }
.timeline .month { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-size: 15px; font-weight: 600; }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }

/* Placeholder notes — delete these as real details come in */
.tbd {
  border: 1.5px dashed var(--gold);
  background: rgba(191,157,47,.08);
  color: #6b5716;
  padding: 12px 16px;
  font-size: 15px;
  margin: 12px 0 0;
}
.section.dark .tbd { color: var(--gold-soft); background: rgba(191,157,47,.1); }

table.costs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 16px; }
table.costs th, table.costs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); }
table.costs th { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); font-weight: 600; }
table.costs td:last-child, table.costs th:last-child { text-align: right; }

/* Beaux & Belles roster */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; margin-top: 24px; }
.person { background: var(--white); box-shadow: 0 1px 0 var(--rule); text-align: center; padding-bottom: 18px; }
.person .photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
  display: grid; place-items: center;
  color: var(--gold); font-family: var(--script); font-size: 48px;
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
}
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 14px 12px 2px; font-size: 20px; }
.person p { margin: 0 12px; color: var(--muted); font-size: 14px; }

/* Contact */
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); border-top: 8px solid var(--gold); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 18px; padding-top: 32px; padding-bottom: 32px; font-size: 14px;
}
.site-footer .motto-sm { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: 15px; color: var(--white); }
.site-footer .motto-sm .g { color: var(--gold); }
.site-footer a { color: var(--gold-soft); }
.footer-base { background: var(--gray); height: 10px; }

/* ---------- Calendar list (rendered from js/events.js) ---------- */
.cal-month {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.cal-month:first-child { margin-top: 0; }
.cal-group { display: grid; gap: 14px; }
.cal-item {
  display: grid; grid-template-columns: 96px 1fr;
  background: var(--white);
  box-shadow: 0 1px 0 var(--rule);
}
.cal-date {
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 6px; text-align: center;
}
.cal-date .d { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--gold-soft); }
.cal-date b { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.05; }
.cal-body { padding: 16px 20px 18px; }
.cal-time { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--gold); }
.cal-body h3 { margin: 4px 0 8px; font-size: 22px; }
.cal-body dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 15px; }
.cal-body dt { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); padding-top: 3px; }
.cal-body dd { margin: 0; }
.cal-note { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block; margin-left: 10px; padding: 1px 8px;
  border: 1px solid var(--gold); color: #6b5716; background: rgba(191,157,47,.1);
  font-size: 11px; letter-spacing: .1em; vertical-align: 2px;
}
.tag.done { border-color: var(--gray); color: var(--muted); background: #eeeeee; }
.cal-item.past { opacity: .6; }
.cal-item.deadline .cal-date { background: var(--gold); }
.cal-item.deadline .cal-date .d { color: var(--navy); }
.cal-item.gala .cal-date { background: var(--ink); border-right: 4px solid var(--gold); }
.cal-item.gala h3 { font-family: var(--script); font-weight: 400; font-size: 38px; }
@media (max-width: 560px) {
  .cal-item { grid-template-columns: 72px 1fr; }
  .cal-date b { font-size: 22px; }
  .cal-body { padding: 14px 14px 16px; }
}
.event .who { margin-top: 8px; font-size: 14px; color: var(--gold-soft); }
.event.feature .who { color: var(--navy); }

/* Lists and key dates */
.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li { position: relative; padding: 0 0 8px 22px; }
.checklist li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 12px; line-height: 2.2; }
.keydates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.keydate { background: var(--paper); border-top: 4px solid var(--navy); padding: 18px 20px; }
.keydate .when { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-size: 14px; margin: 0 0 4px; }
.keydate h3 { font-size: 20px; margin: 0 0 4px; }
.keydate p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .keydates { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 24px; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.cal-intro { margin: 0 0 16px; max-width: 75ch; color: var(--muted); }
.cal-details { margin: 10px 0 0; padding-left: 18px; font-size: 15px; color: var(--text); }
.cal-details li { margin-bottom: 6px; }
.cal-details li::marker { color: var(--gold); }
