:root {
  --forest: #173f35;
  --forest-deep: #0d2b25;
  --forest-soft: #2b6653;
  --cream: #f5f0e6;
  --paper: #fbfaf6;
  --ink: #18241f;
  --muted: #617069;
  --gold: #caa763;
  --rust: #a65d45;
  --line: #d8d8ca;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 3; padding: 19px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.home-header { color: var(--white); background: transparent; border-color: rgba(255,255,255,.25); }
.nav { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-size: 20px; font-weight: 780; text-decoration: none; }
.brand img { width: 39px; height: 39px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 25px; font-size: 14px; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { padding: 8px 15px; border: 1px solid currentColor; border-radius: 999px; }
.nav-cta:hover { color: var(--forest-deep) !important; background: var(--gold); border-color: var(--gold); }

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background-color: var(--forest-deep);
  background-image: url('assets/memory-book.png');
  background-position: 73% center;
  background-size: cover;
}
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(10, 39, 32, .72); }
.hero-content { display: flex; min-height: calc(86svh - 83px); max-width: 700px; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 42px; padding-bottom: 70px; }
.eyebrow { margin: 0 0 17px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.eyebrow.dark { color: var(--forest-soft); }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: 88px; }
h2 { font-size: 59px; }
h3 { font-size: 27px; }
.hero-statement { max-width: 560px; margin: 16px 0 0; color: #f8eeda; font-family: Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1.16; }
.lede { max-width: 610px; margin: 25px 0 31px; color: #e9eee9; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--gold); border-radius: 4px; font-weight: 760; text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button.primary { color: var(--forest-deep); background: var(--gold); }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.72); }
.button:hover { color: var(--forest-deep); background: var(--white); border-color: var(--white); }
.button.primary:hover { background: #dfc583; border-color: #dfc583; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 11px 29px; margin: 43px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.35); list-style: none; color: #e8ede8; font-size: 13px; font-weight: 700; }
.hero-facts li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; background: var(--rust); }

.section { padding: 96px 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .7fr); align-items: end; gap: 75px; margin-bottom: 58px; }
.intro-grid > p { margin: 0 0 6px; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.feature { min-height: 267px; padding: 26px 27px 31px; background: var(--white); border-top: 3px solid var(--forest); }
.feature:nth-child(2) { border-color: var(--gold); }
.feature:nth-child(3) { border-color: var(--rust); }
.feature-number { display: block; margin-bottom: 48px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.feature p { margin: 14px 0 0; color: var(--muted); }

.dark-band { color: var(--white); background: var(--forest); }
.record-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(340px, 1fr); align-items: start; gap: 86px; }
.record-grid h2 { max-width: 520px; }
.record-list { border-top: 1px solid rgba(255,255,255,.42); }
.record-list div { display: grid; grid-template-columns: 122px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.record-list span { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.record-list strong { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; line-height: 1.25; }

.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 16px; }
.gallery-card { position: relative; min-height: 310px; overflow: hidden; background: var(--forest-deep); }
.gallery-card:first-child { min-height: 445px; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 43px 20px 18px; color: var(--white); background: rgba(13,43,37,.78); font-weight: 760; }
.gallery-card figcaption span { display: block; margin-top: 3px; color: #e5e6d9; font-size: 13px; font-weight: 500; }

.support-band { background: var(--paper); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); align-items: end; gap: 82px; }
.support-grid p { margin: 0 0 21px; color: var(--muted); font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; color: var(--ink); border-bottom: 2px solid var(--rust); font-weight: 760; text-decoration: none; }
.text-link:hover { color: var(--rust); }

.site-footer { padding: 35px 0 42px; color: #d3ddd7; background: var(--forest-deep); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 38px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--white); font-size: 16px; font-weight: 760; }
.footer-brand img { width: 31px; height: 31px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.copyright { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }

.doc { max-width: 850px; padding: 72px 0 95px; }
.doc .eyebrow { color: var(--forest-soft); }
.doc h1 { color: var(--ink); font-size: 70px; }
.doc h2 { margin-top: 49px; color: var(--forest); font-size: 38px; }
.doc h3 { margin-top: 28px; color: var(--rust); font-family: inherit; font-size: 18px; font-weight: 760; line-height: 1.35; }
.doc .lede { max-width: 700px; color: var(--muted); }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 12px 0 0; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 25px; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--forest-soft); text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.toc { margin: 30px 0 38px; padding: 22px 25px 23px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--rust); }
.toc h2 { margin: 0; font-family: inherit; font-size: 18px; font-weight: 780; }
.toc ol { margin: 8px 0 0; }
.toc li { margin: 4px 0; }
.notice { margin: 29px 0; padding: 19px 21px; color: var(--ink); background: #f3ebd8; border-left: 4px solid var(--gold); }
.notice a { overflow-wrap: anywhere; }
.doc section { scroll-margin-top: 18px; }

@media (max-width: 900px) {
  .intro-grid, .record-grid, .support-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature-number { margin-bottom: 21px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-card:first-child { grid-column: 1 / -1; min-height: 360px; }
}

@media (max-width: 620px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .site-header { padding: 14px 0; }
  .nav { align-items: flex-start; gap: 14px; }
  .brand span { display: none; }
  .nav-links { max-width: 275px; gap: 5px 15px; font-size: 13px; line-height: 1.4; }
  .nav-cta { padding: 6px 10px; }
  .hero { min-height: 84svh; background-position: 67% center; }
  .hero-content { min-height: calc(84svh - 70px); padding-top: 37px; padding-bottom: 48px; }
  .hero::before { background: rgba(10, 39, 32, .76); }
  h1 { font-size: 57px; }
  h2 { font-size: 43px; }
  .hero-statement { margin-top: 12px; font-size: 28px; }
  .lede { margin: 18px 0 24px; font-size: 16px; }
  .actions { width: 100%; }
  .button { width: 100%; }
  .hero-facts { gap: 8px 18px; margin-top: 29px; padding-top: 14px; }
  .section { padding: 65px 0; }
  .intro-grid { margin-bottom: 38px; }
  .record-list div { grid-template-columns: 88px 1fr; gap: 15px; }
  .record-list strong { font-size: 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card:first-child { grid-column: auto; min-height: 290px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .copyright { grid-column: auto; }
  .doc { padding: 56px 0 76px; }
  .doc h1 { font-size: 50px; }
  .doc h2 { font-size: 31px; }
  .toc { padding: 18px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
