:root { --ink: #1d1b18; --paper: #f5efe3; --card: #fffdf8; --line: #d8cdb8; --muted: #6a6055; --rust: #a8431b; --rust-dark: #8a3513; --iron: #2f2c28; --good: #2f6b3c; --bad: #9a2b22; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .brand { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0.4em 0 0.5em; }
h2 { font-size: 1.5rem; margin: 2em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 0.3em; }
h4 { margin: 0 0 0.3em; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
a { color: var(--rust-dark); }
p, ul, ol { margin: 0 0 1em; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 56px; }
header.site { background: var(--iron); color: #fff; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding: 12px 16px; }
header.site a { color: #f1e9dc; text-decoration: none; }
.brand { font-size: 1.3rem; font-weight: 700; margin-right: auto; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
header.site nav a[aria-current] { border-bottom: 2px solid #e58a5c; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 24px 16px; text-align: center; }
.hero { padding: 24px 0 8px; }
.hero p.lead, .lead { font-size: 1.15rem; max-width: 34em; }
.btn { display: inline-block; background: var(--rust); color: #fff; border: 2px solid var(--rust); border-radius: 6px; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn.ghost { background: transparent; color: var(--rust-dark); }
.btn.ghost:hover { background: #f0e2d4; }
.btn[disabled] { opacity: 0.6; }
button.link { background: none; border: 0; padding: 0; color: var(--rust-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.steps li::before { content: counter(s); display: block; font: 700 1.5rem Georgia, serif; color: var(--rust); }
.index { list-style: none; padding: 0; }
.index li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.index a { font-weight: 600; display: block; }
.index span, .fine, .help, figcaption { color: var(--muted); font-size: 0.9rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.src { font-size: 0.88rem; color: var(--muted); }
.cta { margin-top: 2em; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.95rem; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
figure { margin: 1.2em 0; text-align: center; }
.scene-image { text-align: left; }
.scene-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
.scene-image figcaption { margin-top: 0.4em; }
figure .diagram { width: 200px; }
.figrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.figrow figure { max-width: 200px; }
.diagram { width: 120px; height: auto; flex: none; }
.d-iron { fill: var(--iron); } .d-hole { fill: var(--paper); }
.d-ring { fill: none; stroke: #8c857b; stroke-width: 5; } .d-gap { fill: var(--iron); }
.d-hour { fill: var(--muted); font: 11px system-ui, sans-serif; text-anchor: middle; }
.d-num { fill: #f1e9dc; font: 700 20px Georgia, serif; text-anchor: middle; }
fieldset { border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin: 0 0 16px; padding: 8px 16px 16px; }
legend { font: 700 1.1rem Georgia, serif; padding: 0 6px; }
.field { margin-top: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="text"], select, textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid #b9ad97; border-radius: 6px; background: #fff; color: var(--ink); }
:focus-visible { outline: 3px solid #e58a5c; outline-offset: 2px; }
.help { margin: 4px 0 0; }
.photo { background: var(--card); border: 1px dashed #b9ad97; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
#preview { display: block; max-width: 100%; max-height: 420px; border-radius: 6px; margin: 12px 0; }
.verdict { border-radius: 8px; padding: 16px 18px; margin: 16px 0; border-left: 6px solid var(--muted); background: var(--card); }
.verdict h2 { margin: 0 0 0.3em; }
.verdict p { margin: 0; }
.v-likely { border-color: var(--good); } .v-possible { border-color: #b98a1c; } .v-none { border-color: var(--muted); }
.cand, .ref { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 16px 0; }
.cand.top { border-color: var(--iron); border-width: 2px; }
.cand-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.cand-head h3 { margin: 0 0 0.2em; font-size: 1.3rem; }
.tag { margin: 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rust-dark); }
.status { display: inline-block; font-size: 0.82rem; border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; color: var(--muted); }
.s-conjecture { border-color: var(--bad); color: var(--bad); }
.era { margin-bottom: 0.3em; }
.era-note { font-size: 0.92rem; }
.differ { font-size: 0.8rem; background: #f3e3b8; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.claims { font-size: 0.88rem; color: var(--muted); padding-left: 1.2em; }
.evgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1em; }
.ev { border-radius: 6px; padding: 10px 12px; background: #f6f1e6; font-size: 0.93rem; }
.ev ul { margin: 0; padding-left: 1.1em; }
.ev.yes h4 { color: var(--good); } .ev.no h4 { color: var(--bad); } .ev.open h4 { color: var(--muted); }
.distinguish, .caution, .next { background: #f8ecd0; border-radius: 6px; padding: 10px 14px; }
.next h3 { margin-top: 0; } .next ul { margin: 0; padding-left: 1.2em; }
.yours { margin: 12px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.note { margin-top: 12px; }
.saved { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.saved img, .nothumb { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; background: var(--iron); flex: none; }
.saved h3 { margin: 0; }
.feat { font-size: 0.95rem; }
@media (max-width: 520px) { .cand-head .diagram { width: 84px; } body { font-size: 16px; } }
