:root {
  --ink: #17261c;
  --muted: #56635a;
  --green: #244e34;
  --green-dark: #173a25;
  --green-soft: #e8f0e9;
  --gold: #d5a93f;
  --paper: #fffefa;
  --line: #d9dfd8;
  --shadow: 0 12px 30px rgba(23, 58, 37, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f4f6f1;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }

.environment-banner {
  display: none;
  padding: 7px 16px;
  border-bottom: 2px solid #a30000;
  background: #ffeb3b;
  color: #990000;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}
.is-staging .environment-banner { display: block; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.15;
  text-decoration: none;
}
.brand img { flex: 0 0 auto; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.site-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { background: var(--green-soft); }

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.archive-intro {
  max-width: 810px;
  padding: 70px 0 42px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.intro-copy {
  max-width: 710px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}
.archive-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.archive-jumps a {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #aebdaf;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.featured-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 22px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  color: #fff;
}
.featured-newsletter h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}
.featured-newsletter p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: #dce8df;
}
.featured-newsletter .section-kicker { color: #f2d788; }
.primary-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--gold);
  color: #1d2d22;
  font-weight: 800;
  text-decoration: none;
}
.primary-button span {
  margin-left: 9px;
  font-size: 20px;
}

.archive-section {
  padding: 74px 0 20px;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.1;
}
.section-heading > p {
  max-width: 410px;
  margin-bottom: 2px;
  color: var(--muted);
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.year-card {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(23, 58, 37, 0.04);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.year-card:hover,
.year-card:focus-visible {
  border-color: #6f9176;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.year-card.newest {
  border-color: var(--green);
  background: var(--green-soft);
}
.year {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}
.format {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.archive-note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 14px;
}

.early-section { padding-bottom: 76px; }
.early-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.collection-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.collection-card h3 {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 23px;
}
.newsletter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.newsletter-list li + li { border-top: 1px solid var(--line); }
.newsletter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 10px 2px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}
.newsletter-list a:hover span:first-child,
.newsletter-list a:focus-visible span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.newsletter-list span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
}
footer p { margin-bottom: 0; }
footer a {
  color: var(--green-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav { justify-content: flex-start; }
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header {
    gap: 15px;
    padding: 13px 16px;
  }
  .site-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .site-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    text-align: center;
  }
  main { width: min(100% - 28px, 1180px); }
  .archive-intro { padding: 44px 0 30px; }
  .featured-newsletter {
    align-items: stretch;
    flex-direction: column;
    padding: 27px 22px;
    border-radius: 16px;
  }
  .primary-button { width: 100%; }
  .archive-section { padding-top: 56px; }
  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }
  .year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .year-card {
    min-height: 112px;
    padding: 17px;
  }
  .early-grid { grid-template-columns: 1fr; }
  .collection-card { padding: 20px; }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-grid { grid-template-columns: 1fr; }
  .year-card { min-height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .year-card { transition: none; }
}
