*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); line-height: 1.04; }
h3 { line-height: 1.23; }
.ad-placement { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-block: 50px; overflow-x: clip; }
.ad-placement > div { max-width: 100%; text-align: center; }
.wrap { width: min(100% - clamp(2rem, 5vw, 5rem), var(--width)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: .75rem; left: .75rem; padding: .65rem 1rem; color: var(--ink); background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.7rem; min-height: 4.45rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; width: fit-content; text-decoration: none; }
.brand img { width: 8.15rem; height: auto; }
.brand span { line-height: 1; font-weight: 650; font-size: .83rem; padding-left: .75rem; border-left: 1px solid var(--line); }
.desktop-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem clamp(.95rem, 2.15vw, 2rem); }
.desktop-nav a, .mobile-nav a { font-size: .875rem; font-weight: 650; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav [aria-current="page"], .mobile-nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .5rem; font-size: .875rem; font-weight: 650; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: ""; width: .48em; height: .48em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-.12em) rotate(45deg); }
.mobile-nav[open] summary::after { transform: translateY(.05em) rotate(225deg); }
.mobile-nav nav { position: absolute; display: grid; top: calc(100% + .35rem); right: 0; min-width: min(17rem, 100%); background: var(--card); border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 10px 28px #0002; }
.mobile-nav nav a { padding: .7rem 1rem; }
.mobile-nav nav a + a { border-top: 1px solid var(--line); }
.mobile-nav nav a:hover { background: var(--surface); }
.kicker { color: var(--accent); font-size: .79rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.deck, .description { color: var(--muted); }
.deck { font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.meta { color: var(--muted); font-size: .82rem; }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.front-title { display: flex; align-items: center; justify-content: space-between; gap: .8rem 2rem; margin-bottom: clamp(1rem, 2.5vw, 1.7rem); }
.front-title h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -.06em; text-wrap: balance; }
.front-title p { max-width: 24rem; font-size: 1.04rem; color: var(--muted); text-wrap: pretty; }
.preview { min-width: 0; }
.preview > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
}
.preview > a:hover { border-color: var(--accent); }
.preview > a:hover :is(h2, h3) { text-decoration: underline; text-decoration-thickness: .055em; }
.preview-copy { display: flex; flex: 1; flex-direction: column; gap: .5rem; min-width: 0; padding: .9rem 1rem 1rem; }
.preview-copy .meta { margin-top: auto; padding-top: .22rem; }
.preview h3, .listing-grid h2 { font-size: clamp(1.08rem, 1.75vw, 1.35rem); line-height: 1.2; text-wrap: pretty; }
.preview .description { font-size: .94rem; line-height: 1.5; }
.horizontal > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); align-items: center; }
.horizontal .preview-copy { gap: .28rem; }
.shelf-grid, .listing-grid { display: grid; gap: clamp(.8rem, 1.8vw, 1.25rem); }
.shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.section-heading h2 { font-size: clamp(1.5rem, 3.3vw, 2.35rem); letter-spacing: -.038em; }
.section-heading p { color: var(--muted); margin-top: .25rem; font-size: .95rem; }
.section-link { flex-shrink: 0; color: var(--accent); font-size: .875rem; font-weight: 700; padding: .5rem .76rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--card); text-decoration: none; }
.section-link:hover { border-color: var(--accent); }
.topic-shelf { padding-block: clamp(1.45rem, 3.3vw, 2.4rem); border-top: 1px solid var(--line); }
.home-page .topic-shelf:last-of-type { padding-bottom: clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-size: .83rem; color: var(--muted); margin: 0 0 1.3rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .22rem .62rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li:not(.sr-only)::before { content: "/"; padding-right: .62rem; opacity: .65; }
.breadcrumb li:last-child { overflow-wrap: anywhere; }
.listing-header { padding-block: 1.55rem 1.8rem; }
.listing-header h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); }
.listing-header .deck { margin-top: .6rem; }
.listing-grid { padding-bottom: clamp(1.75rem, 4vw, 3.2rem); }
.story-heading { max-width: 56rem; margin-inline: auto; padding: .5rem 0 1.4rem; }
.story-header, .story-cover { max-width: 62rem; }
.story-header .breadcrumb { padding-top: 1.25rem; margin-bottom: .8rem; }
.story h1 { font-size: clamp(2.1rem, 4.75vw, 4.3rem); letter-spacing: -.047em; margin-block: .55rem .8rem; text-wrap: balance; }
.story .meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1.1rem; }
.story .meta span { border-left: 1px solid var(--line); padding-left: 1rem; }
.story-cover .cover { border-radius: var(--radius); }
.prose { width: min(100% - 3rem, 68ch); margin-inline: auto; font: 1.12rem/1.75 var(--reading); overflow-wrap: anywhere; }
.story-body { padding-block: 2.1rem 3rem; }
.prose :is(h2, h3, h4) { margin: 1.65em 0 .45em; }
.prose h2 { font-size: clamp(1.55rem, 4.4vw, 2.25rem); line-height: 1.16; }
.prose h3 { font-size: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose p + p { margin-top: 1.05em; }
.prose :is(ul, ol) { padding-inline-start: 1.35em; }
.prose li + li { margin-top: .55em; }
.prose a { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding-inline-start: 1.2em; border-left: 4px solid var(--accent); }
.prose code { font-size: .86em; background: var(--surface); }
.prose .updated { color: var(--muted); font: .875rem var(--sans); margin-bottom: 1rem; }
.info-page { padding-bottom: 4rem; }
.info-page .prose { width: min(100%, 68ch); margin-inline: 0; }
.contact-list { display: grid; gap: .8rem; }
.contact-list dt { font: 650 .9rem var(--sans); color: var(--muted); }
.contact-list dd { margin: 0; }
.story-related { padding-block: 1.6rem 4rem; border-top: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding-block: 2.2rem; display: flex; justify-content: space-between; align-items: start; gap: 1.4rem; }
.footer-inner p { color: var(--muted); margin-top: .65rem; font-size: .84rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; font-size: .875rem; }
@media (max-width: 58rem) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-inner { min-height: 4rem; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .wrap, .prose { width: calc(100% - 2rem); }
  .header-inner { gap: .5rem; }
  .brand { gap: .42rem; }
  .brand img { width: clamp(5.2rem, 21vw, 7rem); }
  .brand span { padding-left: .42rem; }
  .front-title { display: grid; }
  .front-title h1 { text-wrap: pretty; }
  .front-title p { font-size: .96rem; }
  .shelf-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .story-heading { padding-top: .4rem; }
  .story-body { padding-top: 1.55rem; }
}
@media (max-width: 30rem) {
  .listing-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.06rem; }
  .section-heading p { font-size: .93rem; }
}
@media (min-width: 58.01rem) {
  .preview .description { text-wrap: pretty; }
}
