:root {
  --landscape-green: #8B9F3C;
  --gold: #FFD84A;
  --gold-dark: #A8640C;
  --cream: #FFF7D0;
  --ink: #151A12;
  --panel: rgba(24, 29, 19, 0.90);
  --panel-soft: rgba(36, 43, 25, 0.82);
  --line: rgba(255, 216, 74, 0.42);
  --header-height: clamp(136px, 16.5vw, 224px);
  --footer-height: clamp(86px, 11vw, 132px);
  --content-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--landscape-green);
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--landscape-green);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

section { height: auto; }

body::before {
  content: "";
  display: block;
  height: var(--header-height);
}

a { color: #FFF09A; }
a:hover { color: #FFFFFF; }

:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: .65rem 1rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: var(--header-height);
  overflow: hidden;
  background-color: var(--landscape-green);
  background-image: url("images/background3.jpg");
  background-position: center top;
  background-repeat: repeat-x;
  background-size: auto 100%;
  text-align: center;
}

.site-logo {
  display: block;
  width: min(68vw, 760px);
  height: auto;
  max-height: calc(var(--header-height) * .72);
  margin: 0 auto;
  object-fit: contain;
}

.site-footer {
  position: fixed;
  z-index: 20;
  inset: auto 0 0;
  height: var(--footer-height);
  pointer-events: none;
  background-color: var(--landscape-green);
  background-image: url("images/background5.png");
  background-position: center bottom;
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.site-footer__line {
  position: absolute;
  right: 1rem;
  bottom: .25rem;
  margin: 0;
  padding: .18rem .45rem;
  border-radius: 4px;
  background: rgba(255,255,255,.72);
  color: #18200F;
  font-size: .72rem;
  line-height: 1.3;
  pointer-events: auto;
}

.site-footer__line a { color: #173A73; }

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1rem 0 calc(var(--footer-height) + 2.25rem);
}

.site-nav {
  margin: .25rem auto 1.75rem;
  border: 1px solid rgba(255, 216, 74, .72);
  border-radius: 10px;
  background: rgba(22, 27, 16, .92);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem;
  margin: 0;
  padding: .42rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: .62rem .92rem;
  border-radius: 7px;
  color: var(--cream);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  text-shadow: 0 2px 0 rgba(76,45,5,.75);
}

h1 { font-size: clamp(2.15rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.28rem; }

.eyebrow {
  margin: 0 0 .55rem;
  color: #FFF2A9;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.lede {
  max-width: 750px;
  margin-inline: auto;
  color: #FFFFFF;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.6rem) clamp(1.25rem, 6vw, 4rem);
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(-32px, 2vw, 22px);
  bottom: -28px;
  width: clamp(85px, 15vw, 150px);
  height: clamp(125px, 22vw, 220px);
  background: url("images/axt.png") center / contain no-repeat;
  opacity: .23;
  transform: rotate(8deg);
}

.hero > * { position: relative; z-index: 1; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .72rem 1.1rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: inset 0 -3px 0 rgba(130,75,7,.33);
  font-weight: 800;
  text-decoration: none;
}

.button:hover { color: var(--ink); background: #FFF09A; }
.button--secondary { color: var(--cream); background: transparent; }
.button--secondary:hover { color: var(--ink); background: #FFF09A; }

.section { margin-top: clamp(1.5rem, 4vw, 3rem); }
.section-heading { margin-bottom: 1rem; text-align: center; }
.section-heading p { max-width: 720px; margin: -.35rem auto 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: var(--panel-soft);
  box-shadow: 0 10px 30px rgba(0,0,0,.17);
}

.card p:last-child { margin-bottom: 0; }
.card__number {
  position: absolute;
  top: -.6rem;
  right: .55rem;
  color: rgba(255,216,74,.11);
  font: 800 5rem/1 Georgia, serif;
}

.meta {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .15rem .48rem;
  border-radius: 999px;
  background: rgba(255,216,74,.14);
  color: #FFF3A8;
  font-size: .82rem;
  font-weight: 800;
}

.prose {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.prose p { margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.story .auto-style11 {
  max-width: none;
  margin: 0 0 1.15rem;
  color: var(--cream);
  text-align: left;
}
.story br { display: none; }
.center { text-align: center; }
.ornament { width: 88px; height: 128px; object-fit: contain; }

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.download-card .button { margin-top: auto; }
.download-note {
  margin: 1rem auto 0;
  padding: .85rem 1rem;
  border-left: 4px solid #FFF09A;
  background: rgba(255,255,255,.12);
  font-size: .9rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.video-card { padding: 1rem; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lexicon-tools {
  position: sticky;
  z-index: 8;
  top: calc(var(--header-height) + .5rem);
  margin-bottom: 1.25rem;
  padding: .85rem;
}

.search-label { display: block; margin-bottom: .3rem; font-weight: 800; }
.search-input {
  width: 100%;
  min-height: 48px;
  padding: .65rem .85rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: #FFFDF1;
  color: #171A12;
  font: inherit;
}

.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .7rem;
}

.alphabet a {
  min-width: 2.1rem;
  padding: .2rem .45rem;
  border-radius: 5px;
  background: rgba(255,216,74,.16);
  text-align: center;
  text-decoration: none;
}

.letter-section { scroll-margin-top: calc(var(--header-height) + 8rem); }
.letter-title,
.auto-style16 {
  margin: 2rem 0 .75rem;
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  font: 800 2rem/1.2 Georgia, serif;
}

.entry-box {
  margin-bottom: .7rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,216,74,.3);
  border-radius: 10px;
  background: rgba(24,29,19,.82);
}

.entry-title,
.auto-style15 { color: var(--gold); font-size: 1.08rem; font-weight: 800; }
.entry-text,
.auto-style14 { color: var(--cream); }
.entry-box[hidden], .letter-section[hidden] { display: none; }

.empty-state {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(24,29,19,.82);
  text-align: center;
}

.empty-state.is-visible { display: block; }

@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .site-logo { width: min(90vw, 680px); }
}

@media (max-width: 560px) {
  :root { --header-height: 136px; --footer-height: 86px; }
  body { font-size: 16px; }
  .page-shell { width: min(calc(100% - 1rem), var(--content-width)); }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); }
  .site-nav a { text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1rem; }
  .site-footer__line { display: none; }
  .lexicon-tools { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
