:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1b1a18;
  --ink-2: #3f3c36;
  --ink-3: #55514a;
  --line: #dedad2;
  --pro: #2f5a3a;
  --con: #8a3d26;
  --accent: #94601f;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; margin-bottom: 6px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.mark { font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a { font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 10px 12px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
.top-nav a:hover, .top-nav a.active { background: var(--ink); color: #fff; }

/* Sections */
.intro { padding: 32px 0 8px; max-width: 760px; }
.intro p { margin: 8px 0 0; color: var(--ink-2); }
.block { padding: 36px 0 8px; }
.block > h2 { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.block > h3 { margin: 28px 0 6px; }
.note { margin: 0 0 12px; color: var(--ink-3); font-size: 1rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 1rem; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-weight: 650; background: #efede8; white-space: nowrap; }
thead th a { text-decoration: none; }
tbody th { font-weight: 600; width: 220px; }
td.num { font-variant-numeric: tabular-nums; }

/* Ranking */
table.rank td { vertical-align: middle; }
.rank-n { font-size: 1.6rem; font-weight: 700; width: 48px; text-align: center; }
.rank-name { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.rank-name .thumb { flex: none; width: 120px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.rank-name .thumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.rank-name div { display: grid; gap: 2px; }
.rank-name b { font-size: 1.1rem; }
.rank-score { width: 120px; }
.rank-score b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 6px; background: #e8e4dc; border-radius: 3px; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ext { font-size: 0.95rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* Scorecard */
table.score { table-layout: fixed; }
table.score td.sc { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; border: 2px solid var(--surface); vertical-align: middle; }
table.score td.top { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
table.score th small { display: block; font-size: 0.9rem; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
table.score tr.total td { text-align: center; font-size: 1.3rem; font-weight: 700; vertical-align: middle; }
table.score tr.total td.top { box-shadow: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Concepts */
.concept { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.concept-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.concept-head h3 { display: flex; align-items: center; gap: 10px; }
.rank-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1rem; }
.concept-score { font-weight: 650; font-variant-numeric: tabular-nums; }
.concept-head .ext { margin-left: auto; }
.concept-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.shots { display: grid; grid-template-columns: 1fr 26%; gap: 10px; align-items: start; }
.shots img { border: 1px solid var(--line); border-radius: 4px; }
.shot-d img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-m img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.concept-line { margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 1rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.swatches { display: flex; gap: 6px; align-items: center; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.2); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols ul { margin: 0; padding-left: 18px; font-size: 1rem; color: var(--ink-2); display: grid; gap: 4px; }
h4.pro { color: var(--pro); } h4.con { color: var(--con); }

/* Stretches */
.figures-list { display: grid; gap: 14px; }
.fig-row { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.fig-row figcaption { display: grid; gap: 4px; }
.fig-row figcaption span { color: var(--ink-2); font-size: 1rem; }
.fig-row img { width: 100%; border-radius: 4px; }

/* Recommendation */
.choose { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 900px; }

.foot { margin-top: 40px; border-top: 1px solid var(--line); padding: 20px 0; font-size: 0.95rem; color: var(--ink-3); }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .concept-body { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  table.rank { min-width: 0; }
  table.rank thead { display: none; }
  table.rank tbody { display: block; }
  table.rank tr { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px; border-top: 1px solid var(--line); }
  table.rank tr:first-child { border-top: 0; }
  table.rank td { border: 0; padding: 0; }
  table.rank td:nth-child(4), table.rank td:nth-child(5) { grid-column: 1 / -1; }
  table.rank td:nth-child(5)::before { content: 'Best for: '; font-weight: 600; }
  .rank-n { width: auto; font-size: 1.3rem; }
  .rank-name { min-width: 0; }
  .rank-name .thumb { width: 72px; }
  .rank-name .ext { display: none; }
  .rank-score { width: 64px; }
  .top-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .fig-row { grid-template-columns: 1fr; }
  .fig-scroll { overflow-x: auto; }
  .fig-row img { width: 720px; max-width: none; }
  .concept-head .ext { margin-left: 0; }
}
