:root {
  --forest: #1a3d32;
  --canopy: #0f241c;
  --copper: #b87333;
  --patina: #c9894a;
  --mist: #e5ebe7;
  --fog: #d3ddd7;
  --muted: #5f7269;
  --rule: color-mix(in srgb, var(--forest) 14%, transparent);
  --display: "Archivo", system-ui, sans-serif;
  --body: "Literata", Georgia, serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--forest);
  background:
    radial-gradient(1000px 520px at 15% -5%, color-mix(in srgb, var(--copper) 16%, transparent), transparent 58%),
    linear-gradient(175deg, var(--canopy) 0%, var(--forest) 40%, #2a5244 52%, var(--mist) 52%, #f2f6f3 100%);
  min-height: 100vh;
  line-height: 1.68;
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 9;
  background: var(--copper); color: #fff; padding: .5rem 1rem;
}

.mast {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1060px; margin: 0 auto; padding: 1.05rem 1.35rem;
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canopy) 88%, transparent);
  backdrop-filter: blur(11px);
  border-bottom: 1px solid color-mix(in srgb, var(--mist) 18%, transparent);
}
.brand {
  font-family: var(--display);
  font-weight: 700; font-size: 1.28rem;
  letter-spacing: -.01em;
  color: var(--mist); text-decoration: none;
}
.nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav a {
  color: color-mix(in srgb, var(--mist) 75%, transparent);
  text-decoration: none; font-size: .92rem; font-weight: 500;
  font-family: var(--display);
}
.nav a[aria-current="page"], .nav a:hover { color: var(--patina); }

.hero {
  min-height: min(88vh, 840px);
  display: grid; align-items: end;
  padding: 4.2rem 1.35rem 3.4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 38%;
  height: 56px;
  background:
    linear-gradient(180deg, transparent 0 18px, var(--copper) 18px 22px, transparent 22px 34px, var(--copper) 34px 38px, transparent 38px),
    linear-gradient(90deg, color-mix(in srgb, var(--copper) 70%, #fff), var(--copper), color-mix(in srgb, var(--copper) 70%, #000));
  clip-path: polygon(0 28%, 4% 0, 96% 0, 100% 28%, 100% 72%, 96% 100%, 4% 100%, 0 72%);
  opacity: .88;
  animation: loadSettle 3.2s ease-out both, beamFlex 6s 3.2s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px color-mix(in srgb, #000 35%, transparent));
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 55%, color-mix(in srgb, var(--mist) 12%, transparent), transparent 70%),
    repeating-linear-gradient(
      90deg,
      transparent 0 64px,
      color-mix(in srgb, var(--mist) 6%, transparent) 64px 65px
    );
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1060px; margin: 0 auto; width: 100%;
}
.hero-brand {
  display: flex; flex-direction: column; gap: .35rem;
  margin: 0 0 1rem;
  font-family: var(--mono); font-size: .74rem;
  color: color-mix(in srgb, var(--mist) 70%, transparent);
  letter-spacing: .1em; text-transform: uppercase;
}
.hero-brand span { color: var(--patina); font-weight: 600; }
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.5vw, 4.8rem);
  line-height: 1; letter-spacing: -.03em;
  color: #f2f7f4;
  max-width: 12ch;
  animation: riseIn .85s ease both;
}
.hero-lede {
  max-width: 35rem;
  color: color-mix(in srgb, var(--mist) 90%, transparent);
  font-size: 1.08rem; margin: 0 0 1.55rem;
  animation: riseIn .95s .12s ease both;
}
.cta-row { display: flex; gap: .85rem; flex-wrap: wrap; animation: riseIn 1.05s .2s ease both; }
.cta {
  display: inline-block;
  background: var(--copper); color: #fff;
  text-decoration: none; font-family: var(--display); font-weight: 700;
  padding: .85rem 1.3rem; border-radius: 3px;
}
.cta-ghost {
  background: transparent; color: var(--mist);
  border: 1px solid color-mix(in srgb, var(--mist) 40%, transparent);
}

.load-strip {
  max-width: 1060px; margin: -1rem auto 0; padding: 0 1.35rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
  position: relative; z-index: 2;
}
.load-strip p {
  margin: 0; padding: 1rem 1.05rem;
  background: color-mix(in srgb, var(--mist) 92%, #fff);
  border-bottom: 3px solid var(--copper);
  font-size: .93rem; color: var(--muted);
}
.load-strip strong {
  display: block; font-family: var(--display);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); margin-bottom: .35rem; font-weight: 700;
}

.readings {
  max-width: 1060px; margin: 0 auto; padding: 3.6rem 1.35rem 5rem;
}
.readings h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.9rem; letter-spacing: -.02em;
  margin: 0 0 1.35rem; color: var(--forest);
}
.note-list { display: flex; flex-direction: column; gap: .75rem; }
.note-list a {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  text-decoration: none; color: inherit;
  padding: 1.15rem 1.2rem;
  background: color-mix(in srgb, var(--mist) 90%, #fff);
  border-top: 2px solid var(--forest);
  transition: border-color .2s ease, transform .2s ease;
}
.note-list a:hover { border-top-color: var(--copper); transform: translateY(-2px); }
.note-list .mark {
  font-family: var(--mono); font-size: .74rem; color: var(--copper);
  padding-top: .25rem; font-weight: 600;
}
.note-list h3 {
  margin: 0 0 .35rem; font-size: 1.15rem; color: var(--forest);
  font-family: var(--display); font-weight: 700;
}
.note-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.board {
  max-width: 720px; margin: 0 auto; padding: 3.1rem 1.35rem 4.5rem;
  background: var(--mist); min-height: 55vh;
}
.article-head .kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #8f5a24; margin: 0 0 .4rem;
}
.article-head h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--forest); line-height: 1.12;
}
.meta { color: var(--muted); margin: 0 0 1.4rem; }
.prose { color: var(--muted); }
.prose a { color: var(--forest); text-decoration-color: var(--copper); }
.prose h2 { font-family: var(--display); color: var(--forest); margin-top: 1.7rem; font-weight: 700; }
.prose ul { padding-left: 1.2rem; }

.foot {
  border-top: 1px solid var(--rule);
  background: var(--fog);
  padding: 2rem 1.35rem;
}
.foot nav {
  max-width: 1060px; margin: 0 auto 1rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.foot a { color: var(--forest); text-decoration: none; font-size: .9rem; font-weight: 600; font-family: var(--display); }
.foot .copy, .foot > p {
  max-width: 1060px; margin: 0 auto;
  font-size: .82rem; color: var(--muted);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes loadSettle {
  from { transform: translateY(-18px) scaleX(.92); opacity: 0; }
  to { transform: none; opacity: .88; }
}
@keyframes beamFlex {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (max-width: 720px) {
  .load-strip { grid-template-columns: 1fr; }
  .hero { min-height: 74vh; padding-top: 3rem; }
  .hero::before { height: 40px; top: 34%; }
  .note-list a { grid-template-columns: 1fr; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
