:root {
  --void: #0A0A09;
  --panel: #141311;
  --panel-raised: #1B1916;
  --gold: #C9A24B;
  --gold-pale: #E8D49A;
  --gold-bright: #F0D98C;
  --bronze-line: #3A3528;
  --paper-text: #F4EFE3;
  --dim-text: #A39C87;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--paper-text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- The Stream (signature element) ----------
   A continuous gold gradient thread that runs down the page,
   like a current running through time, linking each era/section. */
.stream-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--bronze-line) 8%,
    var(--gold) 50%,
    var(--bronze-line) 92%,
    transparent 100%);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .stream-line { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--bronze-line);
  background: rgba(10, 10, 9, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper-text);
}

.logo span {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
  color: var(--paper-text);
}
.main-nav a:hover { opacity: 1; color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.main-nav a.active {
  opacity: 1;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--bronze-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 260px; }
  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid var(--bronze-line);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--bronze-line);
  position: relative;
  overflow: hidden;
}

.hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 800px;
  color: var(--paper-text);
  position: relative;
  z-index: 1;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--gold-pale) 0%, var(--gold) 45%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--dim-text);
  margin: 0 0 36px;
  position: relative;
  z-index: 1;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--gold);
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--void);
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-secondary {
  background: transparent;
  color: var(--paper-text);
  border-color: var(--bronze-line);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Timepiece signature mark ---------- */
.time-mark {
  position: absolute;
  right: 24px;
  top: 90px;
  width: 132px;
  height: 132px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.4;
  padding: 10px;
  background: radial-gradient(circle, rgba(201,162,75,0.08) 0%, transparent 70%);
}

@media (min-width: 880px) {
  .time-mark { display: flex; }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--bronze-line);
  position: relative;
}

.section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--paper-text);
}

.section .section-intro {
  max-width: 620px;
  color: var(--dim-text);
  margin-bottom: 40px;
}

/* Timeline / three moments grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--bronze-line);
  position: relative;
}

@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-3 > div {
  padding: 32px 28px;
  border-right: 1px solid var(--bronze-line);
  border-bottom: 1px solid var(--bronze-line);
  background: var(--panel);
  position: relative;
}
.grid-3 > div:last-child { border-right: none; }

@media (max-width: 760px) {
  .grid-3 > div { border-right: none; }
}

.grid-3 .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.grid-3 h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--paper-text);
}

.grid-3 p { margin: 0; color: var(--dim-text); font-size: 0.95rem; }

/* Categories / details list */
.detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--bronze-line);
}

.detail-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--bronze-line);
}

@media (max-width: 600px) {
  .detail-row { grid-template-columns: 1fr; gap: 6px; }
}

.detail-row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold-pale);
}

.detail-row dd {
  margin: 0;
  color: var(--dim-text);
}

/* CTA banner */
.cta-banner {
  background: var(--panel);
  color: var(--paper-text);
  text-align: center;
  padding: 64px 24px;
  border-top: 1px solid var(--bronze-line);
  position: relative;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 12px;
  color: var(--paper-text);
}

.cta-banner p {
  color: var(--dim-text);
  margin: 0 0 28px;
}

.cta-banner .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
}
.cta-banner .btn-primary:hover { background: var(--gold-bright); }

/* ---------- Submission form (the "label card") ---------- */
.label-card {
  background: var(--panel);
  border: 1px solid var(--bronze-line);
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}

.label-card-header {
  border-bottom: 1px solid var(--bronze-line);
  padding: 28px 36px 22px;
  background: linear-gradient(135deg, rgba(201,162,75,0.06), transparent 60%);
}

.label-card-header .tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.label-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 6px 0 0;
  color: var(--paper-text);
}

.form-body { padding: 32px 36px 36px; }

.form-row { margin-bottom: 22px; }

.form-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row-pair { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
  color: var(--gold-pale);
}

label .optional {
  color: var(--dim-text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1px solid var(--bronze-line);
  border-radius: 2px;
  background: var(--void);
  color: var(--paper-text);
}

input::placeholder, textarea::placeholder { color: #5c5644; }

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: #0d0d0b;
}

textarea { resize: vertical; min-height: 96px; }

.file-drop {
  border: 1.5px dashed var(--bronze-line);
  border-radius: 2px;
  padding: 28px;
  text-align: center;
  background: var(--void);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.file-drop:hover, .file-drop.dragover {
  border-color: var(--gold);
  background: var(--panel-raised);
}

.file-drop p { margin: 0; font-size: 0.9rem; color: var(--dim-text); }
.file-drop .file-drop-main { font-weight: 600; color: var(--paper-text); margin-bottom: 4px; }
.file-drop input[type="file"] { display: none; }

#file-name-display {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--void);
  border: none;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.form-submit:hover { background: var(--gold-bright); }

.form-note {
  font-size: 0.82rem;
  color: var(--dim-text);
  margin-top: 14px;
  text-align: center;
}

.form-note a { color: var(--gold); }

.alert {
  padding: 14px 18px;
  border-radius: 2px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 500;
}
.alert-error {
  background: rgba(201, 102, 75, 0.1);
  border: 1px solid #C9664B;
  color: #E8A78F;
}
.alert-success {
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold-pale);
}

/* ---------- Thank-you / 404 ---------- */
.center-page {
  text-align: center;
  padding: 110px 24px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.center-page .stamp-circle {
  width: 84px;
  height: 84px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.8rem;
  background: radial-gradient(circle, rgba(201,162,75,0.1) 0%, transparent 70%);
}

.center-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 14px;
  color: var(--paper-text);
}

.center-page p {
  color: var(--dim-text);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--dim-text);
  border-top: 1px solid var(--bronze-line);
}
.site-footer p { margin: 4px 0; }
.site-footer a { text-decoration: underline; text-decoration-color: var(--bronze-line); color: var(--gold-pale); }

/* ---------- Misc ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

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

/* ---------- Contact bar (appears above footer on every page) ---------- */
.contact-bar {
  background: var(--gold-pale);
  border-top: 1px solid var(--bronze-line);
}
.contact-bar p {
  margin: 0;
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--void);
  text-align: center;
}
.contact-bar a {
  font-weight: 600;
  text-decoration: underline;
  color: var(--void);
}

/* ---------- Hero with hourglass ---------- */
.hero-split {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--bronze-line);
  position: relative;
  overflow: hidden;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .hero-split-grid { grid-template-columns: 1fr; }
}

.hero-split h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}

.hero-split h1 .gold-text {
  background: linear-gradient(100deg, var(--gold-pale) 0%, var(--gold) 45%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-tag {
  display: inline-block;
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-text);
}

.theme-tag em {
  color: var(--gold);
  font-style: italic;
}

.hero-split p.lede {
  font-size: 1rem;
  max-width: 520px;
  color: var(--dim-text);
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.hourglass-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hourglass-svg {
  width: min(100%, 230px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.5));
}

@media (prefers-reduced-motion: reduce) {
  .hourglass-svg animate { display: none; }
}

/* ---------- Echelon tier cards (High / Middle / Primary) ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier-card {
  background: var(--panel);
  border: 1px solid var(--bronze-line);
  border-top: 3px solid var(--gold);
  padding: 16px 14px;
  text-align: center;
}

.tier-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--gold-pale);
}

.tier-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dim-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* ---------- Prize bars ---------- */
.prize-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 0;
  position: relative;
  z-index: 1;
}

.prize-bar {
  padding: 13px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: var(--void);
  border-radius: 2px;
}

.prize-bar .ord { font-style: italic; }

.prize-1 { background: linear-gradient(90deg, var(--gold-bright), var(--gold)); }
.prize-2 { background: linear-gradient(90deg, #d8d3c4, #a9a48f); }
.prize-3 { background: linear-gradient(90deg, #c79c6e, #8f6a44); }

.prize-bar .amount { color: var(--void); }

/* ---------- About page ---------- */
.about-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--bronze-line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-grid p {
  color: var(--dim-text);
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.about-art {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--bronze-line);
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--panel-raised), var(--void));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-art svg { width: 100%; height: 100%; }

/* ---------- Application page ---------- */
.application-intro {
  text-align: center;
  padding: 56px 0 8px;
}

.application-intro .section-label { justify-content: center; display: block; text-align: center; }

/* ---------- Past Winners hub grid ---------- */
.winners-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .winners-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .winners-hub-grid { grid-template-columns: 1fr; }
}

.winner-tile {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bronze-line);
}

.winner-tile.is-active {
  background: var(--panel);
  color: var(--paper-text);
}

.winner-tile.is-active .winner-tile-year {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.winner-tile.is-active .winner-tile-theme {
  font-size: 0.85rem;
  color: var(--dim-text);
  font-family: var(--font-body);
  margin-bottom: 14px;
}

.winner-tile.is-active .winner-tile-status {
  font-size: 0.78rem;
  color: var(--dim-text);
  font-family: var(--font-body);
  font-style: italic;
}

.winner-tile.is-future {
  color: rgba(10,10,9,0.55);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: default;
}

.winner-tile.is-future .future-q { font-size: 1.8rem; display: block; margin-bottom: 6px; }

.winner-tile.future-1 { background: linear-gradient(160deg, #cdeede, #8ecbe0); }
.winner-tile.future-2 { background: linear-gradient(160deg, #e9e9e9, #ffffff); }
.winner-tile.future-3 { background: linear-gradient(160deg, #f7a8c4, #f2c14e); }
.winner-tile.future-4 { background: linear-gradient(160deg, #5e6fd6, #9b6fd6); }
.winner-tile.future-5 { background: linear-gradient(160deg, #3fc1d6, #2f7fd6); }

/* ---------- Past Winners detail page ---------- */
.winners-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 0 8px;
}

.back-link {
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--bronze-line);
  color: var(--gold-pale);
}
.back-link:hover { color: var(--gold); }

.winners-back-row h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  color: var(--paper-text);
}

.echelon-block {
  margin: 36px 0;
  border: 1px solid var(--bronze-line);
  border-radius: 4px;
  overflow: hidden;
}

.echelon-block-header {
  text-align: center;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-pale);
}

.echelon-high .echelon-block-header { background: #2a0f0f; }
.echelon-high { background: #1a0a0a; }
.echelon-middle .echelon-block-header { background: #2c1d08; }
.echelon-middle { background: #1c1308; }
.echelon-primary .echelon-block-header { background: #14250d; }
.echelon-primary { background: #0d1709; }
.echelon-honorable .echelon-block-header { background: #0a1f24; }
.echelon-honorable { background: #07151a; }

.winner-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
}

@media (max-width: 760px) {
  .winner-cards { grid-template-columns: 1fr; }
}

.winner-card {
  background: var(--paper-text);
  color: var(--void);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.winner-card-image {
  aspect-ratio: 1;
  background: repeating-linear-gradient(45deg, #e2ddc9, #e2ddc9 10px, #d7d1ba 10px, #d7d1ba 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #8a8267;
  text-align: center;
  padding: 12px;
}

.winner-card-body {
  padding: 14px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.winner-card-body .wc-title { font-weight: 700; margin: 0 0 4px; font-size: 0.95rem; }
.winner-card-body .wc-meta { font-size: 0.8rem; color: #6b6552; margin: 0 0 2px; }
.winner-card-body .wc-place {
  margin-top: 10px;
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  color: #4a4537;
}

.winners-empty-note {
  text-align: center;
  padding: 60px 24px;
  color: var(--dim-text);
}
