@import url("/assets/fonts.css");

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --panel: #fffdfa;
  --ink: #25241e;
  --mute: #615c52;
  --accent: #9c3b26;
  --rule: #d9d3c8;
  --serif: "Instrument Serif", Georgia, serif;
  --text: Georgia, serif;
  --ui: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--ui); }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 3rem, 1192px); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .6rem 1rem; background: var(--panel); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--rule); }
.topbar { display: flex; gap: 2rem; align-items: center; justify-content: space-between; min-height: 86px; }
.wordmark { white-space: nowrap; color: var(--ink); text-decoration: none; font: 3rem/.95 var(--serif); letter-spacing: -.035em; }
.wordmark span { color: var(--accent); }
.desktop-nav, .top-actions, .footer nav { display: flex; align-items: center; gap: clamp(.8rem, 2.3vw, 2rem); }
.desktop-nav a, .footer nav a { text-decoration: none; font-weight: 550; font-size: .91rem; }
.desktop-nav a[aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35rem; }
.search-button, .mobile-nav summary { padding: .62rem .85rem; min-height: 44px; background: transparent; border: 1px solid var(--rule); cursor: pointer; }
.search-button { display: inline-flex; align-items: center; gap: .45rem; }
.search-button:hover, .mobile-nav summary:hover { border-color: var(--accent); }
.search-button svg { width: 17px; height: 17px; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; z-index: 2; right: 0; top: calc(100% + .3rem); background: var(--panel); border: 1px solid var(--rule); padding: .25rem; width: max-content; max-width: 80vw; }
.mobile-nav nav a { display: block; padding: .65rem .9rem; text-decoration: none; }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6.1rem); align-items: center; padding-block: 3.25rem 3.8rem; }
.eyebrow, .category { color: var(--accent); font-size: .88rem; font-weight: 650; }
.eyebrow { display: flex; gap: .6rem; align-items: center; margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 1.45rem; height: 1px; background: currentColor; }
.hero h1, .article-head h1, .archive-head h1 { font: 400 clamp(3.85rem, 7vw, 7rem)/.89 var(--serif); letter-spacing: -.03em; margin: 0 0 1.2rem; text-wrap: balance; }
.hero h1 a, .card h3 a, .list-card h2 a { text-decoration: none; }
.hero p.lede { max-width: 38ch; font: 1.13rem/1.65 var(--text); color: var(--mute); margin: 0 0 1.25rem; }
.hero-cta { display: inline-flex; padding: .78rem 1.05rem; color: white; background: var(--accent); text-decoration: none; font-weight: 650; }
.hero-cta:hover { color: white; background: #77301f; }
.hero-media { display: block; overflow: hidden; background: #ded7ca; }
.hero-media img { width: 100%; aspect-ratio: 1.38; object-fit: cover; }
.hero-media img, .card-image img { transition: transform .35s ease; }
.hero-media:hover img, .card-image:hover img { transform: scale(1.025); }
.section { padding-block: 2rem 4rem; border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.35rem; }
.section-head h2, .archive-head h1 { font-family: var(--serif); font-weight: 400; }
.section-head h2 { font-size: clamp(2.5rem, 4.7vw, 3.85rem); line-height: .95; letter-spacing: -.02em; margin: 0; }
.section-head a { text-decoration-thickness: 1px; font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.2rem 1.35rem; }
.card-image { display: block; overflow: hidden; background: #ded7ca; }
.card-image img { width: 100%; aspect-ratio: 1.66; object-fit: cover; }
.card .category { display: inline-block; text-decoration: none; margin-top: .85rem; }
.card h3 { font: 400 clamp(1.9rem, 3.15vw, 2.6rem)/1.02 var(--serif); margin: .28rem 0 .35rem; letter-spacing: -.01em; }
.meta { color: var(--mute); font-size: .88rem; }
.placeholder { min-height: 140px; background: repeating-linear-gradient(140deg,#e9e4d9,#e9e4d9 2px,#efece4 2px,#efece4 10px); }
.archive-head { padding-block: 3.6rem 2rem; }
.archive-head h1 { font-size: clamp(3.6rem, 6.5vw, 6.4rem); margin-bottom: .6rem; }
.archive-head p { margin: .4rem 0 0; color: var(--mute); }
.archive-body { padding-bottom: 4rem; }
.tax-list { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 2.25rem; padding: 0; list-style: none; }
.tax-list a, .tag-list a { display: inline-block; border: 1px solid var(--rule); padding: .4rem .7rem; text-decoration: none; }
.tax-list a:hover, .tag-list a:hover { border-color: var(--accent); }
.pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-block: 1.15rem; font-size: .94rem; }
.article-shell { padding-block: 3.5rem 4.6rem; }
.article-head, .prose, .article-end { width: min(100%, 720px); margin-inline: auto; }
.article-head { margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(3.7rem, 8vw, 7.2rem); }
.article-head .meta { margin: 0; }
.article-cover { width: min(100%, 960px); margin: 0 auto 2.4rem; }
.article-cover img { width: 100%; max-height: 690px; object-fit: cover; }
.prose { font: clamp(1.06rem, 1.25vw, 1.18rem)/1.78 var(--text); overflow-wrap: anywhere; }
.prose a { color: var(--accent); }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; font-size: 2.45rem; line-height: 1.05; }
.prose h3 { font-size: 1.9rem; }
.prose p { margin: 0 0 1.25em; }
.prose figure { margin: 1.5rem 0; max-width: 100%; }
.prose figcaption { color: var(--mute); font: .85rem/1.45 var(--ui); margin-top: .5rem; }
.prose img { margin-block: .3rem; }
.prose blockquote { margin-inline: 0; padding-inline: 1.2rem 0; border-left: 2px solid var(--accent); }
.prose table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.prose td, .prose th { padding: .35rem; border: 1px solid var(--rule); }
.prose pre { white-space: pre-wrap; }
.article-end { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.comments { margin-top: 2rem; font: .95rem/1.6 var(--ui); }
.comments h2 { font: 400 2.6rem/.98 var(--serif); margin-bottom: .8rem; }
.comments article { padding-block: .8rem; border-top: 1px solid var(--rule); }
.comments article p { margin: .3rem 0; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 2.2rem; }
.footer p { color: var(--mute); margin: .4rem 0 0; font-size: .91rem; }
.search-dialog { width: min(92vw, 590px); max-height: min(82dvh, 720px); background: var(--panel); color: var(--ink); border: 1px solid var(--rule); padding: 1.4rem; }
.search-dialog::backdrop { background: #25241e99; }
.search-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.search-head h2 { font: 400 2.9rem/.95 var(--serif); margin: 0; }
.search-head button { background: transparent; border: 1px solid var(--rule); cursor: pointer; font-size: 1.5rem; width: 44px; height: 44px; }
.search-dialog label { display: block; margin-bottom: .35rem; }
.search-dialog input { width: 100%; padding: .65rem .8rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
.search-status { color: var(--mute); font-size: .9rem; margin-bottom: .3rem; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { border-bottom: 1px solid var(--rule); }
.search-results a { display: block; padding-block: .6rem; }
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .topbar { min-height: 70px; }
  .hero { gap: 1.8rem; }
  .hero h1 { font-size: clamp(3.3rem, 8vw, 5rem); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar, .top-actions { gap: .45rem; }
  .wordmark { font-size: 2.55rem; }
  .search-button, .mobile-nav summary { padding-inline: .55rem; font-size: .85rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 2rem; padding-bottom: 2rem; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 1.6; }
  .cards { grid-template-columns: 1fr; gap: 1.8rem; }
  .section { padding-block: 1.55rem 2.8rem; }
  .article-shell, .archive-head { padding-top: 2rem; }
  .article-head h1 { font-size: clamp(3.1rem, 13vw, 4.8rem); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
