:root {
  color-scheme: light;
  --paper: #faf7f1;
  --ink: #352c32;
  --plum: #593341;
  --wine: #763f50;
  --soft: #665a5b;
  --rule: #d9cec4;
  --blush: #eee1db;
  --serif: "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: var(--wine); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #8d415b; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.13; }
.wrap { width: min(1250px, calc(100% - 8vw)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .7rem; left: .7rem; z-index: 5; padding: .5rem 1rem; background: white; }
.site-header { border-bottom: 1px solid var(--rule); }
.nav { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--plum); font: 600 clamp(1.45rem, 2.3vw, 2rem)/1.12 var(--serif); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; width: 23px; height: 30px; border: 2px solid currentColor; border-radius: 2px 5px 5px 2px; transform: rotate(-7deg); box-shadow: inset 4px 0 0 var(--paper), inset 5px 0 0 currentColor; }
.brand-mark::after { content: ""; position: absolute; top: 6px; right: 3px; width: 8px; height: 2px; background: currentColor; box-shadow: 0 4px 0 currentColor; }
.brand-logo { object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 550; padding-block: .5rem; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--wine); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; margin-block: clamp(1.7rem, 3.8vw, 3.5rem) clamp(3rem, 5.2vw, 5rem); border: 1px solid var(--rule); background: #f2e7e2; }
.hero-copy { align-self: center; padding: clamp(2rem, 4.5vw, 4.65rem); }
.eyebrow, .meta, .feature-label small { font: 650 .68rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--wine); }
.ruled { display: flex; align-items: center; gap: .7rem; }
.ruled::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.hero h1 { margin: 1.5rem 0 1.15rem; font-size: clamp(2.5rem, 4.8vw, 4.35rem); line-height: 1.03; letter-spacing: -.065em; color: var(--plum); }
.hero h1 em { font-weight: 400; }
.hero-copy p { max-width: 32ch; color: #5f5054; font-size: clamp(.96rem, 1.35vw, 1.1rem); line-height: 1.62; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.05rem; min-height: 44px; padding: .65rem 1.2rem; border: 1px solid var(--plum); border-radius: 3px; background: var(--plum); color: white; text-decoration: none; font: 600 .84rem/1.4 var(--sans); }
.button:hover { background: #472733; color: white; }
.hero-copy .button { margin-top: 1.65rem; }
.button span { font-size: 1.05rem; }
.hero-media { min-height: clamp(340px, 32vw, 465px); position: relative; background: #e0d4c6; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-label { position: absolute; left: 1.1rem; bottom: 1.1rem; display: inline-flex; align-items: center; gap: 1.35rem; max-width: calc(100% - 2.2rem); background: var(--paper); color: var(--ink); padding: .7rem .85rem .7rem 1rem; text-decoration: none; box-shadow: 0 3px 16px #3022251c; }
.feature-label small, .feature-label strong { display: block; }
.feature-label small { font-size: .57rem; }
.feature-label strong { margin-top: .15rem; font: 500 1.05rem/1.14 var(--serif); }
.round-arrow { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 50%; border: 1px solid var(--rule); color: var(--plum); }
.feature-label:hover .round-arrow { background: var(--plum); color: white; }
.section { margin-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.library-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.05rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.55rem; }
.library-head h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); letter-spacing: -.055em; color: var(--plum); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { border: 1px solid var(--rule); color: var(--soft); background: transparent; padding: .45rem .9rem; border-radius: 99px; font-size: .81rem; min-height: 36px; }
.filters button:hover { border-color: var(--plum); color: var(--plum); }
.filters button[aria-pressed="true"] { color: white; border-color: var(--plum); background: var(--plum); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.15rem, 2.35vw, 2rem); }
.card { min-width: 0; }
.stretched { display: block; height: 100%; color: inherit; text-decoration: none; }
.card-image { background: #ede7dd; overflow: hidden; aspect-ratio: 1.65; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease-out; }
.stretched:hover .card-image img { transform: scale(1.035); }
.card-body { padding: 1.05rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.meta { margin-bottom: .55rem; }
.card h3 { font-size: clamp(1.45rem, 2.05vw, 2rem); letter-spacing: -.042em; }
.stretched:hover h3 { color: var(--wine); }
.card p { margin: .65rem 0; color: var(--soft); font-size: .92rem; }
.card-read { display: inline-flex; align-items: center; gap: .45rem; font-size: .81rem; font-weight: 650; color: var(--wine); }
.card-read span { font-size: 1rem; }
.page-hero { padding-block: clamp(2.4rem, 5vw, 5rem) clamp(1.8rem, 4vw, 3.5rem); border-bottom: 1px solid var(--rule); margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.breadcrumb, .breadcrumb a { font-size: .82rem; color: var(--soft); }
.breadcrumb { margin-bottom: 1.35rem; }
.breadcrumb a:hover { color: var(--wine); }
.page-hero .eyebrow { margin-bottom: .7rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); max-width: 23ch; letter-spacing: -.05em; color: var(--plum); }
.page-hero p { margin-top: 1rem; max-width: 61ch; color: var(--soft); font-size: 1.1rem; }
.layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(205px, 1fr); gap: clamp(2.5rem, 8vw, 7.5rem); align-items: start; }
.content { min-width: 0; max-width: 76ch; }
.content h2, .sidebar h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); margin: 2rem 0 .8rem; color: var(--plum); letter-spacing: -.035em; }
.content > :first-child, .sidebar h2 { margin-top: 0; }
.content p + p { margin-top: .9rem; }
.article-hero { width: 100%; max-height: 450px; object-fit: cover; }
.note { margin: 1.3rem 0; padding: .85rem 1.1rem; border-left: 3px solid var(--wine); background: var(--blush); color: var(--plum); font-size: .92rem; }
.pill-list { margin: 0; padding-inline-start: 1.3rem; }
.pill-list li + li { margin-top: .45rem; }
.pill-list li::marker { color: var(--wine); }
.link-card { padding: 1.25rem; border: 1px solid var(--rule); display: grid; grid-template-columns: minmax(80px, 27%) minmax(0, 1fr); gap: 1.1rem; align-items: center; margin-block: .8rem; }
.link-card img { width: 100%; max-height: 200px; object-fit: contain; }
.link-card.no-image { display: block; }
.link-card h3 { font-size: 1.45rem; }
.link-card p { margin: .5rem 0 .75rem; }
.fine-print, .sidebar-box p { color: var(--soft); font-size: .87rem; }
.sidebar-box { padding: 1.35rem; background: #f1eae2; margin-bottom: 1rem; overflow-wrap: anywhere; }
.sidebar h2 { font-size: 1.45rem; }
.sidebar-box p + p { margin-top: .5rem; }
.detail-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.detail-table th, .detail-table td { text-align: left; vertical-align: top; padding: .63rem; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.detail-table th { width: 33%; color: var(--plum); }
.faq-item { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.faq-item summary { color: var(--plum); font-weight: 600; cursor: pointer; }
.faq-item p { margin-top: .65rem; }
.pagination, .page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; }
.pagination { margin-top: 2rem; }
.page-link { padding: .35rem .65rem; border: 1px solid var(--rule); }
.page-link.current { background: var(--plum); color: white; }
.page-link.disabled { color: var(--soft); }
.site-footer { border-top: 1px solid var(--rule); background: #ede5dd; }
.footer-inner { padding-block: 2.8rem; display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-tagline { margin: .55rem 0 0; max-width: 40ch; color: var(--soft); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 33rem; gap: .5rem 1.25rem; }
.footer-links a { color: var(--plum); font-size: .84rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .nav { min-height: 66px; }
  .hero-copy { padding: 1.75rem; }
  .hero h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
  .hero-media { min-height: 300px; }
  .library-head { flex-wrap: wrap; align-items: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .nav { gap: .75rem; flex-wrap: wrap; padding-block: .8rem; }
  .brand { gap: 8px; font-size: 1.35rem; }
  .brand-mark { width: 18px; height: 24px; }
  .nav-links { gap: .7rem; }
  .nav-links a { font-size: .78rem; }
  .hero { grid-template-columns: 1fr; margin-block: 1.1rem 2.3rem; }
  .hero-copy { padding: 1.8rem 1.35rem; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.5rem); margin: 1rem 0 .75rem; }
  .hero-copy p { max-width: 38ch; }
  .hero-copy .button { margin-top: 1rem; }
  .hero-media { min-height: 0; aspect-ratio: 1.72; }
  .feature-label { bottom: .75rem; left: .75rem; }
  .library-head { display: grid; margin-bottom: 1.05rem; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .card-image { aspect-ratio: 1.8; }
  .card h3 { font-size: 1.7rem; }
  .sidebar-box { padding: 1rem; }
  .section { margin-bottom: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
