:root {
  color-scheme: dark;
  --ink: #f2e9d8;
  --muted: #c1b8a5;
  --amber: #ecd09a;
  --night: #1d1d18;
  --panel: #26261e;
  --line: #48463a;
  --paper: #eee5d3;
  --paper-ink: #26231c;
  --paper-muted: #62594a;
  --paper-line: #cfc2ab;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
a, button, select, summary, input { touch-action: manipulation; }
:focus-visible { outline: 2px solid #be802c; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.045em; }
.frame { width: min( calc(100% - 64px), 1200px ); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-150%); background: var(--paper); color: var(--paper-ink); padding: 12px 16px; z-index: 2; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #21211b; }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 750; justify-self: start; white-space: nowrap; }
.brand strong { color: var(--amber); font-weight: 650; }
.brand-mark { display: grid; align-content: center; gap: 3px; width: 28px; height: 28px; border: 1px solid #997b4e; border-radius: 5px; padding-inline: 6px; }
.brand-mark i { height: 1px; width: 100%; background: var(--amber); }
.brand-mark i:nth-child(3) { width: 68%; }
.site-nav, .lang { display: flex; align-items: center; }
.site-nav { gap: clamp(14px, 2vw, 28px); }
.site-nav a, .lang a, .footer-links a { text-decoration: none; white-space: nowrap; }
.site-nav a { padding-block: 10px; font-size: .875rem; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current], .footer-links a:hover { color: var(--amber); }
.lang { gap: 4px; justify-self: end; }
.lang a { padding: 7px 9px; border-radius: 4px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.lang a[aria-current], .lang a:hover { background: #393326; color: var(--amber); }
.hero { display: grid; grid-template-columns: .91fr 1.09fr; gap: clamp(32px, 5.2vw, 80px); align-items: center; padding-block: 45px 48px; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--amber); font-size: .74rem; letter-spacing: .115em; font-weight: 750; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hero .eyebrow span { width: 18px; height: 1px; background: #a28455; }
.hero h1 { font-size: clamp(3rem, 6.75vw, 6.55rem); line-height: .9; letter-spacing: -.062em; margin-inline-start: -.038em; }
.hero-line { margin-top: 23px; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 650; color: var(--amber); }
.hero-intro { color: var(--muted); margin-top: 9px; max-width: 47ch; font-size: .98rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: .65rem .92rem; min-height: 44px; border-radius: 5px; font-size: .86rem; font-weight: 720; text-decoration: none; border: 1px solid transparent; }
.primary { color: #2a2316; background: var(--amber); }
.primary:hover { background: #f5dfb5; }
.secondary { border-color: #625b48; color: var(--ink); background: transparent; }
.secondary:hover { border-color: var(--amber); color: var(--amber); }
.hero-media { position: relative; overflow: hidden; border-radius: 7px; border: 1px solid #544b39; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; }
.catalog-strip, .tool-band { background: var(--panel); border-block: 1px solid var(--line); }
.catalog-inner { display: grid; gap: 15px; padding-block: 22px 24px; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.catalog-head h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.category-picker { display: flex; gap: 6px; }
.category-picker select { min-height: 42px; max-width: 100%; padding: 7px; background: #302f27; color: var(--ink); border: 1px solid #585345; border-radius: 5px; font-size: .85rem; }
.category-picker button { background: var(--amber); color: #2a2316; border: 0; border-radius: 5px; padding: 7px 11px; font-size: .8rem; font-weight: 730; }
.category-picker button:hover { background: #f5dfb5; }
.catalog-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; color: var(--ink); padding: 5px 9px; border: 1px solid #544f40; border-radius: 4px; text-decoration: none; font-size: .78rem; }
.catalog-chip:hover { border-color: var(--amber); color: var(--amber); }
.catalog-chip span { color: var(--amber); font-size: .8em; }
.journal { padding-block: 48px 58px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 22px; }
.section-head p, .tools-inner p { color: var(--muted); margin-top: 8px; }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; color: var(--amber); font-size: .86rem; font-weight: 730; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.journal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.journal-card:first-child { grid-column: span 2; }
.journal-card { color-scheme: light; border-radius: 6px; overflow: hidden; background: var(--paper); color: var(--paper-ink); }
.journal-card a { display: grid; height: 100%; grid-template-rows: auto 1fr; text-decoration: none; }
.journal-card a:focus-visible { outline-offset: -4px; }
.journal-card:first-child a { grid-template-columns: 1.05fr 1fr; grid-template-rows: 1fr; }
.journal-card img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.journal-card:first-child img { height: 100%; aspect-ratio: .9; }
.journal-copy { display: grid; align-content: start; padding: clamp(16px, 3vw, 27px); gap: 9px; }
.journal-card:first-child .journal-copy { align-content: center; }
.journal-card .eyebrow { color: #76511e; }
.journal-card h3 { font: 550 clamp(1.42rem, 2.35vw, 2.15rem)/1.06 var(--display); letter-spacing: -.035em; }
.journal-card p { color: var(--paper-muted); font-size: .9rem; }
.journal-card .text-link { margin-top: 5px; color: #684816; }
.journal-card a:hover .text-link { text-decoration: underline; }
.tool-band { padding-block: 45px; }
.tools-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(25px, 6vw, 75px); }
.tools-inner .text-link { margin-top: 16px; }
.guide-links { padding: 0; margin: 0; list-style: none; }
.guide-links li { border-top: 1px solid var(--line); }
.guide-links li:last-child { border-bottom: 1px solid var(--line); }
.guide-links a { padding: 15px 3px; display: flex; gap: 16px; align-items: center; justify-content: space-between; text-decoration: none; }
.guide-links a:hover strong { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.guide-links small { display: block; color: var(--muted); margin-top: 3px; }
.guide-links [aria-hidden] { color: var(--amber); }
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.footer-inner p { color: var(--muted); margin-top: 7px; font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; color: var(--muted); }
.footer-catalog { color: var(--amber); }
.page-intro { padding-block: 30px 26px; }
.page-intro h1 { max-width: 20ch; font-size: clamp(2.3rem, 6.5vw, 5rem); letter-spacing: -.05em; line-height: 1.02; overflow-wrap: anywhere; }
.page-intro > p:not(.eyebrow) { max-width: 62ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); margin-top: 14px; }
.page-intro > .eyebrow { margin-bottom: 11px; }
.page-intro > .button { margin-top: 15px; }
.breadcrumbs { color: var(--muted); font-size: .82rem; margin-bottom: 21px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 7px; flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; display: inline-block; margin-left: 7px; color: #a29172; }
.breadcrumbs a { text-underline-offset: 3px; }
.reading { display: grid; align-items: start; grid-template-columns: minmax(0, 2.22fr) minmax(0, 1fr); gap: 22px; padding-bottom: 42px; }
.reading-image img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.reading-image .text-link { margin-top: 10px; }
.prose { color-scheme: light; max-width: 820px; margin-bottom: 42px; color: var(--paper-ink); background: var(--paper); padding: clamp(18px, 4vw, 40px); border-radius: 6px; overflow-wrap: anywhere; }
.reading .prose { margin-block: 0; }
.prose section + section, .prose section + h2, .prose form + section { margin-top: 26px; }
.prose h2, .category-note h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); margin-bottom: 10px; }
.prose p + p { margin-top: 12px; }
.prose .guide-links li { border-color: var(--paper-line); }
.prose .guide-links small { color: var(--paper-muted); }
.prose .text-link, .prose .guide-links [aria-hidden], .prose .guide-links a:hover strong { color: #684816; }
.prose > .text-link { margin-top: 20px; }
.prose .actions { margin: 0 0 26px; }
.prose .secondary { color: var(--paper-ink); }
.listing { padding-bottom: 42px; }
.categories-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-bottom: 42px; }
.category-note { color-scheme: light; padding: 22px; background: var(--paper); color: var(--paper-ink); border-radius: 6px; }
.category-note h2 a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.category-note p, .category-note .text-link { color: #5e4b2f; }
.category-note .text-link { margin-top: 12px; }
details { border-block-end: 1px solid var(--paper-line); padding: .8rem 0; }
details:first-child { padding-top: 0; }
summary { cursor: pointer; font-weight: 730; }
details p { margin: .55rem 0; }
.calculator { background: #e2d5bb; border: 1px solid var(--paper-line); padding: 16px; border-radius: 5px; }
.calc-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.calc-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; font-weight: 650; }
.calc-fields input { width: 100%; min-height: 44px; padding: 6px 8px; color: var(--paper-ink); background: #fcf6e9; border: 1px solid #8a795f; border-radius: 4px; }
.calculator .button { background: #342c20; color: var(--ink); }
.result:not(:empty) { display: block; white-space: pre-line; margin-top: 10px; font-weight: 700; }
@media (max-width: 850px) {
  .header-inner { grid-template-columns: 1fr auto; padding-block: 10px; gap: 3px 16px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; row-gap: 0; }
  .site-nav a { display: block; padding-block: 8px; }
  .lang { grid-column: 2; grid-row: 1; }
  .categories-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 740px) {
  .frame { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-block: 30px 24px; }
  .hero h1 { font-size: clamp(3.1rem, 12vw, 5.55rem); }
  .hero-line { margin-top: 16px; }
  .hero-media img { aspect-ratio: 1.55; }
  .catalog-head { align-items: flex-start; flex-direction: column; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .journal { padding-block: 30px; }
  .journal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journal-copy { gap: 7px; }
  .tools-inner { grid-template-columns: 1fr; }
  .reading { grid-template-columns: 1fr; }
  .reading-image { grid-row: 1; max-width: 300px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 455px) {
  .site-nav { gap: 10px 16px; }
  .site-nav a { font-size: .8rem; }
  .catalog-chip { min-height: 43px; }
  .journal-grid, .categories-grid { grid-template-columns: 1fr; }
  .journal-card:first-child { grid-column: auto; }
  .journal-card:first-child a { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .journal-card:first-child img { height: auto; aspect-ratio: 2 / 1; }
}
