/* Layout: two halves of one job. "Setting": a prong in cross-section with the seat depth and tip length the bench
   guides give. "Wear": a four-prong head in 3D through the stages of wear, with what to look for, what the bench
   does (retip or rehead) and how often to have it checked. */
:root {
  --paper: #ffffff; --ink: #16161a; --ink-soft: #3d3d45; --muted: #6b6b75; --rule: #e4e2de; --mist: #f4f3f1;
  --ruby: #9b1b30; --gold: #b8892f; --good: #2f7d4f; --care: #b7791f;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"] { --paper: #121216; --ink: #f1efe9; --ink-soft: #c9c6bf; --muted: #9a978f; --rule: #2c2c33; --mist: #1b1b21; --ruby: #e0566c; --gold: #e1b25a; --good: #5fbf86; --care: #e3a948; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; margin: 0; }
a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; padding-block: 20px 48px; display: grid; gap: 24px; }
header.top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ruby); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; flex: none; width: 4px; height: 15px; background: var(--gold); clip-path: polygon(0 24%, 100% 0, 100% 76%, 0 100%); }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.03; margin: 6px 0 0; }
h2.sec { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0; line-height: 1.1; }
.lede { max-width: 72ch; color: var(--ink-soft); margin: 6px 0 0; }
.prototype { font-size: 12px; color: var(--muted); border: 1px solid var(--rule); padding: 4px 10px; white-space: nowrap; }
.help { font-size: 12.5px; color: var(--muted); margin: 0; }
section.study { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 600 13px var(--font-body); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 6px 11px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--ruby); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--ruby); }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; align-content: start; }
.bench { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .bench { grid-template-columns: 1fr; } }
.stage3d { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 35%, #34343b, #121317); }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.stage3d .tip { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #c9c6bf; pointer-events: none; }
.stage3d .lab { position: absolute; right: 10px; top: 8px; font: 600 12px var(--font-body); color: #e9edf2; background: rgba(0,0,0,.45); padding: 3px 8px; }
.info { display: grid; gap: 12px; align-content: start; }
.info h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; margin: 0; line-height: 1.05; }
.status { display: inline-block; font: 600 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; }
.s-ok { color: var(--good); } .s-watch { color: var(--care); } .s-act { color: var(--ruby); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink-soft); }
.note { font-size: 13.5px; padding: 8px 10px; background: var(--mist); border-left: 3px solid var(--gold); margin: 0; }
.diagram { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .diagram { grid-template-columns: 1fr; } }
.diagram svg { width: 100%; height: auto; display: block; background: #f7f6f2; border: 1px solid var(--rule); }
.d-lab { font: 500 12px var(--font-body); fill: #3d3d45; }
.d-num { font: 500 12px var(--font-data); fill: #3d3d45; }
.guides { display: grid; gap: 8px; }
.guide { border: 1px solid var(--rule); padding: 10px 12px; font-size: 14px; color: var(--ink-soft); }
.guide b { color: var(--ink); display: block; font-size: 13px; }
.verd { font-weight: 600; }
.checks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.checks div { border-top: 2px solid var(--gold); padding-top: 8px; font-size: 14px; color: var(--ink-soft); }
.checks h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0 0 4px; color: var(--ink); }
.sources { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); max-width: 92ch; }
.sources p { margin: 0; }
/* jewelloop.net: one column that never grows wider than the screen */
.wrap { grid-template-columns: minmax(0, 1fr); }
.jl-table-scroll { overflow-x: auto; max-width: 100%; }
/* shown once the page's script has run (static/visual/ready.js): no jump while loading */
html:not(.jl-ready) .wrap { visibility: hidden; }

/* On jewelloop.net the page around it shows the title and the introduction. */
header.top { display: none !important; }
