:root {
  --crimson: #7a1518;
  --crimson-deep: #4a0c0e;
  --crimson-bright: #a01d22;
  --gold: #c9a54a;
  --gold-bright: #e4c878;
  --bronze: #8a6a32;
  --wood: #3a2414;
  --wood-mid: #5c3a22;
  --wood-light: #7a5334;
  --parchment: #e6d3a8;
  --parchment-deep: #d2ba86;
  --ink: #2a1a10;
  --ink-soft: #5a4030;
  --smoke: rgba(42, 26, 16, 0.55);
  --baton: #6fdc3d;
  --header-h: 4.25rem;
  --font-display: "Cinzel Decorative", "Cinzel", serif;
  --font-roman: "Cinzel", serif;
  --font-body: "IM Fell English", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 165, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #cbb688 0%, var(--parchment) 35%, #c4a874 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.page-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.container {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

/* Header — carved wood beam */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background:
    linear-gradient(180deg, rgba(255, 220, 160, 0.12), transparent 40%),
    repeating-linear-gradient(
      90deg,
      #4a2e1a 0px,
      #5c3a22 8px,
      #3a2414 16px,
      #6a4428 24px,
      #4a2e1a 32px
    );
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(20, 10, 0, 0.45);
}

.header-inner {
  height: 100%;
  width: min(1180px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-bright);
  font-family: var(--font-roman);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-family: var(--font-roman);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  color: #f0dfb8;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--gold-bright);
}

.header-inner > .btn-sm {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--gold);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold-bright);
}

/* Hero — full-bleed banner plane */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: #f7ead0;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  animation: banner-drift 28s ease-in-out infinite alternate;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 8, 4, 0.25) 0%, rgba(20, 8, 4, 0.15) 40%, rgba(20, 8, 4, 0.82) 100%),
    radial-gradient(ellipse at 50% 70%, transparent 20%, rgba(20, 8, 4, 0.5) 100%);
}

.hero-content {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto 4.5rem;
  text-align: center;
  animation: rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-crest {
  width: clamp(96px, 14vw, 140px);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.55);
  animation: crest-glow 4.5s ease-in-out infinite;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff4d8;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(201, 165, 74, 0.25);
}

.hero-title {
  margin: 0.55rem 0 0;
  font-family: var(--font-roman);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  letter-spacing: 0.35em;
  color: var(--gold-bright);
  text-indent: 0.35em;
}

.hero-lead {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #f0dfc0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-roman);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.7rem;
}

.btn-crimson {
  color: #fff3d8;
  background:
    linear-gradient(180deg, var(--crimson-bright), var(--crimson-deep));
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 20px rgba(80, 10, 10, 0.45);
}

.btn-crimson:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(80, 10, 10, 0.55);
}

.btn-wood {
  color: #f5e6c4;
  background:
    linear-gradient(180deg, var(--wood-light), var(--wood));
  border-color: var(--bronze);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.15),
    0 8px 18px rgba(20, 10, 0, 0.35);
}

.btn-seal {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--bronze));
  border-color: #6a4a1a;
}

.icon-invert {
  filter: invert(1);
}

/* CA band */
.ca-band {
  background:
    repeating-linear-gradient(
      90deg,
      #2e1a0e,
      #3d2616 12px,
      #24140a 24px
    );
  border-block: 2px solid var(--gold);
  color: #f0dfb8;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  padding: 0.9rem 0;
  font-family: var(--font-roman);
}

.ca-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.ca-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  word-break: break-all;
  color: #f7ead0;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
}

.parchment {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 245, 220, 0.35), transparent 55%),
    linear-gradient(180deg, #e9d7ad, #d8c08a);
  box-shadow: inset 0 20px 40px rgba(90, 60, 20, 0.08);
}

.parchment::before,
.parchment::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(90, 50, 20, 0.18), transparent);
  opacity: 0.7;
}

.parchment::before { top: 0; }
.parchment::after { bottom: 0; }

.wood-panel {
  color: #f3e4c4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(
      180deg,
      #4a2f1c 0px,
      #5a3a24 18px,
      #3a2414 36px,
      #6a442c 54px,
      #4a2f1c 72px
    );
  border-block: 3px solid var(--bronze);
}

.section-kicker {
  margin: 0;
  text-align: center;
  font-family: var(--font-roman);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson);
}

.section-kicker.light {
  color: var(--gold);
}

.section-title {
  margin: 0.55rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
}

.section-title.light {
  color: #fff1d4;
}

.section-copy {
  margin: 1.1rem auto 0;
  max-width: 38rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.section-copy.light {
  color: #e8d7b0;
}

.section-copy.center {
  text-align: center;
}

/* March steps — scroll rows, not cards */
.march-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.march-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(201, 165, 74, 0.35);
}

.march-step:last-child {
  border-bottom: 1px solid rgba(201, 165, 74, 0.35);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-bright);
  line-height: 1;
  min-width: 2.2rem;
}

.march-step h3 {
  margin: 0;
  font-family: var(--font-roman);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff4dc;
}

.march-step p {
  margin: 0.35rem 0 0;
  color: #dcc9a0;
  font-size: 1.05rem;
}

/* Treasury seals — interactive-ish summary stamps */
.treasury-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.seal {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  border-radius: 50%;
  border: 3px double var(--gold);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 240, 200, 0.35), transparent 45%),
    radial-gradient(circle at 50% 50%, var(--crimson-bright), var(--crimson-deep));
  color: #ffe9c4;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(80, 20, 10, 0.25);
  font-family: var(--font-roman);
  transition: transform 0.35s ease;
}

.seal:hover {
  transform: rotate(-3deg) scale(1.03);
}

.seal strong {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}

.seal span {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  line-height: 1.2;
}

/* Legion link list */
.legion-links {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.legion-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: #f3e4c4;
  border: 1px solid rgba(201, 165, 74, 0.4);
  background: rgba(20, 10, 4, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.legion-links a:hover {
  background: rgba(122, 21, 24, 0.45);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.legion-links span {
  font-family: var(--font-roman);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legion-links small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0;
  text-transform: none;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, #2a180e, #1a0e08);
  color: #d8c49a;
  border-top: 3px solid var(--gold);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff1d4;
}

.footer-brand span {
  font-family: var(--font-roman);
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
}

.disclaimer {
  margin: 0;
  max-width: 48rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Motion */
@keyframes banner-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes crest-glow {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(0, 0, 0, 0.35),
      0 12px 40px rgba(0, 0, 0, 0.55),
      0 0 0 0 rgba(201, 165, 74, 0);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(0, 0, 0, 0.35),
      0 12px 40px rgba(0, 0, 0, 0.55),
      0 0 28px 2px rgba(201, 165, 74, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner,
  .hero-crest,
  .hero-content {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .treasury-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legion-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .legion-links li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .nav,
  .header-inner > .btn-sm {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(30, 16, 8, 0.97);
    border-bottom: 2px solid var(--gold);
    gap: 1rem;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .ca-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .legion-links {
    grid-template-columns: 1fr;
  }

  .legion-links li:last-child {
    grid-column: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
