@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

:root {
  --bg: #f7f2eb;
  --paper: #fffdf9;
  --ink: #34241b;
  --muted: #6f5d50;
  --accent: #b07040;
  --line: #e6dccf;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 "DM Sans", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; border-radius: 14px; }
a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font: 700 20px "Playfair Display", serif; color: var(--ink); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 18px; }

h1, h2, h3 { font-family: "Playfair Display", serif; line-height: 1.2; }
h1 { font-size: clamp(32px, 6vw, 46px); margin: 36px 0 12px; }
h2 { font-size: 30px; margin: 48px 0 10px; scroll-margin-top: 16px; }
h3 { font-size: 21px; margin: 26px 0 6px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 32px; }
.lede { font-size: 20px; color: var(--muted); }
.note { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 15px; color: var(--muted); }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 22px; }
.toc ol { margin: 6px 0; padding-left: 20px; }
figure { margin: 22px 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }

ul.check { list-style: none; padding-left: 0; }
ul.check li { padding-left: 28px; position: relative; margin: 6px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
ul.skip li::before { content: "✕"; }

footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
