:root { color-scheme: light; --paper:#F8F5EF; --ink:#292E29; --muted:#62675E; --clay:#9F503A; --sage:#E5E9DE; --line:#DEDCD3; --card:#FFFDFA; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.7 -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: var(--clay); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
nav a { margin-left: 22px; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--clay); }
main { max-width: 720px; margin: 0 auto; padding: 16px 0 40px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.eyebrow { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(36px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -1px; margin: 10px 0 14px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 29px; letter-spacing: -0.4px; line-height: 1.2; margin: 44px 0 10px; }
h3 { font-size: 19px; margin: 26px 0 4px; }
.lede { font-size: 21px; color: var(--muted); margin: 0 0 26px; }
.short { background: var(--sage); border-radius: 18px; padding: 18px 22px; margin: 0 0 8px; }
.short ul { margin: 6px 0 0; padding-left: 20px; } .short li { margin: 3px 0; }
ol.steps { padding-left: 0; list-style: none; counter-reset: s; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 46px; margin: 18px 0; }
ol.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--clay); background: rgba(159,80,58,.08); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
.fig { margin: 26px 0; }
.fig svg { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line); }
.fig.small svg { max-width: 460px; }
.fig figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
svg .lbl { font: 600 13px -apple-system, Helvetica, Arial, sans-serif; fill: #62675E; letter-spacing: .3px; }
svg .dim { font: 700 15px -apple-system, Helvetica, Arial, sans-serif; fill: #9F503A; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.thumbs .fig { margin: 0; } .thumbs figcaption { font-size: 14px; text-align: center; }
table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 500; background: #FBF8F2; }
tr:last-child td { border-bottom: 0; }
.math { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.math p { margin: 4px 0; }
.note { font-size: 15px; color: var(--muted); }
.cta { display: flex; gap: 22px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid rgba(159,80,58,.45); border-radius: 22px; padding: 22px 24px; margin: 40px 0; }
.cta-h { font-family: Georgia, serif; font-size: 23px; line-height: 1.25; margin: 6px 0 6px; }
.cta-s { margin: 0; font-size: 15px; color: var(--muted); }
.badge { flex: none; line-height: 0; }
.badge img { height: 50px; width: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.related ul { padding-left: 20px; columns: 2; column-gap: 32px; } .related li { margin: 4px 0; break-inside: avoid; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: rgba(159,80,58,.5); }
.card h3 { margin: 0 0 6px; font-family: Georgia, serif; font-weight: 400; font-size: 22px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }
@media (max-width: 720px) {
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .related ul { columns: 1; }
  nav a { margin-left: 14px; }
  table { font-size: 14px; } th, td { padding: 8px 10px; }
}
@media (max-width: 480px) { nav a:first-child { display: none; } }
