:root {
  color-scheme: light;
  --paper: #f8f5eb;
  --panel: #eee9d9;
  --white: #fffcf4;
  --ink: #292d20;
  --muted: #55594c;
  --rust: #873e2d;
  --rust-hover: #683024;
  --line: #d9d1bd;
  --outline: #aaa38e;
  --control-border: #867d67;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; color: var(--muted); }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1280px, calc(100% - 6rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 1rem; left: 1rem; background: var(--white); padding: .75rem 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-content { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: flex; align-items: center; gap: .55rem; font-size: 1.23rem; font-weight: 800; letter-spacing: -.07em; text-decoration: none; line-height: 1; }
.wordmark-mark { background: var(--ink); color: var(--white); border-radius: 50%; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; font: italic 1.4rem/1 var(--serif); }
.wordmark-second { color: var(--muted); margin-left: .22rem; font-weight: 500; }
.primary-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); margin-inline: auto; }
.primary-nav a, .languages a { padding-block: .75rem; font-size: .88rem; text-decoration: none; }
.primary-nav a[aria-current], .primary-nav a:hover, .languages a[aria-current], .languages a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: .35em; }
.languages { display: flex; gap: .5rem; align-items: center; }
.languages a { min-width: 32px; text-align: center; }
.languages a + a { position: relative; }
.languages a + a::before { position: absolute; content: ''; inset: .8rem auto .8rem -.25rem; border-inline-start: 1px solid var(--line); }

.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; padding: .62rem 1.14rem; border: 1px solid transparent; border-radius: 5px; font-weight: 690; font-size: .91rem; text-decoration: none; text-align: center; cursor: pointer; }
.button-primary { color: #fff9f0; background: var(--rust); }
.button-primary:hover { background: var(--rust-hover); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #444937; }
.button-outline { border-color: var(--outline); background: transparent; }
.button-outline:hover { border-color: var(--ink); background: var(--panel); }
.text-link { color: var(--rust); width: fit-content; font-size: .9rem; font-weight: 700; text-underline-offset: .32em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.8rem, 5vw, 5rem); padding-block: clamp(2.75rem, 5.2vw, 5rem) clamp(2.65rem, 5vw, 4.6rem); }
.hero-copy { min-width: 0; }
.tag { display: inline-block; color: var(--rust); font-size: .82rem; line-height: 1.35; font-weight: 750; letter-spacing: .01em; }
.hero-label { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .81rem; letter-spacing: .09em; text-transform: uppercase; }
.hero-label::before { content: ''; width: 1.8rem; height: 1px; background: var(--rust); flex: none; }
.hero h1 { margin: .9rem 0 1.5rem; font: 400 clamp(3rem, 6.35vw, 6.1rem)/.97 var(--serif); letter-spacing: -.078em; }
.hero h1 em { display: block; color: var(--rust); font-weight: 400; }
.hero-intro { max-width: 38rem; color: var(--muted); font-size: clamp(1.025rem, 1.4vw, 1.13rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #d4c3a9; }
.hero-media figcaption { position: absolute; right: .9rem; bottom: .9rem; display: grid; gap: .15rem; padding: .65rem .9rem; border: 1px solid #fff8e8; border-radius: 4px; background: var(--paper); }
.hero-media figcaption span { color: var(--muted); font-size: .8rem; }
.hero-media figcaption a { color: var(--rust); font-size: .92rem; font-weight: 700; text-underline-offset: .2em; }

.category-panel { padding: clamp(1.2rem, 3vw, 2.25rem); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.45rem; }
.section-heading h2, .content-section > h2 { font: 400 clamp(1.8rem, 3.6vw, 3.1rem)/1.06 var(--serif); letter-spacing: -.056em; }
.section-heading p { margin-top: .55rem; color: var(--muted); max-width: 43rem; }
.section-heading .text-link { flex-shrink: 0; }
.panel-heading h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); }
.category-picker { display: flex; flex-wrap: wrap; gap: .55rem; }
.category-picker select { appearance: none; min-height: 47px; max-width: 100%; padding: .6rem 2.1rem .6rem .8rem; border: 1px solid var(--control-border); border-radius: 5px; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 17px center / 5px 5px no-repeat, linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 12px center / 5px 5px no-repeat, var(--white); color: var(--ink); }
.category-pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.category-pills a { display: inline-flex; align-items: center; min-height: 43px; padding: .44rem .9rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 100vw; font-size: .9rem; font-weight: 590; text-decoration: none; }
.category-pills a:hover { border-color: var(--rust); color: var(--rust); }
.panel-link { display: inline-block; margin-top: 1rem; }

.content-section { margin-block: clamp(3.3rem, 7vw, 6rem); }
.content-section > h2 { margin-bottom: 1.3rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.3vw, 1.8rem); }
.article-card { border: 1px solid var(--line); background: var(--white); border-radius: 6px; }
.article-card > a { display: block; height: 100%; text-decoration: none; border-radius: inherit; }
.article-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--panel); border-radius: 5px 5px 0 0; }
.card-copy { padding: clamp(1rem, 2vw, 1.45rem); }
.card-title { margin-top: .5rem; font: 400 clamp(1.37rem, 2vw, 1.8rem)/1.14 var(--serif); letter-spacing: -.03em; overflow-wrap: anywhere; }
.article-card a:hover .card-title, .guide-list a:hover strong, .directory-grid a:hover strong { color: var(--rust); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.card-copy p { margin-top: .62rem; color: var(--muted); font-size: .94rem; }

.guide-list, .directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1.5rem; padding: 0; margin: 0; list-style: none; }
.guide-list li, .directory-grid li { border-top: 1px solid var(--outline); }
.guide-list a, .directory-grid a { display: grid; gap: .32rem; align-content: start; min-height: 100%; padding: 1.15rem .26rem; text-decoration: none; }
.guide-list strong, .directory-grid strong { display: block; font: 400 1.36rem/1.2 var(--serif); }
.guide-list a span:last-child, .directory-grid a span { color: var(--muted); font-size: .94rem; }
.directory-grid { margin-top: 2.5rem; }
.guide-search { display: grid; gap: .45rem; max-width: 36rem; margin-bottom: 1.75rem; }
.guide-search input { width: 100%; min-height: 46px; padding: .55rem .8rem; border: 1px solid var(--control-border); border-radius: 5px; color: var(--ink); background: var(--white); }
.guide-search p { color: var(--muted); font-size: .9rem; }

.breadcrumbs { margin-top: 1.7rem; color: var(--muted); font-size: .86rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: .6rem; color: var(--rust); }
.breadcrumbs a { text-underline-offset: .23em; }
.page-body { padding-bottom: 4rem; }
.page-heading { max-width: 58rem; padding-block: clamp(2rem, 5vw, 4rem) 2rem; }
.page-heading h1 { font: 400 clamp(2.55rem, 5.3vw, 4.8rem)/1.01 var(--serif); letter-spacing: -.06em; overflow-wrap: anywhere; }
.page-heading > .tag { margin-bottom: .85rem; }
.page-heading > p:last-child { margin-top: .9rem; color: var(--muted); max-width: 45rem; font-size: clamp(1.04rem, 1.5vw, 1.19rem); line-height: 1.65; }
.category-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem 1.5rem; background: var(--panel); border-radius: 7px; }
.category-action p { max-width: 41rem; }
.page-body .content-section { margin-block: 2.5rem; }
.reading-wrap { max-width: 860px; }
.reading-wrap .page-heading { max-width: 780px; }
.article-hero { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--panel); }
.reading { max-width: 700px; margin: 2rem auto; }
.reading section { margin-bottom: 2rem; }
.reading h2 { margin-bottom: .7rem; font: 400 clamp(1.6rem, 3.1vw, 2.15rem)/1.13 var(--serif); letter-spacing: -.035em; }
.reading p { font-size: 1.065rem; line-height: 1.8; }
.reading p + p { margin-top: .8rem; }
.reading-actions { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 700px; margin: 2rem auto 4rem; }

.site-footer { background: var(--panel); border-top: 1px solid var(--line); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem 2rem; padding-block: 2.5rem; }
.footer-brand { font: 400 1.5rem/1.1 var(--serif); text-decoration: none; }
.footer-content p { max-width: 34rem; margin-top: .65rem; color: var(--muted); }
.footer-content nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .65rem 1.3rem; }
.footer-content nav a { font-size: .9rem; text-underline-offset: .2em; }

@media (max-width: 1090px) {
  .wrap { width: calc(100% - 4rem); }
  .header-content { gap: 1rem; }
  .header-main { display: none; }
  .hero { gap: 2rem; }
}

@media (max-width: 790px) {
  .wrap { width: calc(100% - 2.4rem); }
  .header-content { flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; padding-top: .6rem; }
  .primary-nav { width: 100%; gap: 1rem; padding-block: .1rem .15rem; margin-top: .25rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 1.55rem; }
  .hero h1 { font-size: clamp(3.4rem, 10.5vw, 6rem); }
  .hero-media img { max-height: 460px; }
  .article-grid, .guide-list, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 460px) {
  .wrap { width: calc(100% - 2rem); }
  .primary-nav { justify-content: space-between; gap: .45rem; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.62rem); }
  .hero-actions .button { padding-inline: .73rem; }
  .article-grid, .guide-list, .directory-grid { grid-template-columns: 1fr; }
  .category-picker { width: 100%; }
  .category-picker select { width: 100%; }
}
