:root {
  color-scheme: light;
  --ink: #211624;
  --muted: #5e5260;
  --paper: #faf7f3;
  --card: #fffdfa;
  --line: #e8ddd9;
  --plum: #221427;
  --orange: #ff912f;
  --accent: #9d3800;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', Arial, sans-serif;
  --radius: 13px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a44700; outline-offset: 4px; }
.masthead :focus-visible, .hero :focus-visible, .footer :focus-visible, .newsletter :focus-visible { outline-color: #ffc275; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3.editorial { font-family: var(--display); letter-spacing: -.032em; }
h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.14; }
h3 { line-height: 1.2; }
.wrap { width: min(100% - 40px, 1440px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 10; padding: 10px 16px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { background: #17101b; color: #fff8f0; }
.masthead-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-block: 12px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font: bold clamp(1.45rem, 2.3vw, 2rem)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.brand em { color: var(--orange); font-style: normal; }
.brand img { flex: none; width: 38px; height: 38px; }
.brand > .icon { width: 1.4em; height: 1.4em; font-size: .95em; }
.site-search { display: flex; flex: 1; max-width: 570px; margin-inline: auto; min-width: 180px; }
.site-search input { width: 100%; padding: 9px 12px; border: 0; border-radius: 8px 0 0 8px; background: #f9f4f1; color: var(--ink); min-width: 0; }
.site-search button { display: grid; place-items: center; width: 48px; flex: none; border: 0; border-radius: 0 8px 8px 0; background: var(--orange); color: #241326; }
.icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; font: 700 1.35rem/1 var(--body); }
.icon svg { width: 100%; height: 100%; }
.site-search .icon { width: 20px; height: 20px; }
.nav { background: #211628; border-block: 1px solid #392941; }
.nav ul { margin-block: 0; padding: 0; list-style: none; display: flex; justify-content: space-between; overflow-x: auto; }
.nav a { display: flex; height: 43px; align-items: center; justify-content: center; padding-inline: 12px; font-size: .86rem; font-weight: 650; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--orange); color: #ffac61; }
.nav a:focus-visible { outline-offset: -4px; }
.nav .icon { width: 18px; height: 18px; }
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 236px; padding: 22px 20px 25px; text-align: center; color: #fff8f1; background: #27172e; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: fill; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #150d1b18, #190f22a8 31%, #190f22a8 69%, #150d1b21); }
.hero h1 { font-size: clamp(2.65rem, 4.4vw, 4.15rem); font-weight: 700; line-height: 1.03; text-shadow: 0 3px 20px #130818c9; }
.hero h1 span { color: #ffa044; }
.hero p { max-width: 550px; margin: 16px auto 23px; color: #fff5eb; font-size: clamp(.95rem, 1.3vw, 1.09rem); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; background: var(--orange); color: #221222; font-weight: 750; line-height: 1.2; text-align: center; }
.button:hover { background: #ffac60; }
.button.outline { border-color: #f6dfef; background: #23152aa6; color: #fff8f1; }
.button.outline:hover { background: #3d2649; }
.button .icon { width: 18px; height: 18px; }
.home { display: grid; gap: 20px; padding-block: 18px 24px; }
.main-column, .reading-column, .sidebar { min-width: 0; display: grid; gap: 18px; align-content: start; }
.categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.category { position: relative; isolation: isolate; display: grid; align-items: end; min-width: 0; min-height: 96px; border-radius: 10px; overflow: hidden; background: #33213b; color: white; text-align: center; }
.category img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.category span { z-index: 1; padding: 6px 3px; background: #24132be8; font-size: .78rem; font-weight: 700; }
.category:hover span { color: #ffc180; }
.panels { display: grid; gap: 18px; }
.block { min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.heading { display: flex; align-items: center; gap: 8px; }
.heading > .icon { color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.section-head p, .panel p { color: var(--muted); font-size: .87rem; }
.section-head p { margin-top: 4px; }
.more { color: var(--accent); font-size: .83rem; font-weight: 750; }
.more:hover, .mini-list a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guide, .resource, .tool, .panel { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.guide { display: grid; grid-template-rows: auto 1fr; }
.guide img { aspect-ratio: 1.65; width: 100%; background: #321e39; }
.guide-body { display: grid; align-content: start; gap: 6px; padding: 9px 10px 11px; }
.guide h3 { font-size: 1.1rem; }
.guide p { color: var(--muted); font-size: .81rem; line-height: 1.36; }
.guide a:hover { color: var(--accent); }
.resource { display: grid; text-align: center; background: #f1e9e9; align-content: start; }
.resource img { width: 100%; aspect-ratio: 2.15; object-fit: contain; background: #f7eee6; }
.resource span { padding: 7px 4px; font-weight: 750; font-size: .84rem; }
.resource:hover span { color: var(--accent); }
.tool { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; background: #f2ebef; }
.tool h3 { font-size: .9rem; }
.tool .heading { align-items: flex-start; }
.tool p { font-size: .78rem; line-height: 1.35; color: var(--muted); }
.tool .button { margin-top: auto; align-self: stretch; font-size: .76rem; padding-inline: 5px; min-height: 34px; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; width: 100%; text-align: center; }
.timer strong { display: block; background: #e8dbe9; border-radius: 4px; font: 700 .92rem/1.6 var(--body); }
.timer small { font-size: .62rem; }
.panel { padding: 13px; }
.panel.medium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(72px, 35%); gap: 10px; align-items: center; }
.panel.medium img { width: 100%; height: 100%; max-height: 135px; min-height: 96px; border-radius: 9px; background: #33213b; }
.panel p { margin-block: 7px 9px; }
.faq details { margin-top: 6px; border: 1px solid #e7dce4; border-radius: 8px; background: #f7f2f3; }
.faq summary { min-height: 41px; padding: 9px; cursor: pointer; font-size: .86rem; font-weight: 720; }
.faq details p { padding: 0 10px 9px; margin: 0; }
.newsletter { color: #fff8f1; background: radial-gradient(ellipse at 95% 10%, #5b325f, #2a1530 66%); border-color: #472650; }
.newsletter .heading .icon, .newsletter p { color: #f9e7f5; }
.newsletter .heading { align-items: start; }
.newsletter h2 { font-size: 1.42rem; }
.newsletter .button { width: 100%; }
.mini-list { padding: 0; margin: 9px 0 0; list-style: none; }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding-block: 7px; font-size: .82rem; font-weight: 680; }
.mini-list img { width: 63px; height: 41px; border-radius: 6px; background: #33213b; }
.mini-list.simple a { display: flex; justify-content: space-between; }
.mini-list.simple span { color: var(--accent); }
.footer { color: #f4e7f4; background: #1f1625; padding: 24px 0 12px; }
.footer p, .footer li, .copyright { font-size: .83rem; }
.footer p { margin-top: 9px; max-width: 300px; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer h2 { color: #ffab65; font: 750 .95rem var(--body); letter-spacing: 0; }
.footer ul { list-style: none; margin: 5px 0 0; padding: 0; }
.footer li { padding: 3px 0; }
.copyright { margin-top: 18px; border-top: 1px solid #54424f; padding-top: 10px; color: #dac8d8; }
.inside { min-height: 60vh; padding-block: 24px 44px; }
.breadcrumb { margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '›'; margin-inline-end: 9px; }
.page-intro { margin-bottom: 22px; max-width: 750px; }
.page-intro h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1.01; margin-bottom: 12px; }
.page-intro p { color: var(--muted); font-size: 1.13rem; }
.page-grid { max-width: 1050px; }
.article { max-width: 810px; }
.article-image { width: 100%; max-height: 330px; border-radius: var(--radius); background: #33213b; }
.article .prose { padding-top: 8px; max-width: 700px; }
.prose h2 { margin-block: 20px 8px; }
.prose p { margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; }
.topic + .topic { margin-top: 35px; }
.topic h2 { margin-bottom: 12px; }
.editorial-card { display: block; }
.editorial-card:focus-visible { outline-offset: -4px; }
.editorial-card:hover h3 { color: var(--accent); }
.editorial-page, .editorial-page .page-intro { margin-inline: auto; }
.editorial-page .page-intro { max-width: none; }
.editorial-page .page-intro .draft-label { color: var(--accent); font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); margin-top: 14px; font-size: .91rem; }
.byline a { text-decoration: underline; text-underline-offset: 3px; }
.cover { margin: 0 0 22px; }
.cover img { width: 100%; height: auto; border-radius: var(--radius); background: var(--plum); }
.cover-printable { max-width: 380px; margin-inline: auto; }
.cover-printable img { border: 1px solid var(--line); background: white; }
.article-gallery h2 { margin-bottom: 12px; }
.cover figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.article-toc, .article-related, .recipe { margin-block: 18px 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.article-toc summary { cursor: pointer; font-weight: 700; }
.article-toc ul, .article-related ul, .recipe ul, .recipe ol { padding-inline-start: 24px; margin-bottom: 0; }
.recipe ol { margin-bottom: 8px; }
.recipe h2 { margin-top: 18px; }
.recipe dl { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 0; margin: 0; }
.recipe dt { color: var(--muted); font-size: .9rem; }
.recipe dd { margin: 0; font-weight: 700; }
.article-toc li + li, .article-related li + li, .recipe li + li, .prose li + li { margin-top: 5px; }
.article-toc a, .article-related a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.editorial-page .prose { max-width: 72ch; line-height: 1.7; overflow-wrap: anywhere; }
.prose h3 { margin-block: 17px 6px; }
.prose ul, .prose ol { padding-inline-start: 23px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 26px; }
.table-scroll { overflow-x: auto; margin-block: 16px; }
.table-scroll table { width: 100%; min-width: 32rem; border-collapse: collapse; }
.table-scroll :is(th, td) { padding: 8px 10px; border: 1px solid var(--line); text-align: start; }
.table-scroll th { background: #f2ebef; }
.results { padding: 0; list-style: none; }
.results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 740; color: var(--accent); text-decoration: underline; }
dialog { padding: 0; width: min(100% - 32px, 520px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
dialog::backdrop { background: #1c1025a8; }
.dialog-content { display: grid; gap: 12px; padding: 20px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head button { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: white; }
.dialog-content form { display: grid; gap: 10px; }
.dialog-content label { display: grid; gap: 3px; font-weight: 680; }
.dialog-content input, .dialog-content select { width: 100%; color: var(--ink); background: white; border: 1px solid #997f98; border-radius: 6px; padding: 7px; min-height: 40px; }
.dialog-content output { min-height: 24px; }
.dialog-content canvas { display: block; width: 100%; max-height: 35vh; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 540px) {
  .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}
@media (min-width: 740px) {
  .categories { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .home { grid-template-columns: minmax(0, 1fr) minmax(225px, 19%); }
  .panels { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  .category { min-height: clamp(96px, 8vw, 126px); }
  .sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 739px) {
  .hero-art img { object-fit: cover; }
  .hero::before { background: #1c11267d; }
}
@media (max-width: 539px) {
  .wrap { width: calc(100% - 28px); }
  .masthead-row { flex-direction: column; align-items: stretch; }
  .site-search { margin-inline: 0; max-width: none; }
  .nav ul { width: 100%; padding-inline: 4px; }
  .hero { min-height: 345px; }
  .hero::before { background: #1c11269c; }
  .hero-art img { object-position: 44% center; }
}
@media (prefers-reduced-motion: no-preference) {
  .category img { transition: scale .2s ease; }
  .category:hover img { scale: 1.06; }
}
