:root {
  --ink: #1c2630;
  --ink-soft: #3a444c;
  --slate: #566066;
  --sage: #7c8878;
  --sand: #b99a66;
  --sand-deep: #9c7f4f;
  --paper: #f8f3e8;
  --paper-alt: #efe7d6;
  --line: #ddd2bc;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(248, 243, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand-text { font-family: var(--serif); font-size: 18px; letter-spacing: 0.3px; color: var(--ink); line-height: 1.1; }
.brand-text b { display: block; font-weight: 600; }
.brand-text span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); }

.toplinks { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.toplinks a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px; letter-spacing: 0.4px;
  text-transform: uppercase; font-weight: 500;
}
.toplinks a:hover { color: var(--sand-deep); }

.btn {
  display: inline-block; padding: 11px 24px; background: var(--ink); color: var(--paper) !important;
  text-decoration: none; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink) !important; }
.btn-outline { background: transparent; color: var(--ink) !important; }
.btn-outline:hover { background: var(--ink); color: var(--paper) !important; }

.nav-toggle { display: none; }

/* Hero */
.hero {
  background: var(--ink);
  line-height: 0;
}
.hero img.hero-bg { width: 100%; height: auto; display: block; }

.hero-text { background: var(--paper); padding: 56px 40px 64px; text-align: center; }
.hero-in { max-width: 680px; margin: 0 auto; }
.eyebrow {
  font-family: var(--sans); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sand-deep); margin: 0 0 18px;
}
.hero-in h1 {
  color: var(--ink); font-size: 44px; line-height: 1.12; margin: 0 0 20px; font-weight: 500;
}
.hero-lead { color: var(--ink-soft); font-size: 18px; max-width: 540px; margin: 0 auto 30px; line-height: 1.55; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Ridge divider */
.ridge { width: 100%; height: 64px; display: block; }
.ridge-light { background: var(--paper); }
.ridge-alt { background: var(--paper-alt); }

/* Sections */
.section { padding: 96px 32px; }
.section-alt { background: var(--paper-alt); }
.wrap { max-width: 920px; margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 38px; margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 17px; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.about-grid p { margin: 0 0 20px; color: var(--ink-soft); font-size: 17px; }
.pull {
  font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--sand); padding-left: 24px; margin: 8px 0 32px;
  font-style: italic;
}
.closing { color: var(--ink); font-weight: 500; }

/* Awards */
.awards-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.award-row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.award-row.grand { padding: 26px 0; }
.award-name { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.grand .award-name { font-size: 27px; color: var(--sand-deep); }
.award-note { color: var(--slate); font-size: 15px; }
.award-tag {
  display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--sand-deep); margin-top: 4px;
}

/* Rules - grouped */
.rules-groups { display: grid; gap: 44px; }
.rule-group h3 {
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase; font-family: var(--sans);
  color: var(--sand-deep); font-weight: 600; margin-bottom: 18px;
}
.rule-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rule-group li {
  padding-left: 22px; position: relative; color: var(--ink-soft); font-size: 16px;
}
.rule-group li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px;
  background: var(--sand); transform: rotate(45deg);
}
.rule-group li b { color: var(--ink); font-weight: 600; }

/* Deadlines - stepped list with peak markers */
.deadline-ladder { display: grid; gap: 0; margin-bottom: 8px; }
.d-row {
  display: grid; grid-template-columns: 28px 1.3fr 1fr 0.7fr; gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.d-row.final { border-bottom: 2px solid var(--sand-deep); }
.peak { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid var(--sand); justify-self: center; }
.d-row.final .peak { border-bottom-color: var(--sand-deep); }
.d-name { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.d-date { color: var(--ink-soft); font-size: 15px; }
.d-fee { color: var(--slate); font-size: 14px; text-align: right; letter-spacing: 0.5px; }
.d-note { margin-top: 18px; color: var(--slate); font-size: 14px; font-style: italic; }

/* Venue */
.venue-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.venue-copy p { color: var(--ink-soft); font-size: 16px; margin: 0 0 16px; }
.venue-map { min-height: 320px; border: 1px solid var(--line); }
.venue-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.site-footer {
  padding: 56px 32px 40px; background: var(--ink); color: #cfd4d6; text-align: center;
}
.site-footer img { width: 44px; margin: 0 auto 18px; }
.site-footer .f-name { font-family: var(--serif); font-size: 19px; color: #fdf9f0; margin-bottom: 6px; }
.site-footer a { color: #e3d8bb; text-decoration: none; }
.site-footer .f-meta { font-size: 13px; color: #8d969a; margin-top: 18px; }

@media (max-width: 860px) {
  .toplinks { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--ink); background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .toplinks.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 20px 32px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .hero-in h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .section-head h2 { font-size: 30px; }
  .award-row { grid-template-columns: 1fr; gap: 6px; }
  .d-row { grid-template-columns: 20px 1fr; row-gap: 4px; }
  .d-row .peak { align-self: start; margin-top: 6px; }
  .d-row .d-name, .d-row .d-date, .d-row .d-fee { grid-column: 2; }
  .d-fee { text-align: left; }
  .topbar { padding: 12px 18px; }
}

@media (max-width: 420px) {
  .topbar .btn { display: none; }
  .brand-text { font-size: 15px; }
}
