:root {
  --bg: #07100a;
  --bg-soft: #0c1710;
  --panel: #111e14;
  --panel-raised: #17261a;
  --text: #f4f7ef;
  --muted: #c1cbbd;
  --lime: #8ee84f;
  --gold: #f4c542;
  --gold-soft: #ffe38a;
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 22px 55px rgba(0, 0, 0, .34);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0, rgba(142, 232, 79, .13), transparent 30rem),
    radial-gradient(circle at 88% 2%, rgba(244, 197, 66, .11), transparent 28rem),
    linear-gradient(145deg, var(--bg), #101b12 48%, #09110c);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
}
a { color: #b8ff87; font-weight: 750; text-decoration: none; }
a:hover { color: var(--gold-soft); text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: .25rem;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: .6rem .9rem;
  border-radius: .6rem;
  color: #111;
  background: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 16, 10, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  max-width: var(--max);
  margin: auto;
  padding: .85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: .025em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #030704;
}
.brand-mark::before {
  content: "L";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #071007;
  background: var(--lime);
  font-size: .85rem;
  font-weight: 950;
}
.nav-links { display: flex; gap: .2rem .35rem; flex-wrap: wrap; align-items: center; }
.nav-links a {
  padding: .38rem .55rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .88rem;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: var(--lime);
  background: rgba(142, 232, 79, .16);
  text-decoration: none;
}
.nav-links .learn-link { color: var(--gold-soft); border: 1px solid rgba(244, 197, 66, .42); }
.breadcrumbs,
.hero,
.content-section { max-width: var(--max); margin-inline: auto; padding-inline: 1.15rem; }
.breadcrumbs { padding-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.hero {
  padding-top: 1.4rem;
  padding-bottom: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  grid-template-areas:
    "theme theme"
    "copy art";
  gap: 1.2rem;
}
.hero-copy,
.hero-art,
.panel,
.event-card,
.symbol-card,
.quiz,
.notice,
.source-register {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(17, 30, 20, .93);
  box-shadow: var(--shadow);
}
.hero-copy {
  grid-area: copy;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.hero-art {
  grid-area: art;
  min-height: 310px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(244, 197, 66, .16), transparent 42%),
    linear-gradient(315deg, rgba(142, 232, 79, .17), transparent 45%),
    #101b12;
}
.jamaica64-theme-banner {
  grid-area: theme;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-wrap: anywhere;
  text-align: center;
  border: 1px solid rgba(244, 197, 66, .65);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(142, 232, 79, .14), transparent 60%),
    linear-gradient(135deg, rgba(8, 58, 43, .98), rgba(13, 82, 57, .96));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 227, 138, .12);
}
.jamaica64-theme-label {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold-soft);
  font-size: clamp(.78rem, 1.8vw, .95rem);
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jamaica64-theme-text {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 4rem;
  z-index: -1;
  border-radius: 999px;
  transform: rotate(-35deg);
}
.hero-art::before { background: rgba(244, 197, 66, .7); }
.hero-art::after { background: rgba(142, 232, 79, .55); transform: rotate(35deg); }
.anniversary {
  width: 10rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  background: #07100a;
  box-shadow: 0 0 0 14px rgba(7, 16, 10, .7);
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
}
.anniversary strong { display: block; color: var(--lime); font-size: 3.2rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--gold-soft);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 3px; background: var(--gold); border-radius: 3px; }
h1,
h2,
h3 { line-height: 1.15; }
h1 { margin: .8rem 0 1rem; font-size: clamp(2.35rem, 5vw, 4.6rem); letter-spacing: -.05em; }
h2 { margin: 0 0 .8rem; font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.025em; }
h3 { margin: 0 0 .55rem; color: var(--lime); font-size: 1.18rem; }
p { margin: .1rem 0 1rem; }
.lead { max-width: 66ch; color: #d4ded0; font-size: clamp(1.05rem, 1.8vw, 1.27rem); }
.verification { margin-top: 1.25rem; color: var(--gold-soft); font-weight: 850; }
.content-section { padding-top: 2.4rem; padding-bottom: .5rem; scroll-margin-top: 5rem; }
.section-intro { max-width: 72ch; color: var(--muted); }
.notice {
  padding: 1rem 1.1rem;
  border-color: rgba(244, 197, 66, .38);
  border-radius: 16px;
  background: rgba(244, 197, 66, .08);
  color: #f5edca;
  box-shadow: none;
}
.event-grid,
.symbol-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.event-card,
.symbol-card,
.panel { padding: 1.25rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.event-card time { color: var(--gold-soft); font-weight: 900; }
.event-card p,
.symbol-card p,
.panel p,
.panel li { color: #d2dbce; }
.event-card ul,
.panel ul { padding-left: 1.2rem; }
.event-card li,
.panel li { margin: .35rem 0; }
.official-link { display: inline-flex; margin-top: .4rem; }
.festival-list { columns: 2; column-gap: 2rem; padding-left: 1.3rem; }
.festival-list li { break-inside: avoid; margin-bottom: .55rem; }
.history-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem; }
.timeline { border-left: 3px solid var(--gold); padding-left: 1.2rem; }
.timeline article { position: relative; margin-bottom: 1.5rem; }
.timeline article::before {
  content: "";
  position: absolute;
  left: calc(-1.2rem - 8px);
  top: .25rem;
  width: 13px;
  height: 13px;
  border: 2px solid #07100a;
  border-radius: 50%;
  background: var(--lime);
}
.symbol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flag-note { border-left: 4px solid var(--gold); padding-left: 1rem; }
.family-list { columns: 2; column-gap: 2rem; }
.family-list li { break-inside: avoid; margin-bottom: .65rem; }
.quiz { padding: clamp(1.1rem, 3vw, 2rem); }
.quiz-question {
  margin: 0 0 1.15rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}
.quiz-question legend { padding: 0 .25rem; color: #fff; font-weight: 850; }
.quiz-option { display: block; margin: .45rem 0; padding: .35rem .25rem; cursor: pointer; }
.quiz-option input { margin-right: .55rem; accent-color: var(--lime); }
.answer-fallback,
.quiz-feedback {
  margin: .75rem 0 0;
  padding: .7rem .8rem;
  border-left: 4px solid var(--gold);
  background: rgba(244, 197, 66, .07);
}
.quiz-enhanced .answer-fallback { display: none; }
.quiz-feedback[hidden] { display: none; }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
button,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.05rem;
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: #071007;
  background: var(--lime);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
button:hover,
.button:hover { color: #0b0b07; background: var(--gold); border-color: var(--gold); text-decoration: none; }
.quiz-result { min-height: 1.7em; color: var(--gold-soft); font-weight: 850; }
.noscript-note { margin-bottom: 1rem; color: var(--gold-soft); }
.source-register { padding: 1.25rem; box-shadow: none; }
.source-register li { margin: .6rem 0; overflow-wrap: anywhere; }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--border); background: #050b07; }
.footer-inner {
  max-width: var(--max);
  margin: auto;
  padding: 2rem 1.15rem;
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 1.25rem;
}
.footer-title { color: #fff; font-weight: 950; }
.footer-copy { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: .45rem .9rem; }
.footer-links a { color: #d8ebcf; font-size: .88rem; }
.copyright { max-width: var(--max); margin: auto; padding: 0 1.15rem 1.5rem; color: #8f9d89; font-size: .83rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .site-header { position: static; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "theme"
      "copy"
      "art";
  }
  .hero-art { min-height: 240px; }
}
@media (max-width: 820px) {
  .event-grid,
  .history-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .nav-wrap { align-items: flex-start; }
  .nav-links { width: 100%; }
  .event-grid,
  .symbol-grid,
  .link-grid { grid-template-columns: 1fr; }
  .festival-list,
  .family-list { columns: 1; }
  .hero { padding-top: 1rem; }
  h1 { letter-spacing: -.035em; }
}
@media print {
  .site-header,
  .site-footer,
  .quiz-actions { display: none; }
  body { color: #111; background: #fff; }
  .hero-copy,
  .hero-art,
  .panel,
  .event-card,
  .symbol-card,
  .quiz,
  .notice,
  .source-register { color: #111; background: #fff; box-shadow: none; border-color: #777; }
  .answer-fallback { display: block !important; }
}
