:root {
  --plum: #4A1238; --wall: #2A1222; --blush: #FFF3F9; --paper: #FFFFFF;
  --pink: #C2408F; --pink-lit: #F27BC4; --pink-soft: #F6B8DE; --line: #F2C6DF;
  --gold: #E6B94A; --gold-ink: #8C6A1C; --ink: #4A1238; --muted: #6E3A5C;
  --cream: #FFD8EC; --highlight: #FCE3F1;
  --display: 'Cormorant Garamond', Georgia, serif;
  --label: 'Marcellus', Georgia, serif;
  --body: 'Jost', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--blush); }
body { margin: 0; background: var(--blush); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
a:hover { color: var(--plum); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: 24px; }
p { margin: 0; }
.label { font-family: var(--label); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding-block: 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 24px; }
.wrap.tight { padding-block: 28px; }
.lede { font-size: 18px; max-width: 70ch; color: var(--muted); }

/* the site bar */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px max(16px, env(safe-area-inset-left, 0px)); background: var(--wall); color: var(--cream); }
.bar-home { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .16em; font-size: 18px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; letter-spacing: .16em; }
.bar nav a { color: var(--cream); text-decoration: none; padding: 6px 0; }
.bar nav a[aria-current="page"] { color: #FFFFFF; border-bottom: 2px solid var(--pink-lit); }

/* a pageant's host band: the host city, the mark in the sky top right */
.band { position: relative; min-height: 400px; background-color: var(--wall); background-size: cover; background-position: center 60%; display: flex; }
.band.slim { min-height: 190px; }
.band-sky { flex-grow: 1; max-width: 1240px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: #FFF3F9; text-shadow: 0 1px 12px rgba(42, 18, 34, .6); }
.band-mark { display: flex; align-items: center; gap: 18px; color: #FFF3F9; text-decoration: none; }
.band-title { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.band-words { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.4vw, 34px); letter-spacing: .14em; line-height: 1; }
.band-sub { font-family: var(--label); font-size: clamp(15px, 2vw, 22px); letter-spacing: .32em; color: var(--cream); }
.band-year { font-family: var(--label); font-size: 15px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.band.slim .band-words { font-size: clamp(18px, 2.4vw, 24px); }
.band.slim .band-sub { font-size: 15px; }
.pnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 14px 16px; background: var(--wall); font-size: 13px; letter-spacing: .14em; }
.pnav a { color: var(--cream); text-decoration: none; padding: 4px 0; }
.pnav a[aria-current="page"] { color: #FFFFFF; border-bottom: 2px solid var(--pink-lit); }

/* the winner's hero beside the results table */
.hero { display: flex; flex-wrap: wrap; background: var(--wall); }
.hero-photo { flex: 1 1 520px; min-width: 0; position: relative; min-height: 640px; overflow: hidden; color: #FFF3F9; text-decoration: none; display: block; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,18,34,0) 50%, rgba(42,18,34,.9) 88%); }
.hero-caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 36px 40px; display: flex; flex-direction: column; gap: 6px; }
.hero-caption .label { color: var(--gold); }
.hero-name { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.02; }
.hero-meta { font-size: 16px; color: var(--pink-lit); }
.hero-side { flex: 1 1 420px; min-width: 0; padding: 40px max(16px, 40px); background: var(--blush); display: flex; flex-direction: column; gap: 14px; }

/* tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--label); font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); padding: 8px 8px; border-bottom: 2px solid var(--pink); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; }
tr.lead td { background: var(--highlight); font-weight: 500; }
tr.cut td { border-bottom: 2px dashed var(--pink); }
tr.out td { color: var(--muted); }

/* the court and other grids of portraits */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 18px; }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.card img, .card .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #F6E3EE; }
.card .place { font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.card .who { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.cards.small .who { font-size: 18px; }
.card .name { font-size: 14px; color: var(--muted); }

/* placeholders for pictures not yet made */
.ph { display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 14px; color: #8E3A6E; border: 1px dashed var(--pink); background: #F6E3EE; }

/* special awards */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.award { background: var(--paper); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.award .who { font-family: var(--display); font-size: 24px; font-weight: 600; }
.answers { display: flex; flex-direction: column; gap: 18px; }
.answer { background: var(--paper); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.answer .who { font-family: var(--display); font-size: 22px; font-weight: 600; text-decoration: none; }
blockquote { margin: 0; }
.answer blockquote, blockquote.quote { font-family: var(--display); font-size: 20px; font-style: italic; line-height: 1.45; color: var(--plum); border-left: 3px solid var(--pink); padding-left: 16px; max-width: 70ch; }

/* a delegate's page */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photos figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.photos img, .photos .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
figcaption { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.place-chip { align-self: flex-start; background: var(--pink); color: #FFFFFF; padding: 6px 14px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
dl.fields { margin: 0; display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 8px 20px; }
dl.fields dt { font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); padding-top: 4px; }
dl.fields dd { margin: 0; }
.todo { color: #8E3A6E; font-style: italic; }
.crumbs { font-size: 13px; letter-spacing: .08em; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.crumbs a { text-decoration: none; }

/* the theme song */
.theme { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--paper); border: 1px solid var(--line); max-width: 460px; }
.theme-name { font-family: var(--display); font-size: 24px; font-weight: 600; }
.theme audio { width: 100%; }

/* the landing's two doors */
.doors { display: flex; flex-wrap: wrap; }
.door { flex: 1 1 420px; min-width: 0; position: relative; min-height: 720px; overflow: hidden; display: block; text-decoration: none; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
/* A gown photo is full length, her head near its top: cropped from the top
   so a wide door or hero never cuts it off (owner, 2026-10-23). */
.door img.gown, .hero-photo img.gown { object-position: center top; }
.door.dark { background: var(--wall); color: var(--cream); }
.door.light { background: var(--blush); color: var(--ink); }
.door.dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,18,34,0) 40%, rgba(42,18,34,.92) 82%); }
.door.light::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,243,249,0) 40%, rgba(255,243,249,.95) 82%); }
.door-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.door-words { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); letter-spacing: .14em; line-height: 1.05; }
.door-sub { display: flex; align-items: center; gap: 14px; font-family: var(--label); font-size: clamp(16px, 2vw, 24px); letter-spacing: .32em; }
.door.dark .door-sub { color: var(--pink-lit); }
.door.light .door-sub { color: var(--pink); }
.door-sub::before, .door-sub::after { content: ""; width: 44px; height: 2px; background: currentColor; }
.door-year { font-family: var(--label); font-size: 60px; line-height: 1; }
.door.dark .door-year { color: var(--gold); }
.door.light .door-year { color: var(--gold-ink); }
.door-go { margin-top: 10px; border: 1px solid currentColor; padding: 12px 26px; font-size: 13px; letter-spacing: .24em; }
@media (max-width: 560px) { .door-sub::before, .door-sub::after { display: none; } .door { min-height: 600px; } }

/* the costume sketches */
.sketches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.sketch { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sketch img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; background: #FFFFFF; }
.sketch figcaption { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.feature { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--wall); color: var(--cream); padding: 32px max(16px, 32px); }
.feature > * { flex: 1 1 320px; min-width: 0; }
.feature .label { color: var(--gold); }
.feature h2 { color: #FFF3F9; }
.feature img { max-width: 360px; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; background: #FFFFFF; }

/* the footer */
.foot { padding: 32px max(16px, env(safe-area-inset-left, 0px)); background: var(--wall); color: var(--cream); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot a { color: var(--pink-soft); }
.foot p { max-width: 80ch; }

/* the house ads: the consultancy's own neon look (D-569, D-570) */
.ad-slot { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.ad-label { font-size: 11px; letter-spacing: .2em; color: #8E6A80; }
.ad { display: flex; text-decoration: none; color: #FBE6F2; background: radial-gradient(ellipse at 50% 40%, #4A1238 0%, #2A1222 75%); border: 3px solid #C2408F; border-radius: 8px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; overflow: hidden; }
.ad:hover { color: #FFFFFF; }
.ad-brand { display: flex; align-items: center; gap: 6px; }
.ad-brand span { font-family: 'Pacifico', cursive; font-size: 16px; color: #FFD8EC; text-shadow: 0 0 2px #E86AB8, 0 0 7px #E86AB8, 0 0 14px #C2408F; white-space: nowrap; }
.ad-kicker { font-weight: 800; font-size: 9px; letter-spacing: .18em; color: #F6B8DE; }
.ad-head { font-family: 'Anton', Impact, sans-serif; letter-spacing: .02em; color: #FFF8FA; text-shadow: 0 0 6px #E86AB8, 0 0 14px #C2408F; line-height: 1.06; }
.ad-body { font-size: 12px; line-height: 1.35; }
.ad-sign { background: #FFF8FA; border: 3px solid #C2408F; border-radius: 4px; padding: 3px 6px 2px; display: inline-flex; flex-direction: column; align-items: center; flex: none; }
.ad-sign b { font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 12px; line-height: 1.02; white-space: nowrap; color: #C2408F; }
.ad-sign b + b { color: #4A1238; }
.ad-lit { border: 2px solid #FFF3C4; border-radius: 8px; box-shadow: 0 0 10px #E6B94A; background: #2A1222; padding: 3px 9px; font-family: 'Anton', Impact, sans-serif; font-size: 14px; letter-spacing: .08em; color: #FFF3C4; text-shadow: 0 0 8px #E6B94A; white-space: nowrap; flex: none; }
.ad-box .ad { width: 300px; max-width: 100%; height: 250px; flex-direction: column; justify-content: space-between; gap: 6px; padding: 12px 14px; }
.ad-box .ad-head { font-size: 21px; }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-banner .ad { width: 728px; max-width: 100%; min-height: 90px; align-items: center; gap: 14px; padding: 8px 14px; }
.ad-banner .ad-copy { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-banner .ad-head { font-size: 20px; }
.ad-banner .ad-end { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
@media (max-width: 760px) {
  .ad-banner .ad { width: 320px; min-height: 100px; gap: 10px; padding: 8px 10px; }
  .ad-banner .ad-sign { display: none; }
  .ad-banner .ad-head { font-size: 16px; }
  .ad-banner .ad-body { display: none; }
  .ad-banner .ad-brand span { font-size: 13px; }
  .ad-banner .ad-lit { font-size: 12px; padding: 1px 7px; }
}
