:root {
  --ink: #183238;
  --ink-soft: #4d6263;
  --pine: #174b45;
  --pine-deep: #0d3534;
  --ridge: #557b79;
  --mist: #dfe9e5;
  --paper: #f6f1e7;
  --paper-deep: #ebe2d2;
  --rust: #a05d38;
  --gold: #d6b56a;
  --white: #fffdfa;
  --line: rgba(24, 50, 56, .18);
  --shadow: 0 24px 60px rgba(13, 53, 52, .13);
  --serif: Iowan Old Style, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--pine);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover { color: var(--rust); }

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 20;
  padding: .65rem .9rem;
  background: var(--white);
  color: var(--pine-deep);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  background:
    radial-gradient(circle at 9% 140%, transparent 0 38%, rgba(214,181,106,.15) 38.2% 38.6%, transparent 38.8% 49%, rgba(214,181,106,.1) 49.2% 49.6%, transparent 49.8%),
    linear-gradient(110deg, var(--pine-deep), var(--pine));
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.masthead,
.site-nav,
.page-wrap,
.footer-inner {
  width: min(1180px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 49px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50% 50% 45% 55%;
  color: var(--gold);
  font: 700 1rem/1 var(--serif);
  letter-spacing: -.06em;
  transform: rotate(-5deg);
}

.brand-copy { display: grid; }

.brand-name {
  font: 700 clamp(1.18rem, 2vw, 1.55rem)/1.05 var(--serif);
  letter-spacing: .015em;
}

.brand-tag {
  margin-top: .28rem;
  color: #c7d8d3;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mast-note {
  max-width: 28rem;
  margin: 0;
  color: #d7e2df;
  font: italic 1rem/1.45 var(--serif);
  text-align: right;
}

.nav-band { border-top: 1px solid rgba(255,255,255,.14); }

.site-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .55rem 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav a {
  flex: 0 0 auto;
  padding: .45rem .72rem;
  border-radius: 999px;
  color: #edf4f2;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(650px, 72vh);
  display: grid;
  align-items: end;
  isolation: isolate;
  background: var(--pine-deep);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7,35,37,.88) 0%, rgba(7,35,37,.58) 50%, rgba(7,35,37,.08) 100%);
}

.hero-copy {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  color: var(--white);
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font: 700 clamp(2.8rem, 7vw, 6.7rem)/.96 var(--serif);
  letter-spacing: -.045em;
}

.hero-copy p {
  max-width: 650px;
  margin: 1.4rem 0 0;
  color: #e3ece9;
  font-size: clamp(1.03rem, 2vw, 1.3rem);
}

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--rust);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #f0cb7a; }

.page-hero {
  position: relative;
  padding: clamp(3.7rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 80% 12%, rgba(214,181,106,.25), transparent 23rem),
    linear-gradient(145deg, var(--mist), #eef2ed 58%, var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero-image {
  min-height: min(560px, 68vh);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.page-hero-image > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7,35,37,.9), rgba(7,35,37,.48) 63%, rgba(7,35,37,.14));
}

.page-hero-image h1,
.page-hero-image .dek { color: var(--white); }

.page-hero-image .eyebrow { color: #f0cb7a; }

.page-hero-inner {
  width: min(980px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font: 700 clamp(2.55rem, 6vw, 5.5rem)/1 var(--serif);
  letter-spacing: -.04em;
}

.dek {
  max-width: 780px;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font: 1.18rem/1.6 var(--serif);
}

.page-wrap { padding: clamp(3.2rem, 7vw, 6rem) 0; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(2.2rem, 6vw, 5rem);
  align-items: start;
}

.article {
  max-width: 790px;
  font-size: 1.04rem;
}

.article-wide { max-width: none; }

.article > p:first-of-type {
  margin-top: 0;
  color: #294c4e;
  font: 1.32rem/1.62 var(--serif);
}

.article h2 {
  margin: 2.7rem 0 .7rem;
  color: var(--pine-deep);
  font: 700 clamp(1.65rem, 4vw, 2.45rem)/1.1 var(--serif);
  letter-spacing: -.025em;
}

.article h3 {
  margin: 2rem 0 .5rem;
  color: var(--pine);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article p,
.article ul,
.article ol { margin: 0 0 1.15rem; }

.article li + li { margin-top: .55rem; }

.article-image {
  margin: 0 0 2.6rem;
  border-radius: 2px 42px 2px 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mist);
}

.article-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.side-note {
  position: sticky;
  top: 1.2rem;
  padding: 1.2rem;
  border-top: 4px solid var(--rust);
  background: rgba(255,253,250,.62);
}

.side-note h2 {
  margin: 0 0 .7rem;
  font: 700 1.15rem/1.2 var(--serif);
}

.side-note ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: .86rem;
}

.side-note li + li { margin-top: .45rem; }

.side-note a { text-decoration: none; }

.field-note,
.source-box,
.notice {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--gold);
  background: var(--white);
}

.field-note strong,
.source-box strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--pine-deep);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.month-grid,
.topic-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.month,
.topic-card,
.info-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255,253,250,.52);
}

.month h2,
.topic-card h2,
.info-card h2 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
}

.month p,
.topic-card p { margin: 0; }

.info-card ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.card-kicker {
  margin: 0 0 .35rem;
  color: var(--rust);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.button {
  display: inline-block;
  padding: .75rem 1rem;
  border: 1px solid var(--pine);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}

.button-primary { background: var(--pine); color: var(--white); }

.button-ghost { color: var(--pine); }

.route-list {
  display: grid;
  gap: .8rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.route-list a {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,253,250,.5);
  text-decoration: none;
}

.route-list span:first-child {
  color: var(--rust);
  font: 700 .76rem/1 var(--sans);
  letter-spacing: .08em;
}

.home-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.home-intro h2 {
  margin: 0;
  font: 700 clamp(2.2rem, 5vw, 4.6rem)/1 var(--serif);
  letter-spacing: -.04em;
}

.home-intro p:first-child { margin-top: 0; }

.trail-rule {
  height: 12px;
  margin: 4rem 0;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--ridge) 0 24px, transparent 24px 34px);
  opacity: .32;
}

.site-footer {
  background: var(--pine-deep);
  color: #d5e1de;
}

.footer-inner { padding: 3.4rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.footer-title {
  margin: 0 0 .7rem;
  color: var(--white);
  font: 700 1.65rem/1.15 var(--serif);
}

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

.footer-links a { color: #dce8e5; }

.notice {
  margin: 2.5rem 0 1.4rem;
  border-color: var(--gold);
  background: rgba(255,255,255,.075);
  color: #e3ece9;
  font-size: .85rem;
}

.notice a { color: #ffe1a2; }

.copyright {
  margin: 0;
  color: #9fb6b1;
  font-size: .76rem;
}

.not-found {
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.1rem;
  text-align: center;
}

.not-found-inner { max-width: 650px; }

.not-found .number {
  color: var(--rust);
  font: 700 clamp(5rem, 18vw, 11rem)/.8 var(--serif);
}

.not-found h1 {
  margin: 1.5rem 0 .8rem;
  font: 700 clamp(2rem, 6vw, 4rem)/1 var(--serif);
}

.button-link {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.15rem;
  border: 1px solid var(--pine);
  color: var(--pine);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}

.button-link:hover {
  background: var(--pine);
  color: var(--white);
}

@media (max-width: 850px) {
  .mast-note { display: none; }
  .story-grid,
  .home-intro,
  .footer-grid { grid-template-columns: 1fr; }
  .side-note { position: static; order: -1; }
  .side-note ol { columns: 2; }
}

@media (max-width: 600px) {
  .brand-tag { display: none; }
  .month-grid,
  .topic-grid,
  .card-grid { grid-template-columns: 1fr; }
  .side-note ol { columns: 1; }
  .hero { min-height: 590px; }
  .hero::after { background: linear-gradient(0deg, rgba(7,35,37,.9), rgba(7,35,37,.22)); }
  .footer-links { grid-template-columns: 1fr; }
}

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