:root {
  --paper: #F4F1EA;
  --surface: #FBF9F4;
  --ink: #171512;
  --support: #6E6963;
  --gold: #8A6C33;
  --border: #C9C2B2;
  --rule: #DDD7C8;
  --gold-soft: rgba(138, 108, 51, 0.28);
  --fashion: #8A7F68; --jewelry: #9A7A22; --beauty: #A05B4C; --watches: #4E6B78;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --heading: "Marcellus", "Bodoni Moda", Georgia, serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.55; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
a:hover, a:focus-visible { border-bottom-color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2 { font-family: var(--heading); font-weight: 400; letter-spacing: 0.01em; margin: 0; }
h3, .display { font-family: var(--display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; margin-top: 3.2rem; }
h3 { font-size: 1.25rem; line-height: 1.25; margin-top: 2rem; }
p { max-width: var(--measure); margin: 1rem 0 0; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.muted { color: var(--support); }
.small { font-size: 0.92rem; }

/* header */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding: 1.6rem 0 1.2rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; border: 0; color: var(--ink); }
.wordmark span { font-weight: 400; font-style: italic; color: var(--gold); }
.nav { display: flex; gap: 1.6rem; font-size: 0.95rem; flex-wrap: wrap; }
.nav a { border: 0; color: var(--support); }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 4rem 0 2.6rem; }
.hero .lede { font-size: 1.2rem; margin-top: 1.4rem; }
.byline { margin-top: 1.6rem; color: var(--support); font-size: 0.98rem; }
.byline a { color: var(--ink); }
.edition { margin-top: 0.6rem; color: var(--support); font-size: 0.92rem; }

/* controls */
.controls { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 1.4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 1.4rem; }
.controls input, .controls select { background: var(--surface); color: var(--ink); border: 1px solid var(--border); padding: 0.55rem 0.8rem; font: inherit; font-size: 0.95rem; border-radius: 0; }
.controls input { min-width: 14rem; }
.tiers { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--support); font-size: 0.9rem; margin-left: auto; }
.tiers b { color: var(--ink); font-weight: 500; }
.legend { margin: 0.9rem 0 0; }
.legend .named { color: var(--gold); font-style: italic; }

/* ranking rows */
.row { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 0 1.6rem; padding: 1.55rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.row.thin .verdict::after { content: " Thin reading."; color: var(--support); }
.rank { font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--gold); }
.house { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.house a { border: 0; }
.tags { color: var(--support); font-size: 0.88rem; margin-top: 0.3rem; }
.tags .named { color: var(--gold); font-style: italic; }
.tags .fashion { color: var(--fashion); } .tags .jewelry { color: var(--jewelry); } .tags .beauty { color: var(--beauty); } .tags .watches { color: var(--watches); }
.verdict { margin: 0.7rem 0 0; max-width: 72ch; }
.score { text-align: right; min-width: 9.5rem; }
.score .n { font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.score .t { color: var(--support); font-size: 0.88rem; margin-top: 0.15rem; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1rem; }
.lenses { margin-top: 0.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; font-size: 0.78rem; color: var(--support); }
.lens i { display: block; height: 2px; background: var(--rule); margin-top: 0.3rem; position: relative; }
.lens i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--gold); }
.lens b { color: var(--ink); font-weight: 400; }
.row[hidden] { display: none; }
.empty { padding: 3rem 0; color: var(--support); }

/* sections */
.section { padding: 1rem 0 3rem; }
.section p, .section li { max-width: var(--measure); }
.section ul { padding-left: 1.2rem; }
.section li { margin-top: 0.5rem; }
.rev { border-top: 1px solid var(--rule); padding: 1rem 0; }
.rev b { font-weight: 500; }
.banner { background: var(--surface); border: 1px solid var(--gold-soft); padding: 0.9rem 1.1rem; margin: 1.6rem 0 0; font-size: 0.95rem; }
.definition dt { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin-top: 1.8rem; }
.definition dd { margin: 0.4rem 0 0; max-width: var(--measure); }
.cite { border-left: 2px solid var(--gold); padding: 0.4rem 1rem; margin-top: 1rem; max-width: var(--measure); font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.1rem; }
.cite i { font-style: normal; font-weight: 700; }
.download a { margin-right: 1.4rem; }

/* footer */
.foot { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 0 3rem; color: var(--support); font-size: 0.92rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot a { color: var(--ink); border: 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 3rem 1fr; }
  .score { grid-column: 2; text-align: left; margin-top: 0.8rem; display: flex; gap: 1.2rem; align-items: baseline; flex-wrap: wrap; }
  .lenses { width: 100%; }
  .rank { font-size: 1.7rem; }
  .house { font-size: 1.35rem; }
  .score .n { font-size: 1.7rem; }
  .tiers { margin-left: 0; }
}
@media print { .controls, .nav { display: none; } }
