:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #58675e;
  --paper: #f4f1e8;
  --panel: #e7eadf;
  --forest: #244936;
  --moss: #8fa77d;
  --sand: #d8caa5;
  --line: rgba(23, 35, 29, 0.17);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--forest);
  font: 700 0.9rem/1 Arial, sans-serif;
  transform: translateY(-160%);
}

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

.shell,
.site-header,
.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-header {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 21px;
  color: var(--muted);
  font: 400 0.86rem/1.4 Arial, sans-serif;
}

nav a { text-decoration: none; }
nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; }

.eyebrow,
.breadcrumb,
.index,
.card-number,
.toc-title {
  color: var(--forest);
  font: 700 0.75rem/1.4 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: break-word; }

h1,
h2,
h3 { text-wrap: balance; }

h1 {
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.button {
  display: inline-block;
  padding: 13px 19px;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  font: 700 0.9rem/1 Arial, sans-serif;
  text-decoration: none;
}

.button:hover { background: #183426; }

/* Home */

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
  padding: 64px 0;
}

.hero .eyebrow { margin: 0 0 14px; }
.hero .lead { margin-bottom: 28px; }

.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38% 38% 8px 8px;
  background: var(--panel);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 106px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-grid article {
  min-height: 285px;
  padding: 32px;
  background: var(--paper);
}

.home-grid article p:not(.card-number) { color: var(--muted); }
.home-grid article a { font: 400 0.9rem/1.4 Arial, sans-serif; }
.card-number { color: var(--moss); }

.home-section { padding: 0 0 110px; }
.home-section h2 { margin-bottom: 42px; }

.link-rail {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.link-rail li { border-bottom: 1px solid var(--line); }

.link-rail a {
  min-height: 82px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 22px;
  text-decoration: none;
}

.link-rail a:hover strong { text-decoration: underline; }
.link-rail span { color: var(--moss); font: 700 0.75rem/1 Arial, sans-serif; }
.link-rail strong { font-size: 1.28rem; font-weight: 500; }
.link-rail svg { width: 28px; color: var(--forest); }

.season-band {
  margin-bottom: 108px;
  padding: 76px 0;
  background: var(--panel);
}

.season-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 70px;
}

.season-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 22px;
  margin: 24px 0 34px;
  font: 400 1rem/1.4 Arial, sans-serif;
}

.season-copy > p { max-width: 430px; color: var(--muted); font-size: 1.12rem; }
.season-layout img { display: block; width: 100%; height: auto; }

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 70px;
  border-top: 1px solid var(--line);
}

.reading-grid a {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  text-decoration: none;
}

.reading-grid a:hover span { text-decoration: underline; }

.home-closing {
  padding: 24px 0 105px;
}

.home-closing p {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* Hubs */

.hub-hero {
  min-height: 515px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 64px;
  padding: 56px 0 46px;
}

.hub-hero .eyebrow { margin: 0 0 15px; }
.hub-hero .lead { max-width: 610px; }

.hub-hero img {
  display: block;
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  border-radius: 39% 39% 7px 7px;
  background: var(--panel);
}

.article-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 105px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-index article {
  min-height: 185px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  padding: 28px 32px 30px 0;
  border-bottom: 1px solid var(--line);
}

.article-index article:nth-child(odd) {
  padding-right: 38px;
  border-right: 1px solid var(--line);
}

.article-index article:nth-child(even) { padding-left: 38px; }
.article-index article:nth-last-child(-n + 2) { border-bottom: 0; }
.article-index .index { color: var(--moss); }
.article-index h2 { margin-bottom: 10px; font-size: 1.45rem; letter-spacing: -0.02em; }
.article-index h2 a { text-decoration: none; }
.article-index h2 a:hover { text-decoration: underline; }
.article-index p { margin: 0; color: var(--muted); }
.article-index .start-link { display: inline-block; margin-top: 15px; font: 400 0.88rem/1.4 Arial, sans-serif; }

.hub-note {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  padding: 0 0 104px;
}

.hub-note p { margin-top: 0; color: var(--muted); font-size: 1.08rem; }

/* Articles */

.breadcrumb {
  margin: 0 0 28px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.breadcrumb a { color: var(--muted); }

.article-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  gap: 72px;
  padding: 50px 0 48px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 { font-size: clamp(3rem, 5.8vw, 5.5rem); }
.article-hero img { display: block; width: 100%; height: auto; max-height: 390px; object-fit: cover; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 250px;
  justify-content: space-between;
  gap: 78px;
  padding: 58px 0 100px;
}

.article-body > section {
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.article-body > section:last-of-type { margin-bottom: 0; }
.article-body h2 { margin-bottom: 20px; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.025em; }
.article-body h3 { margin: 28px 0 10px; }
.article-body p { margin: 0 0 19px; font-size: 1.08rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul { margin: 19px 0 0; padding-left: 1.25em; }
.article-body li { margin: 0 0 10px; padding-left: 5px; font-size: 1.05rem; }

.toc {
  align-self: start;
  padding: 25px 0 0 28px;
  border-left: 1px solid var(--line);
}

.toc-title { display: block; margin-bottom: 13px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 12px 0; color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.toc a:hover { color: var(--ink); }

.field-note {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: 34px;
  margin: 8px 0 52px;
  padding: 30px;
  background: var(--panel);
}

.field-note h2 { margin-bottom: 16px; font-size: 1.65rem; }
.field-note img { display: block; width: 100%; height: auto; max-height: 205px; object-fit: contain; }
.field-note ul { margin: 0; padding: 0; list-style: none; }
.field-note li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.field-note li:last-child { border-bottom: 0; }

.related { margin-top: 54px; }
.related h2 { margin-bottom: 24px; font-size: 2.35rem; }

.related a {
  display: grid;
  grid-template-columns: 42px 1fr 1.35fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.related a:last-child { border-bottom: 1px solid var(--line); }
.related a:hover strong { text-decoration: underline; }
.related span { color: var(--moss); font: 700 0.75rem/1 Arial, sans-serif; }
.related strong { font-size: 1.08rem; }
.related small { color: var(--muted); font: 400 0.83rem/1.45 Arial, sans-serif; }

/* Informational pages */

.plain-page {
  max-width: 850px;
  min-height: 680px;
  padding: 88px 0 112px;
}

.plain-page .eyebrow { margin: 0 0 14px; }
.plain-page h1 { margin-bottom: 32px; }
.plain-page > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.plain-page h2 { margin: 52px 0 18px; font-size: 2rem; }

.error-page {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.error-page .button { margin-top: 12px; }

.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.82rem/1.4 Arial, sans-serif;
}

.site-footer .brand { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }

@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .site-header nav { justify-content: flex-start; }
  .hero,
  .hub-hero,
  .article-hero,
  .season-layout,
  .hub-note { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero img,
  .hub-hero img { max-height: 430px; object-fit: cover; }
  .hero img { border-radius: 30% 30% 7px 7px; }
  .hub-hero { padding-bottom: 60px; }
  .article-hero { gap: 45px; }
  .article-hero img { max-height: 360px; }
  .article-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .toc { display: none; }
}

@media (max-width: 760px) {
  h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  nav { gap: 12px 17px; }
  .home-grid,
  .article-index,
  .reading-grid { grid-template-columns: 1fr; }
  .home-grid article { min-height: 0; }
  .article-index article,
  .article-index article:nth-child(odd),
  .article-index article:nth-child(even) {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .article-index article:last-child { border-bottom: 0; }
  .article-index article:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .field-note { grid-template-columns: 1fr; }
  .field-note img { max-height: 170px; }
  .related a { grid-template-columns: 35px 1fr; padding: 14px 0; }
  .related small { grid-column: 2; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .shell,
  .site-header,
  .site-footer { width: min(var(--max-width), calc(100% - 28px)); }
  .hero { gap: 38px; padding-bottom: 48px; }
  .home-grid { margin-bottom: 82px; }
  .home-section { padding-bottom: 82px; }
  .season-band { margin-bottom: 82px; padding: 58px 0; }
  .link-rail a { grid-template-columns: 36px 1fr auto; gap: 12px; }
  .article-layout { padding-top: 44px; }
  .article-body p { font-size: 1.02rem; }
  .article-index article { grid-template-columns: 35px 1fr; }
}

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