:root {
  color-scheme: light;
  --bg: #f5efe0;
  --card: #fffaf0;
  --ink: #1d1a14;
  --mute: #5e574a;
  --accent: #d9481c;
  --highlight: #f2c94c;
  --line: #1d1a14;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 Georgia, "Times New Roman", serif; }
a { color: inherit; }
h1, h2, h3, nav, .mono, .tag, .meta, button { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0; }
.logo { font: 700 17px ui-monospace, Menlo, monospace; text-decoration: none; }
nav { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
nav a { padding: 6px 12px; text-decoration: none; border: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-color: var(--line); background: var(--highlight); }
.hero { padding: 36px 0 24px; border-top: 2px solid var(--line); }
h1 { margin: 10px 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.15; }
h1 span { background: var(--highlight); padding: 0 6px; }
h2 { font-size: 22px; }
.lead, .dek { max-width: 680px; color: var(--mute); }
.tag { display: inline-block; padding: 2px 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 12px; }
.tag.highlight { background: var(--highlight); }
.meta { color: var(--mute); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 22px; padding: 18px 0 40px; }
.card { display: flex; flex-direction: column; border: 2px solid var(--line); background: var(--card); box-shadow: 5px 5px 0 var(--line); text-decoration: none; }
.card[hidden] { display: none; }
.card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--line); }
.body { padding: 18px 20px 20px; }
.card h2, .card h3 { margin: 8px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--mute); }
.chips, .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { margin: 10px 0; }
button { padding: 6px 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
button[aria-pressed="true"], button:hover { background: var(--ink); color: var(--bg); }
.thumb { display: grid; height: 160px; place-items: center; padding: 16px; border-bottom: 2px solid var(--line); background: var(--tile, var(--highlight)); color: #1d1a14; font: 700 16px ui-monospace, Menlo, monospace; }
.thumb img { display: block; max-width: 100%; max-height: 128px; width: auto; height: auto; object-fit: contain; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; }
.actions a { padding: 8px 14px; border: 2px solid var(--line); background: var(--card); box-shadow: 3px 3px 0 var(--line); text-decoration: none; font: 14px ui-monospace, Menlo, monospace; }
.actions a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.actions a.primary { background: var(--accent); color: #fff; }
.article figure.logo-figure img { width: auto; max-width: 100%; margin: 0 auto; padding: 28px; background: #fff8e1; }
.figure-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.figure-pair figure { margin: 0; }
.tags { margin-top: 12px; }
.article { max-width: 700px; margin: 0 auto; padding: 26px 0 56px; border-top: 2px solid var(--line); }
.article h2 { margin: 36px 0 12px; }
.article h3 { margin: 24px 0 6px; font-size: 16px; }
.article p, .article li { margin: 0 0 14px; }
.article ul { padding-left: 22px; }
.article .does { padding: 0; list-style: none; }
.does li { display: flex; align-items: flex-start; gap: 14px; }
.does img { flex: none; width: 28px; height: 28px; }
figure { margin: 28px 0; }
figure img { display: block; width: 100%; height: auto; border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--line); }
figcaption, .note { margin-top: 10px; color: var(--mute); font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; border-bottom: 1.5px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 13px; }
code { padding: 1px 5px; border: 1px solid var(--line); background: var(--card); font: 14px ui-monospace, Menlo, monospace; }
footer { padding: 26px 0 40px; border-top: 2px solid var(--line); color: var(--mute); text-align: right; font-size: 14px; }
