:root {
  color-scheme: light;
  --milk: #f7f2e7;
  --paper: #fffaf0;
  --ink: #26201c;
  --mink: #665a50;
  --line: #dcd1c0;
  --dark: #211916;
  --dark-end: #432b24;
  --amber: #f1cb96;
  --rust: #833f27;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--milk); color: var(--ink); font: 1rem/1.6 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 4vw, 3.1rem); letter-spacing: -.045em; }
h3 { font-size: 1.06rem; line-height: 1.3; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #bc693a; outline-offset: 4px; }
.wrap { width: min(1152px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .55rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { background: var(--dark); color: var(--milk); border-bottom: 1px solid #f8ecdc22; position: relative; z-index: 2; }
.masthead-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.wordmark { display: flex; width: fit-content; align-items: center; gap: .68rem; text-decoration: none; font-size: .87rem; line-height: 1.15; font-weight: 750; letter-spacing: .115em; }
.wordmark small { display: block; font-size: .59rem; letter-spacing: .19em; color: var(--amber); margin-top: .22rem; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #d7986b; border-radius: 8px; background: #503025; color: var(--amber); font: italic 1.48rem var(--serif); }
.primary { display: flex; flex-wrap: wrap; gap: clamp(.65rem, 2.6vw, 2.3rem); }
.primary a { text-decoration: none; display: block; padding: .55rem 0; font-size: .89rem; color: #ebddcc; }
.primary a:hover, .primary [aria-current] { color: var(--amber); text-decoration: underline; }
.language { position: relative; justify-self: end; font-size: .83rem; }
.language summary, .category-dropdown summary { display: flex; align-items: center; gap: .75rem; list-style: none; }
.language summary::-webkit-details-marker, .category-dropdown summary::-webkit-details-marker, .faqs summary::-webkit-details-marker { display: none; }
.language summary { padding: .43rem .76rem; border: 1px solid #f8ecdc52; border-radius: 4px; font-weight: 650; }
.language summary::after, .category-dropdown summary::after, .faqs summary::after { content: ""; border-right: 1.5px solid; border-bottom: 1.5px solid; width: 7px; height: 7px; transform: translateY(-2px) rotate(45deg); margin-left: auto; flex: none; }
details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.language div { position: absolute; top: calc(100% + 8px); right: 0; background: var(--paper); color: var(--ink); min-width: 125px; padding: .35rem; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 8px 27px #21191638; }
.language div a { display: block; padding: .38rem .62rem; text-decoration: none; border-radius: 3px; }
.language div a:hover, .language div [aria-current] { background: #f2e4cd; }
.hero { color: var(--milk); background: radial-gradient(ellipse at 77% 18%, #71432d82, transparent 59%), linear-gradient(120deg, var(--dark) 22%, var(--dark-end)); }
.hero-inner { display: grid; grid-template-columns: 1.27fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(3rem, 8vw, 7.1rem); }
.kicker { display: block; text-transform: uppercase; color: var(--amber); letter-spacing: .17em; font-size: .69rem; font-weight: 750; margin: 0 0 .95rem; }
.hero h1 { font-size: clamp(2.12rem, 4.32vw, 4.14rem); letter-spacing: -.062em; line-height: 1.05; }
.hero h1 em { color: var(--amber); font-weight: inherit; display: inline-block; margin-top: .12em; }
.lead { color: #f3e5d6; max-width: 43ch; margin: 1.55rem 0; font-size: clamp(.99rem, 1.38vw, 1.12rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem; }
.button { align-items: center; display: inline-flex; gap: .9rem; padding: .75rem 1.05rem; border-radius: 4px; font-size: .88rem; font-weight: 750; text-decoration: none; line-height: 1.28; min-height: 44px; }
.button-sand { background: var(--amber); color: var(--ink); }
.button-sand:hover { background: #ffe0ad; }
.quiet-link { font-size: .88rem; font-weight: 650; }
.quiet-link span { margin-left: .26rem; }
.tools { min-width: 0; position: relative; color: var(--ink); background: var(--paper); border-radius: 11px; border: 1px solid #f7e7cd; padding: 1.2rem 1.28rem 1.12rem; box-shadow: 0 22px 55px #170c0b55; }
.tool-head { display: flex; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding-bottom: 1rem; }
.tool-head h2 { font-size: clamp(1.52rem, 3.4vw, 2.21rem); letter-spacing: -.04em; }
.tool-head span { color: var(--mink); font-size: .72rem; }
.tool-controls { padding: 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; background: #ebdfcc; border-radius: 6px; margin-bottom: .93rem; }
.tool-controls button { padding: .41rem .1rem; min-width: 0; min-height: 40px; border-radius: 4px; background: transparent; border: 1px solid transparent; color: #514132; font-size: clamp(.74rem, 1.18vw, .89rem); line-height: 1.25; font-weight: 680; }
.tool-controls [aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: #e1d0b7; }
.tools[data-ready] .worksheet-title { display: none; }
.worksheet { margin-bottom: .2rem; }
.worksheet-title { margin-bottom: .6rem; }
.tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
.tool-fields label { color: #58483b; font-weight: 680; font-size: .78rem; line-height: 1.38; display: flex; flex-direction: column; justify-content: space-between; gap: .36rem; }
.tool-fields input { background: #fffdf8; border: 1px solid #cbbda9; color: var(--ink); border-radius: 4px; width: 100%; padding: .43rem .62rem; min-height: 42px; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 1rem; }
.tool-fields input:invalid { border-color: #9c4d35; }
.readout { margin-top: .9rem; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: .7rem; background: #f0e5d3; border-radius: 4px; padding: .62rem .72rem; font-size: .79rem; font-weight: 700; }
.readout output { font-variant-numeric: tabular-nums; color: var(--rust); font-size: 1.13rem; }
.readout output[data-invalid] { font-size: .83rem; }
.worksheet p { color: var(--mink); padding-top: .6rem; font-size: .74rem; line-height: 1.45; }
.find-bar { background: #eadbc4; border-bottom: 1px solid #dfcbb0; }
.find-inner { min-height: 108px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.find-inner h2 { font-size: clamp(1.43rem, 3vw, 2rem); }
.find-inner p { margin-top: .28rem; font-size: .89rem; color: #594b3f; }
.category-dropdown { position: relative; min-width: min(210px, 100%); z-index: 1; }
.category-dropdown summary { min-height: 44px; border: 1px solid #a78161; border-radius: 4px; padding: .53rem .85rem; background: var(--paper); font-size: .88rem; font-weight: 700; }
.category-dropdown ul { position: absolute; top: 100%; right: 0; margin: .36rem 0 0; padding: .4rem; list-style: none; background: var(--paper); border: 1px solid #b9987d; border-radius: 5px; min-width: 100%; width: max-content; max-width: min(330px, calc(100vw - 32px)); max-height: min(60vh, 28rem); overflow: auto; box-shadow: 0 12px 40px #321e1938; }
.category-dropdown a { display: flex; justify-content: space-between; gap: .75rem; color: var(--ink); text-decoration: none; border-radius: 3px; padding: .45rem .6rem; font-size: .88rem; }
.category-dropdown a:hover { background: #f2e4cd; }
.home-section { margin-block: clamp(3.12rem, 7vw, 5.8rem); }
.home-section h2, .page-content > h2 { margin-bottom: 1.2rem; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #bda887; border-bottom: 1px solid #cfc0a8; }
.collection-grid > a { display: block; text-decoration: none; padding: 1.12rem .92rem 1.22rem; }
.collection-grid > a + a { border-left: 1px solid var(--line); }
.collection-grid > a:hover { background: #eee3d2; }
.collection-grid h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.collection-grid h3 span { color: var(--rust); }
.collection-grid p, .tile p, .catalog-grid p, .question-list p { color: var(--mink); font-size: .88rem; line-height: 1.49; margin-top: .48rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.text-link { color: var(--rust); font-weight: 700; font-size: .86rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; overflow: clip; }
.tile a { display: block; height: 100%; text-decoration: none; }
.tile a:focus-visible { outline-offset: -4px; }
.tile a:hover h3 { text-decoration: underline; }
.tile-photo { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; background: #dfcdb3; }
.tile a > div { padding: .95rem 1rem 1.12rem; }
.tile small { color: var(--rust); font-weight: 750; text-transform: uppercase; font-size: .65rem; letter-spacing: .1em; }
.tile h3 { margin-top: .23rem; }
.next-wrap { margin-block: 0 3.5rem; }
.next-step { background: linear-gradient(115deg, #32221c, #674131); color: var(--milk); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1.35rem, 4vw, 2.35rem); border-radius: 8px; }
.next-step p { margin-top: .55rem; color: #f3e5d6; }
.next-step .button { flex-shrink: 0; }
.crumbs { padding-top: 1.15rem; color: var(--mink); font-size: .81rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .12rem .45rem; padding: 0; list-style: none; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: #9c755b; }
.page-intro { padding-block: clamp(2.1rem, 6vw, 4.6rem) 1.8rem; }
.page-intro h1, .detail h1 { font-size: clamp(2.7rem, 6.5vw, 5.15rem); letter-spacing: -.06em; overflow-wrap: anywhere; }
.page-intro p, .detail-head p { color: var(--mink); font-size: clamp(1.02rem, 2vw, 1.23rem); max-width: 66ch; margin-top: 1.14rem; }
.page-content { margin-block: 1.5rem 4rem; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; gap: 1rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.catalog-grid article { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1.1rem; }
.catalog-grid p { margin-bottom: .7rem; }
.catalog-grid a { margin-top: auto; align-self: flex-start; }
.question-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid #c2ad92; }
.question-list li { border-bottom: 1px solid var(--line); padding: .75rem .1rem; }
.question-list a { text-decoration: none; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-weight: 720; }
.question-list a:hover { text-decoration: underline; }
.question-list a span:last-child { color: var(--rust); }
.question-list p { margin-top: .25rem; }
.detail { max-width: 800px; margin-bottom: 4.5rem; }
.detail-head { padding: clamp(2.2rem, 6vw, 4rem) 0 1.8rem; }
.detail-head .kicker { color: var(--rust); }
.article-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #dfcdb3; border-radius: 7px; margin-bottom: 2.05rem; }
.prose { max-width: 700px; }
.prose section + section { margin-top: 1.85rem; }
.prose h2, .related h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
.prose p { margin-top: .6rem; white-space: pre-line; }
.checklist { background: #eee2ce; border-radius: 5px; padding: 1.2rem; margin-top: 2rem; }
.checklist ul { margin: .62rem 0 0; padding-left: 1.25rem; }
.checklist li + li { margin-top: .35rem; }
.related { padding-top: 2rem; }
.related h2 { margin-bottom: .75rem; }
.faqs { max-width: 800px; }
.faqs details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.faqs details:first-child { border-top: 1px solid var(--line); }
.faqs summary { display: flex; align-items: baseline; gap: 1rem; font-weight: 750; list-style: none; }
.faqs p { color: var(--mink); margin-top: .55rem; }
.footer { background: var(--dark); color: var(--milk); }
.footer-inner { min-height: 124px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
.footer-brand { font-weight: 750; color: var(--amber); text-decoration: none; }
.footer p { color: #e3d3c2; font-size: .83rem; margin-top: .35rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .83rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { gap: 1.6rem; }
  .hero h1 { font-size: clamp(1.82rem, 4.45vw, 2.65rem); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid > a:nth-child(3) { border-left: 0; }
  .collection-grid > a:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: .45rem; padding-top: .75rem; }
  .language { grid-column: 2; grid-row: 1; }
  .primary { grid-column: 1 / -1; gap: .3rem clamp(.55rem, 3vw, 1.15rem); }
  .primary a { padding-bottom: .66rem; font-size: .83rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.8rem 2.15rem; }
  .hero h1 { font-size: clamp(1.76rem, 8.15vw, 3.4rem); }
  .lead { margin-block: 1rem 1.22rem; }
  .tool-head h2 { font-size: 1.65rem; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-step, .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .section-heading { display: block; margin-bottom: 1rem; }
  .section-heading h2 { margin-bottom: .42rem; }
  .article-grid { grid-template-columns: 1fr; }
  .find-inner, .catalog-heading { align-items: stretch; flex-direction: column; }
  .category-dropdown { width: 100%; }
  .category-dropdown ul { width: 100%; max-width: none; }
  .catalog-grid { gap: .62rem; }
  .catalog-grid article { padding: .78rem; }
  .catalog-grid h3 { overflow-wrap: anywhere; }
  .tools { padding-inline: .85rem; }
}
