@font-face { font-family: "Fraunces"; src: url("./fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("./dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #27222a;
  --canvas: #f8f7f4;
  --paper: #fdfcf9;
  --body: #39323c;
  --muted: #605962;
  --line: #d9d1d8;
  --link: #5f3c69;
  --highlight: #eee6ef;
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --width: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--body); font: 1rem/1.6 var(--sans); }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
h1, h2, h3 { color: var(--ink); font: 590 1em/1.07 var(--display); letter-spacing: -.04em; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
.wrap { width: min(calc(100% - 3.5rem), var(--width)); margin-inline: auto; }
.skip-link { position: absolute; inset: .5rem auto auto .5rem; z-index: 2; padding: .55rem .95rem; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus-visible { transform: none; }

.masthead { border-bottom: 1px solid var(--line); color: var(--ink); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 4.7rem; padding-block: .45rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .55rem; min-width: 0; min-height: 44px; text-decoration: none; font: 610 clamp(1.26rem, 2.35vw, 1.68rem)/1.1 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.brand-mark { flex: none; width: 1.78rem; }
.brand img { width: 100%; }
.top-nav, .station-nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(.75rem, 2.05vw, 1.65rem); }
.top-nav { justify-content: flex-end; }
.top-nav a, .station-nav a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 650; text-decoration: none; }
.masthead a[aria-current], .masthead a:hover, .site-footer a[aria-current], .site-footer a:hover { color: var(--link); text-decoration: underline; }
.masthead .subscribe-link { gap: .32rem; color: var(--link); }

.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 6vw, 6rem); margin-block: clamp(1.9rem, 5.3vw, 5.2rem); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.hero h1 { max-width: 12ch; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .99; }
.hero-copy p { max-width: 35ch; font-size: clamp(1.02rem, 1.65vw, 1.24rem); }
.button { display: inline-flex; align-items: center; min-height: 44px; gap: .55rem; margin-top: .35rem; padding: .58rem 1rem; border-radius: 2rem; background: var(--link); color: var(--paper); text-decoration: none; font-weight: 680; }
.button:hover { background: #47294e; color: var(--paper); }
.hero-image { overflow: hidden; border-radius: 1rem; background: var(--highlight); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

.guide-shelves { margin-bottom: clamp(2.4rem, 5vw, 4.8rem); }
.shelf { display: grid; grid-template-columns: minmax(11rem, .68fr) minmax(0, 2fr); gap: 1.25rem 2.75rem; border-top: 1px solid var(--line); padding-block: clamp(1.35rem, 3vw, 2.35rem); }
.shelf-heading h2 { font-size: clamp(2.3rem, 4.9vw, 4.4rem); }
.shelf-heading p { max-width: 25ch; margin-top: .42rem; color: var(--muted); }
.story-list { display: grid; align-content: start; gap: .7rem; }
.story-card { min-width: 0; }
.story-link { display: grid; grid-template-columns: minmax(5rem, .75fr) minmax(0, 2fr) auto; align-items: center; gap: clamp(.7rem, 2vw, 1.25rem); min-width: 0; padding-block: .4rem; text-decoration: none; }
.story-link:hover { color: var(--ink); }
.story-link:hover h3 { text-decoration: underline; }
.story-image { overflow: hidden; border-radius: .45rem; background: var(--highlight); }
.story-image img { width: 100%; aspect-ratio: 1.53; object-fit: cover; }
.story-copy { min-width: 0; padding-block: .2rem; }
.story-copy h3 { font-size: clamp(1.3rem, 2.3vw, 2.05rem); overflow-wrap: anywhere; }
.story-copy p { max-width: 52ch; margin-top: .32rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.story-arrow { align-self: start; padding: .02rem .15rem 0 0; font-size: 1.32rem; color: var(--link); }

.inner-page { padding-block: clamp(2.3rem, 5.4vw, 5rem) 3rem; }
.page-heading { max-width: 49rem; margin-bottom: clamp(1.25rem, 3vw, 2.5rem); }
.page-heading h1 { font-size: clamp(2.55rem, 6vw, 5.45rem); margin-bottom: .6rem; }
.page-heading p { max-width: 56ch; font-size: 1.14rem; }
.plain-copy { max-width: 46rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: 1.08rem; }
.plain-copy h2 { font-size: 1.9rem; margin-block: 1.65rem .65rem; }
.plain-copy h2:first-child { margin-top: 0; }
.plain-copy p { margin-bottom: .9rem; }
.reader-page { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(1.7rem, 8vw, 8rem); max-width: 66rem; padding-block: clamp(3rem, 9.5vw, 8rem); }
.reader-page .page-heading { margin: 0; }
.reader-page .page-heading h1 { font-size: clamp(2.9rem, 5vw, 4.75rem); overflow-wrap: anywhere; }
.reader-page .page-heading p { max-width: 28ch; }
.reader-panel { min-width: 0; padding-block: 1.3rem 1.6rem; border-top: 1px solid var(--line); }
.reader-panel:last-child { padding-bottom: 0; }
.reader-panel h2 { font: 680 1.25rem/1.2 var(--sans); letter-spacing: -.028em; }
.reader-panel :is(p, ul) { margin-top: .55rem; max-width: 43ch; }
.reader-panel ul { padding-inline-start: 1.2em; }
.reader-panel li + li { margin-top: .55rem; }
.reader-panel a { max-width: 100%; overflow-wrap: anywhere; }
.reader-panel > a { display: flex; width: fit-content; margin-top: .75rem; }
.reader-link { align-items: center; gap: .35rem; min-height: 44px; color: var(--link); font-weight: 660; }

.guide { padding-block: clamp(2.1rem, 6vw, 5.25rem) clamp(2.5rem, 5vw, 5rem); }
.article-header, .reading-sheet { max-width: 46rem; }
.article-header h1 { font-size: clamp(2.45rem, 6vw, 5rem); line-height: 1.01; overflow-wrap: anywhere; }
.guide-category { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .6rem; font-weight: 680; font-size: .91rem; color: var(--link); }
.article-note { margin-top: 1.15rem; }
.article-description { max-width: 54ch; font-size: clamp(1.05rem, 1.75vw, 1.28rem); line-height: 1.48; }
.byline { display: flex; flex-wrap: wrap; gap: .25rem .7rem; margin-top: 1rem; font-size: .925rem; line-height: 1.45; }
.byline a { font-weight: 680; }
.byline time { color: var(--muted); }

.reading-sheet { width: calc(100% - 3.5rem); margin: clamp(1.5rem, 3vw, 2.7rem) auto 0; }
.contents { border-block: 1px solid var(--line); margin-bottom: clamp(1.1rem, 3vw, 2.1rem); }
.contents summary { display: flex; align-items: center; justify-content: space-between; gap: .85rem; list-style: none; min-height: 48px; padding: .55rem .1rem; color: var(--ink); font-weight: 780; cursor: pointer; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary::after { content: ""; flex: none; width: .48rem; height: .48rem; margin-right: .35rem; border-right: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(45deg); }
.contents[open] summary::after { transform: rotate(225deg); }
.contents summary:hover, .contents a:hover { color: var(--link); }
.contents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.15rem; list-style: none; padding: 0 0 .7rem; }
.contents a { display: flex; align-items: center; min-height: 44px; padding: .35rem .25rem; color: var(--link); line-height: 1.42; }

.article-copy { font-size: 1.12rem; line-height: 1.7; }
.article-copy > p, .article-copy > ol, .article-copy > ul { margin-bottom: 1.12em; }
.article-copy > h2 { font-size: clamp(1.8rem, 3.5vw, 2.65rem); margin: 1.3em 0 .48em; }
.article-copy > h3 { font-size: clamp(1.3rem, 2.4vw, 1.72rem); margin: 1.2em 0 .46em; }
.article-copy > p:first-child { color: var(--ink); font-size: 1.17em; line-height: 1.48; }
.article-copy ol, .article-copy ul { padding-left: 1.45em; }
.article-copy li { padding-left: .25em; margin-bottom: .64em; }
.article-copy a, .plain-copy a { color: var(--link); font-weight: 660; overflow-wrap: anywhere; }
.article-copy a:hover, .plain-copy a:hover { color: var(--ink); }
.article-copy .article-figure { margin-block: 1.7rem 2.15rem; }
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption { margin-top: .45rem; font-size: .9rem; color: var(--muted); }
.article-copy .article-figure:has(+ .photo-credit) { margin-bottom: 0; }
.article-copy > .photo-credit { margin: .3rem 0 2.15rem; font-size: .89rem; color: var(--muted); }
.table-region { max-width: 100%; overflow-x: auto; margin-bottom: 1.35rem; }
.article-copy table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.48; }
.article-copy :is(th, td) { padding: .75rem .8rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.article-copy thead th { color: var(--ink); background: var(--canvas); font-weight: 770; }
.article-copy tbody th { font-weight: 700; }
.article-copy tbody tr:nth-child(2n) > * { background: var(--highlight); }
.cell-label { display: none; }
.related { margin-top: 2.2rem; padding: .95rem 1.12rem; border-radius: .65rem; background: var(--highlight); color: var(--ink); }
.related p { font-size: .9rem; font-weight: 760; }
.related > a { display: inline-flex; align-items: center; gap: .6rem; padding-block: .24rem; min-height: 44px; color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1.6rem; padding-block: 1.15rem 1.45rem; }
.site-footer .footer-brand { color: var(--ink); font: 610 1.38rem/1.1 var(--display); letter-spacing: -.04em; }
.footer-top { gap: .35rem; }

@media (max-width: 860px) {
  .shelf { grid-template-columns: minmax(7rem, .62fr) minmax(0, 2fr); column-gap: 1.35rem; }
  .article-copy :is(th, td) { padding: .58rem .58rem; }
}
@media (max-width: 760px) {
  .masthead-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .22rem .65rem; }
  .station-nav { flex-basis: 100%; order: 1; column-gap: clamp(1rem, 5vw, 2rem); border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .wrap, .reading-sheet { width: calc(100% - 2rem); }
  .brand { gap: .35rem; }
  .brand-mark { width: 1.45rem; }
  .top-nav { column-gap: .52rem; }
  .top-nav a { font-size: .86rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; font-size: clamp(3rem, 10vw, 5rem); }
  .hero-image img { height: auto; aspect-ratio: 1.7; }
  .shelf { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .shelf-heading p { max-width: 42ch; }
  .story-link { grid-template-columns: minmax(4.5rem, .66fr) minmax(0, 2fr) auto; gap: .6rem; }
  .reader-page { grid-template-columns: minmax(0, 1fr); }
  .reader-page .page-heading h1 { font-size: clamp(2.25rem, 10vw, 3.6rem); }
  .reader-page .page-heading p { max-width: 37ch; }
  .article-header h1 { font-size: clamp(2.15rem, 8.25vw, 3.6rem); }
  .article-copy { font-size: 1.055rem; }
  .article-copy > p:first-child { font-size: 1.13em; }
}
@media (max-width: 510px) {
  .contents ul { grid-template-columns: minmax(0, 1fr); }
  .story-link { grid-template-columns: minmax(4.4rem, .62fr) minmax(0, 2fr); }
  .story-arrow { display: none; }
  .story-copy p { font-size: .88rem; }
  .article-copy table, .article-copy tbody, .article-copy tbody tr, .article-copy tbody :is(th, td) { display: block; }
  .article-copy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .article-copy tbody tr { margin-bottom: .65rem; background: var(--highlight); }
  .article-copy tbody :is(th, td) { padding: .48rem .64rem; border: 0; }
  .article-copy tbody th, .article-copy tbody tr:nth-child(2n) th { color: var(--ink); background: var(--canvas); font-size: 1rem; }
  .cell-label { display: block; color: var(--ink); font-size: .875rem; font-weight: 750; margin-bottom: .1rem; }
}
@media (max-width: 370px) {
  .masthead-inner { column-gap: .4rem; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 1.2rem; }
  .top-nav a { font-size: .81rem; }
}
