/* Alguide: calm reference pages. Per-site --accent / --accent-soft / --accent-ink are printed in <head>. */
:root {
  --accent: #0f766e;
  --accent-soft: #e7f3f1;
  --accent-ink: #ffffff;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --ink: #17181c;
  --ink-2: #3d4049;
  --muted: #676b76;
  --line: #e5e4df;
  --focus: #2458d6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.strip { background: var(--ink); color: #c9ccd4; font-size: .8rem; text-align: center; padding: 8px 20px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 251, 249, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 14px; height: 30px; background: var(--accent); border-radius: 2px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.site-nav ul { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }

.doc-head { padding-block: 48px 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.doc-front .doc-head { padding-block: 64px 44px; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.doc-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; max-width: 22ch; }
.lead { margin-top: 18px; font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }

.doc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 44px 88px; }
.doc-body.has-toc { grid-template-columns: 250px minmax(0, 1fr); }
.doc-main { max-width: 740px; min-width: 0; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; border-left: 2px solid var(--line); padding-left: 18px; }
.toc-title { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
.toc a:hover { color: var(--accent); }

.answer { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 20px 22px; margin-bottom: 36px; border-radius: 0 4px 4px 0; }
.answer-label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.answer p + p { margin-top: 10px; }

.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.2; margin-top: 1.9em; }
.prose h3 { font-size: 1.12rem; font-weight: 600; margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose strong { color: var(--ink); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--accent-soft); font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose .note { font-size: .92rem; color: var(--muted); }
.prose .recipe { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; }
.prose figure { margin: 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--accent-soft); }
.prose figcaption { margin-top: 8px; font-size: .84rem; color: var(--muted); }
.prose .hero-figure { margin-bottom: 8px; }
.prose .recipe h3 { margin-top: 0; }

.faq { margin-top: 56px; }
.faq h2, .sources h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 2.6vw, 2rem); margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; min-height: 44px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq-a { padding-bottom: 18px; color: var(--ink-2); }
.faq-a p + p { margin-top: 8px; }

.sources { margin-top: 56px; font-size: .92rem; }
.sources ol { padding-left: 1.3em; margin: 0; display: grid; gap: 6px; }
.sources a { color: var(--ink-2); word-break: break-word; }
.checked { margin-top: 14px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; margin-top: 24px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; border-radius: 4px; }

.site-footer { background: var(--ink); color: #c9ccd4; padding-block: 48px 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.footer-note { max-width: 60ch; font-size: .88rem; color: #9ea2ad; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: #c9ccd4; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #8b8f9a; }

@media (max-width: 900px) {
  .doc-body.has-toc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; border-left: 0; border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; background: var(--surface); }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .doc-head, .doc-front .doc-head { padding-block: 36px 28px; }
  .site-nav ul { gap: 0 18px; }
}
