/* Shared styles for writing pages — tokens match index.html */
:root {
  --bg: #f2f1ee; --bg-sunken: #e9e8e4;
  --ink: #101014; --ink-strong: #000; --muted: #1010149e; --faint: #1010146b;
  --line: #10101429; --line-strong: #10101466;
  --accent: #2bb59a; --accent-ink: #13715f;
  --invert-bg: #101014; --invert-fg: #f2f1ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316; --bg-sunken: #060607;
    --ink: #f2f1ee; --ink-strong: #fff; --muted: #f2f1ee99; --faint: #f2f1ee61;
    --line: #f2f1ee26; --line-strong: #f2f1ee66;
    --accent-ink: #4fd1b5; --invert-bg: #fff; --invert-fg: #0b0b0c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121316; --bg-sunken: #060607;
  --ink: #f2f1ee; --ink-strong: #fff; --muted: #f2f1ee99; --faint: #f2f1ee61;
  --line: #f2f1ee26; --line-strong: #f2f1ee66;
  --accent-ink: #4fd1b5; --invert-bg: #fff; --invert-fg: #0b0b0c;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hud-label { font-family: "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; font-size: .6875rem; font-weight: 500; color: var(--muted); }

nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Archivo", sans-serif; font-stretch: 118%; font-weight: 800; font-size: 17px; }
.logo-mark { position: relative; width: 28px; height: 28px; display: grid; place-items: center; padding-right: 3px; background: #121316; color: #f2f1ee; border: 1px solid rgba(242,241,238,.18); border-radius: 6px; font-size: 12px; font-weight: 900; letter-spacing: -0.04em; }
.logo-mark::after { content: ""; position: absolute; right: 2px; top: 15px; width: 4px; height: 4px; border-radius: 50%; background: #2bb59a; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.back { text-decoration: none; font-size: 14px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); transition: background-color .15s, color .15s; }
.back:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: transparent; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; } :root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }

article { max-width: 720px; margin: 0 auto; padding: 90px 24px 40px; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; }
.meta .kind { color: var(--accent-ink); }
h1 { font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(40px, 7vw, 72px); color: var(--ink-strong); margin: 22px 0 22px; }
.lede { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; color: var(--muted); }
figure.cover { max-width: 1040px; margin: 60px auto 10px; padding: 0 24px; }
figure.cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 85vh; margin: 0 auto; }  /* never crop covers */
figure.cover figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.body { font-family: "Source Serif 4", Georgia, serif; font-size: 20px; line-height: 1.7; }
.body p { margin: 0 0 1.25em; }
.body > ul { list-style: none; margin: 0 0 1.4em; display: grid; gap: .7em; }
.body > ul > li { position: relative; padding-left: 24px; }
.body > ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.body p:first-child::first-letter { font-family: "Archivo", sans-serif; font-weight: 800; float: left; font-size: 3.4em; line-height: .85; padding: 6px 10px 0 0; color: var(--ink-strong); }
.body h2 { font-family: "Archivo", sans-serif; font-stretch: 110%; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; margin: 1.8em 0 .6em; }
.body blockquote { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 30px; line-height: 1.25; color: var(--accent-ink); border-left: 2px solid var(--accent); padding-left: 22px; margin: 1.4em 0; }
.body em { font-style: italic; }
.sign { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 24px; color: var(--muted); margin-top: 1.5em; }

.next { max-width: 720px; margin: 40px auto 0; padding: 0 24px 90px; }
.next a { display: block; text-decoration: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 16px; transition: background-color .15s, color .15s; }
.next a:hover { background: var(--invert-bg); color: var(--invert-fg); }
.next a:hover .hud-label { color: color-mix(in srgb, var(--invert-fg) 65%, transparent); }
.next strong { display: block; font-family: "Archivo", sans-serif; font-stretch: 110%; font-size: 26px; margin-top: 8px; }
footer { border-top: 1px solid var(--line); padding: 28px 24px; text-align: center; }

@media (max-width: 600px) {
  .nav-in, article, figure.cover, .next { padding-left: 16px; padding-right: 16px; }
  article { padding-top: 60px; }
  .body { font-size: 18px; }
}

/* ---------- Reviews ---------- */
.body figure.inline { margin: 2em 0; }
.body figure.inline img { width: 100%; display: block; background: #fff; }
.body figure.inline figcaption { margin-top: 10px; font-family: "Geist Mono", ui-monospace, monospace; font-size: .6875rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.verdict { border: 1px solid var(--line-strong); padding: 26px 28px; margin: 2em 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; font-family: "Inter", sans-serif; }
.verdict .score { grid-row: span 2; font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: 64px; line-height: 1; color: var(--accent-ink); }
.verdict .score small { font-size: 22px; color: var(--muted); }
.verdict strong { font-family: "Archivo", sans-serif; font-size: 20px; }
.verdict p { margin: 0 !important; font-size: 16px; color: var(--muted); line-height: 1.5; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 2em 0; font-family: "Inter", sans-serif; }
.proscons > div { border: 1px solid var(--line); padding: 22px 24px; }
.proscons h3 { font-family: "Geist Mono", ui-monospace, monospace; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px; }
.proscons .pros h3 { color: #3fae6a; } .proscons .cons h3 { color: #e0634f; }
.proscons ul { list-style: none; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.proscons li { padding-left: 22px; position: relative; }
.proscons .pros li::before { content: "+"; position: absolute; left: 0; color: #3fae6a; font-weight: 700; }
.proscons .cons li::before { content: "−"; position: absolute; left: 0; color: #e0634f; font-weight: 700; }
table.specs { width: 100%; border-collapse: collapse; margin: 1.2em 0 2em; font-family: "Inter", sans-serif; font-size: 15px; line-height: 1.45; }
table.specs th, table.specs td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
table.specs th { width: 30%; font-family: "Geist Mono", ui-monospace, monospace; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding-top: 15px; }
table.specs .mine { color: var(--accent-ink); font-weight: 600; }
.specs-note { font-family: "Inter", sans-serif; font-size: 13px !important; color: var(--faint); }
@media (max-width: 600px) {
  .proscons { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; } .verdict .score { grid-row: auto; }
  table.specs th { width: 38%; }
}
.body a.buy { display: inline-block; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 500; text-decoration: none; padding: 14px 22px; background: var(--accent); color: #06201a; font-weight: 600; transition: background-color .15s, color .15s; }
.body a.buy:hover { background: var(--invert-bg); color: var(--invert-fg); }
