:root {
  --ink: #17212c;
  --muted: #586570;
  --blue: #7896a8;
  --blue-soft: #eaf4f8;
  --sage: #9aaa8e;
  --sage-deep: #5f7054;
  --yellow: #e4c45c;
  --rust: #b86d50;
  --line: rgba(23, 33, 44, .18);
  --white: #fbfaf6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #fafdff 0%, #f4fafc 52%, #fff 100%); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
button:focus-visible { border-radius: 3px; }
.skip-link {
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 20;
  padding: 9px 13px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
.page { min-height: 100vh; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(250, 253, 255, .92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.header-inner, .page-wrap, .footer-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.brand img, .footer-brand img { width: 35px; height: 35px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.14rem; letter-spacing: .02em; font-weight: 700; }
.footer-brand { font-family: var(--serif); font-size: 1.14rem; letter-spacing: .02em; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 20px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.nav a, .footer-links a { text-decoration: none; }
.nav a:hover, .footer-links a:hover, .back-link:hover, .article-prose a:hover { color: var(--rust); }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--ink); text-decoration: none; font-size: .78rem; letter-spacing: .08em; font-weight: 700; }
.button-primary { background: var(--sage-deep); color: var(--white); }
.button-primary:hover { background: #526647; border-color: #526647; color: #fff; }
.button-outline { padding: 9px 13px; border: 1px solid var(--ink); }
.mobile-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: 8px 10px; font-size: 1.1rem; }
main { padding: 58px 0 88px; }
.page-wrap { max-width: 1120px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 800; color: var(--muted); }
.tag { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .69rem; font-weight: 800; color: var(--sage-deep); }
.tag { padding: 6px 9px; background: var(--yellow); color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); line-height: .98; margin: 0; }
h1 { font-size: clamp(3.2rem, 8vw, 7.2rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; }
.lede { max-width: 680px; font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.42rem); line-height: 1.5; color: #34434f; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 70px; align-items: center; padding: 30px 0 68px; border-bottom: 1px solid var(--line); }
.landing-hero h1 { margin-top: 18px; max-width: 670px; font-size: clamp(2.9rem, 4.2vw, 3.75rem); letter-spacing: -.07em; line-height: .94; }
.landing-hero .lede { max-width: 610px; margin: 27px 0 30px; font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.62; }
.landing-hero img { width: 100%; max-height: 300px; object-fit: contain; background: rgba(234,244,248,.62); border-radius: 26px; }
.section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-heading span { height: 1px; flex: 1; background: var(--line); }
.listing { padding: 58px 0 58px; }
.listing .section-heading h2 { font-size: clamp(1.8rem, 2.65vw, 2.7rem); line-height: 1.05; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-list-card { display: grid; grid-template-columns: 170px 1fr; gap: 20px; min-height: 190px; padding: 20px 22px; border: 1px solid var(--line); background: rgba(251,250,246,.6); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.guide-list-card:hover { transform: translateY(-3px); border-color: var(--sage-deep); background: #fff; }
.guide-list-card img { width: 170px; height: 110px; object-fit: cover; align-self: start; margin-top: 3px; border-radius: 4px; }
.guide-list-card h2 { font-size: clamp(1.55rem, 2.2vw, 2.1rem); line-height: 1.04; margin: 11px 0 13px; }
.guide-list-card p { margin: 0 0 17px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.card-credit { display: block; margin: -7px 0 13px; color: var(--muted); font-family: var(--sans); font-size: .64rem; line-height: 1.35; }
.read-link { font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.source-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; margin-top: 24px; padding: 28px; border: 1px solid rgba(76,139,125,.25); background: linear-gradient(135deg, rgba(234,244,248,.76), rgba(236,245,235,.72)); }
.source-panel h2 { margin: 9px 0 8px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.source-panel p { max-width: 650px; margin: 0; color: var(--muted); }
.source-panel ul { margin: 0; padding-left: 18px; }
.source-panel li + li { margin-top: 9px; }
.source-panel a { color: var(--ink); font-weight: 700; }
.article-page { padding-top: 8px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: .78rem; letter-spacing: .03em; }
.breadcrumbs a { font-weight: 700; text-decoration: none; }
.breadcrumbs span[aria-hidden="true"] { opacity: .5; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.back-link { display: inline-block; margin-bottom: 22px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; }
.article-hero { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; align-items: center; padding: 24px 0 54px; border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 780px; margin: 15px 0 22px; font-size: clamp(2.8rem, 4.3vw, 4.6rem); line-height: 1; }
.article-hero .lede { margin: 0 0 18px; }
.article-cover { margin: 0; min-width: 0; }
.article-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: rgba(234,244,248,.62); border-radius: 26px; }
.image-credit { margin: 9px 4px 0; color: var(--muted); font-family: var(--sans); font-size: .66rem; line-height: 1.45; }
.image-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #46545f; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.article-meta a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-meta span + span::before { content: "·"; margin-right: 14px; opacity: .5; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 62px; padding-top: 54px; }
.article-prose { max-width: 760px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.75; }
.article-prose p { margin: 0 0 1.25em; }
.article-inline-figure { margin: 2.25rem 0 2.6rem; }
.article-inline-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: rgba(234,244,248,.62); }
.article-inline-figure .image-credit { margin-left: 0; margin-right: 0; }
.article-prose h2 { font-size: 2rem; line-height: 1.08; margin: 1.65em 0 .5em; }
.article-prose h3 { font-size: 1.55rem; line-height: 1.12; margin: 1.5em 0 .4em; }
.article-prose ul, .article-prose ol { padding-left: 1.25em; margin: 0 0 1.25em; }
.article-prose li + li { margin-top: .35em; }
.article-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-prose code { font-family: var(--sans); font-size: .85em; padding: .1em .3em; background: var(--blue-soft); }
.table-scroll { overflow-x: auto; margin: 1.5em 0; }
.article-prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .88rem; line-height: 1.45; }
.article-prose th, .article-prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-prose th { background: var(--blue-soft); }
.aside-card { padding: 19px; border-left: 4px solid var(--rust); background: #f3df9f; margin-bottom: 22px; }
.aside-card strong { font-family: var(--serif); font-size: 1.4rem; }
.aside-card p { margin: 8px 0 0; color: #3b444b; font-size: .95rem; line-height: 1.5; }
.article-aside .source-panel { display: block; margin: 0; padding: 18px; }
.article-aside .source-panel h2 { font-size: 1.6rem; }
.article-aside .source-panel p { font-size: .92rem; line-height: 1.5; }
.article-aside .source-panel ul { margin-top: 18px; font-size: .92rem; }
.related-guides { margin-top: 72px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.related-heading h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.related-heading span { flex: 1; height: 1px; background: var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { min-height: 170px; padding: 18px; border: 1px solid var(--line); background: rgba(251,250,246,.55); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.related-card:hover { border-color: var(--sage-deep); background: #fff; transform: translateY(-2px); }
.related-card h3 { margin: 10px 0 14px; font-size: clamp(1.25rem, 1.7vw, 1.65rem); line-height: 1.08; }
.related-card .read-link { font-size: .76rem; }
.article-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pagination-context { grid-column: 1 / -1; margin-bottom: -3px; color: #46545f; font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-pagination a { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.article-pagination a:hover { border-color: var(--sage-deep); background: #fff; }
.article-pagination .next { text-align: right; align-items: flex-end; }
.pagination-label { color: var(--sage-deep); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-pagination strong { font-family: var(--serif); font-size: 1.08rem; line-height: 1.18; }
.pagination-placeholder { min-height: 1px; }
.simple-page { max-width: 820px; padding: 30px 0; }
.simple-page h1 { max-width: 720px; margin: 18px 0 24px; font-size: clamp(2.35rem, 4vw, 4.2rem); letter-spacing: -.055em; line-height: .98; }
.simple-page .article-prose { margin-top: 54px; }
.simple-page .article-prose h2 { font-size: clamp(1.65rem, 2.5vw, 2.35rem); margin-top: 1.45em; }
.site-footer { border-top: 1px solid var(--line); padding: 38px 0 48px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand { margin-bottom: 12px; }
.footer-inner p { max-width: 330px; margin: 0; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; font-size: .84rem; }
.footer-meta { text-align: right; justify-self: end; }
.footer-meta img { display: block; width: 160px; height: 43px; object-fit: contain; object-position: right center; margin-left: auto; margin-bottom: 10px; opacity: .8; }
.footer-meta p { font-size: .78rem; }
@media (max-width: 980px) {
  .article-hero { grid-template-columns: 1fr; gap: 28px; }
  .article-hero img { max-width: 620px; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; left: 24px; right: 24px; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 15px 30px rgba(23,33,44,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 9px; }
  .mobile-toggle { display: block; }
  .landing-hero, .article-hero { grid-template-columns: 1fr; gap: 28px; }
  .landing-hero h1 { font-size: clamp(2.9rem, 13.5vw, 4.6rem); }
  .landing-hero .lede { font-size: 1.05rem; line-height: 1.58; }
  .landing-hero img, .article-hero img { max-height: 230px; }
  .guide-list { grid-template-columns: 1fr; }
  .article-layout, .source-panel { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-pagination { grid-template-columns: 1fr; }
  .pagination-context { grid-column: auto; }
  .article-pagination .next { text-align: left; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { justify-self: start; text-align: left; }
  .footer-meta img { margin-left: 0; }
}
@media (max-width: 520px) {
  .header-inner, .page-wrap, .footer-inner { width: min(var(--max), calc(100% - 32px)); }
  main { padding-top: 36px; }
  h1 { font-size: clamp(2.7rem, 12.5vw, 4rem); }
  .guide-list-card { grid-template-columns: 108px 1fr; gap: 14px; min-height: 0; padding: 14px; }
  .guide-list-card img { width: 108px; height: 75px; margin-top: 1px; }
  .guide-list-card h2 { font-size: 1.42rem; line-height: 1.08; }
  .guide-list-card p { font-size: .95rem; line-height: 1.45; }
}
