@font-face {
  font-family: "Nifty Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nifty Serif";
  src: url("fonts/libre-caslon.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #253c36;
  --muted: #68766e;
  --green: #245548;
  --green-deep: #1b4339;
  --line: #d9ded4;
  --orange: #e99a50;
  --sky: #dae8df;
  --serif: "Nifty Serif", Georgia, serif;
  --sans: "Nifty Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
}
a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
img {
  display: block;
  max-width: 100%;
}
button,
input {
  font: inherit;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: -50px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: white;
}
.skip-link:focus {
  top: 0.75rem;
}
.site-header {
  width: min(1320px, calc(100% - 64px));
  min-height: 91px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-deep);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand img {
  width: 42px;
  height: 42px;
}
.topic-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 38px);
}
.topic-nav a,
.search-button {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.topic-nav a:hover,
.topic-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 7px;
}
.search-button {
  padding: 9px 16px;
  border: 1px solid var(--green);
  border-radius: 99px;
}
.search-button:hover,
.button-link:hover {
  background: var(--green-deep);
  color: white;
}
.hero {
  width: min(1320px, calc(100% - 64px));
  min-height: 595px;
  margin: 28px auto 104px;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sky);
}
.hero-copy {
  padding: clamp(42px, 6.8vw, 95px) clamp(35px, 6vw, 86px);
  align-self: center;
}
.kicker {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.hero h1 {
  margin: 0;
  font: 500 clamp(3.3rem, 6.1vw, 5.6rem) / 0.99 var(--serif);
  letter-spacing: -0.06em;
}
.hero h1 em {
  color: var(--green);
  font-weight: 500;
}
.hero-intro {
  max-width: 430px;
  margin: 25px 0 28px;
  color: #455a51;
  font-size: 1.05rem;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  padding: 13px 19px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.hero-photo {
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.photo {
  margin: 0;
}
.hero-photo .photo {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.hero-photo .photo img {
  min-height: 0;
}
.hero-photo figcaption {
  padding: 8px 12px;
}
.photo figcaption {
  padding-top: 7px;
  color: var(--muted);
  font-size: 0.68rem;
}
.photo figcaption a {
  color: inherit;
}
.topic-section,
.library-section {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto 104px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin-bottom: 0;
  font: 500 clamp(2rem, 3.5vw, 3.15rem) / 1.13 var(--serif);
  letter-spacing: -0.045em;
}
.section-heading > p {
  max-width: 260px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.topic-card {
  min-height: 215px;
  padding: 23px 25px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s;
}
.topic-card:first-child {
  border-left: 1px solid var(--line);
}
.topic-card:hover {
  background: #edf0e7;
}
.topic-card h2 {
  margin: 0 0 7px;
  font: 500 1.48rem/1.15 var(--serif);
}
.topic-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.topic-card b {
  margin-top: auto;
  color: var(--green);
  font-size: 0.78rem;
}
.feature-story {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: 1fr 0.83fr;
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}
.feature-photo img {
  max-height: 460px;
}
.feature-photo .photo img {
  object-fit: cover;
}
.feature-copy {
  max-width: 430px;
}
.feature-copy h2 {
  margin: 0 0 18px;
  font: 500 clamp(2.4rem, 4.1vw, 4rem) / 1.05 var(--serif);
  letter-spacing: -0.05em;
}
.feature-copy h2 a {
  text-decoration: none;
}
.feature-copy > p:not(.kicker) {
  color: var(--muted);
}
.read-link {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.read-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}
.story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fbfaf6;
}
.card-image {
  display: block;
  height: 220px;
  overflow: hidden;
  background: #e6e9df;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.story-card:hover .card-image img {
  transform: scale(1.035);
}
.card-copy {
  padding: 21px 22px 23px;
}
.eyebrow {
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-copy h3 {
  min-height: 3.1em;
  margin: 9px 0 9px;
  font: 500 1.4rem/1.14 var(--serif);
  letter-spacing: -0.025em;
}
.card-copy h3 a {
  text-decoration: none;
}
.card-copy p {
  min-height: 4.5em;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.site-footer {
  width: min(1320px, calc(100% - 64px));
  min-height: 128px;
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 12px 34px;
}
.footer-brand {
  color: var(--green-deep);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.site-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 11px 22px;
}
.site-footer nav a {
  color: var(--muted);
  font-size: 0.77rem;
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--green);
  text-decoration: underline;
}
.listing-page,
.text-page {
  width: min(1240px, calc(100% - 80px));
  margin: 76px auto 110px;
}
.page-intro {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.page-intro h1,
.text-page h1 {
  margin: 0 0 16px;
  font: 500 clamp(3rem, 6vw, 5rem) / 1.05 var(--serif);
  letter-spacing: -0.055em;
}
.page-intro > p:not(.kicker) {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 1.05rem;
}
.page-intro > span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}
.back-link {
  display: inline-block;
  margin-top: 42px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
}
.article-page {
  width: min(1250px, calc(100% - 64px));
  margin: 55px auto 105px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(210px, 300px);
  gap: clamp(40px, 7vw, 95px);
  justify-content: center;
  align-items: start;
}
.article-main {
  min-width: 0;
}
.crumbs {
  display: flex;
  gap: 11px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.75rem;
}
.crumbs a {
  text-decoration: none;
}
.article-heading {
  margin-bottom: 27px;
}
.article-heading h1 {
  margin: 0 0 16px;
  font: 500 clamp(2.65rem, 5vw, 4.8rem) / 1.04 var(--serif);
  letter-spacing: -0.05em;
}
.article-dek {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.6;
}
.article-main > .photo img {
  max-height: 450px;
}
.article-body {
  max-width: 710px;
  margin: 35px auto 0;
}
.article-body > p,
.article-body section p {
  color: #43564e;
  font-size: 1rem;
  line-height: 1.85;
}
.article-body .article-lead {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.8;
}
.article-body h2 {
  margin: 34px 0 10px;
  font: 500 1.75rem/1.2 var(--serif);
  letter-spacing: -0.025em;
}
.article-body .editor-note {
  margin-top: 42px;
  padding: 17px 19px;
  border-left: 3px solid var(--orange);
  background: #f0eee4;
  font-size: 0.83rem;
}
.article-end {
  padding-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 28px;
  border-top: 1px solid var(--line);
}
.article-end a {
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 700;
}
.related-panel {
  position: sticky;
  top: 30px;
  padding-top: 54px;
}
.related-panel > h2 {
  margin: 0 0 17px;
  font: 500 1.9rem/1.15 var(--serif);
}
.related-panel .story-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}
.related-panel .story-card {
  display: grid;
  grid-template-columns: 90px 1fr;
}
.related-panel .card-image {
  height: 100%;
  min-height: 110px;
}
.related-panel .card-copy {
  padding: 12px;
}
.related-panel .card-copy h3 {
  min-height: 0;
  margin: 6px 0;
  font-size: 1.06rem;
}
.related-panel .card-copy p,
.related-panel .read-link {
  display: none;
}
.text-page {
  max-width: 770px;
  min-height: 360px;
}
.text-page > p:not(.kicker) {
  color: #465a51;
  font-size: 1.08rem;
  line-height: 1.9;
}
.photo-credits {
  padding-left: 1.4rem;
}
.photo-credits li + li {
  margin-top: 0.65rem;
}
.text-page .button-link {
  margin-top: 15px;
}
.search-form {
  max-width: 680px;
  margin: 0 auto 30px;
}
.search-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.search-form > div {
  display: flex;
  gap: 10px;
}
.search-form input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #b8c5bb;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
.search-form button {
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 700;
}
.filter-row {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.77rem;
}
.filter-chip.is-active,
.filter-chip:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.no-results {
  margin: 40px auto;
  color: var(--muted);
  text-align: center;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #ce762f;
  outline-offset: 4px;
}

@media (max-width: 940px) {
  .site-header {
    width: calc(100% - 40px);
    gap: 15px;
  }
  .topic-nav {
    gap: 13px;
  }
  .topic-nav a {
    font-size: 0.77rem;
  }
  .hero {
    width: calc(100% - 40px);
    min-height: 500px;
    grid-template-columns: 1fr 1fr;
  }
  .topic-section,
  .library-section,
  .feature-story,
  .listing-page,
  .text-page {
    width: calc(100% - 48px);
  }
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topic-card:nth-child(3) {
    border-left: 1px solid var(--line);
  }
  .topic-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
  }
  .card-image {
    height: 180px;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 15px;
  }
  .site-header {
    min-height: 75px;
    width: calc(100% - 32px);
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0 0;
  }
  .brand {
    font-size: 1.15rem;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
  .search-button {
    margin-left: auto;
    padding: 7px 13px;
    font-size: 0.8rem;
  }
  .topic-nav {
    width: 100%;
    order: 2;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 11px 0 12px;
  }
  .topic-nav a {
    flex: 0 0 auto;
    font-size: 0.72rem;
  }
  .hero {
    width: calc(100% - 24px);
    margin: 12px auto 70px;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
  }
  .hero-copy {
    padding: 37px 27px 25px;
  }
  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.7rem);
  }
  .hero-intro {
    margin: 18px 0 22px;
    font-size: 0.97rem;
  }
  .hero-photo {
    min-height: 0;
  }
  .hero-photo .photo img {
    min-height: 0;
    max-height: 340px;
  }
  .topic-section,
  .library-section,
  .feature-story,
  .listing-page,
  .text-page {
    width: calc(100% - 36px);
    margin-bottom: 72px;
  }
  .section-heading {
    display: block;
    margin-bottom: 22px;
  }
  .section-heading h2 {
    font-size: 2.25rem;
  }
  .section-heading > p {
    margin-top: 12px;
  }
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topic-card {
    min-height: 200px;
    padding: 17px 14px;
  }
  .topic-card h2 {
    font-size: 1.2rem;
  }
  .topic-card p {
    font-size: 0.75rem;
  }
  .feature-story {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .feature-photo img {
    min-height: 0;
    max-height: 300px;
  }
  .feature-copy h2 {
    font-size: 2.7rem;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .card-image {
    height: 220px;
  }
  .card-copy {
    padding: 18px;
  }
  .card-copy h3 {
    min-height: 0;
    font-size: 1.42rem;
  }
  .card-copy p {
    min-height: 0;
  }
  .site-footer {
    width: calc(100% - 36px);
    padding: 25px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .site-footer nav {
    justify-content: flex-start;
    gap: 12px 17px;
  }
  .listing-page,
  .text-page {
    margin-top: 50px;
  }
  .page-intro {
    margin-bottom: 34px;
  }
  .page-intro h1,
  .text-page h1 {
    font-size: 3.25rem;
  }
  .article-page {
    width: calc(100% - 32px);
    margin: 33px auto 70px;
  }
  .article-layout {
    display: block;
  }
  .crumbs {
    margin-bottom: 20px;
  }
  .article-heading h1 {
    font-size: clamp(2.75rem, 13vw, 3.9rem);
  }
  .article-dek {
    font-size: 1rem;
  }
  .article-main > .photo img {
    min-height: 245px;
    max-height: 340px;
  }
  .article-body {
    margin-top: 26px;
  }
  .article-body > p,
  .article-body section p {
    font-size: 0.97rem;
  }
  .article-body h2 {
    font-size: 1.55rem;
  }
  .related-panel {
    position: static;
    margin-top: 45px;
    padding-top: 27px;
    border-top: 1px solid var(--line);
  }
  .related-panel .story-grid {
    grid-template-columns: 1fr;
  }
  .search-form > div {
    gap: 7px;
  }
  .search-form input {
    padding: 12px;
  }
  .search-form button {
    padding: 10px 14px;
  }
}

@media (max-width: 359px) {
  .topic-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: start;
  }
}

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