:root {
  color-scheme: light;
  --paper: #fcfaf7;
  --paper-2: #f6f1ea;
  --card: #fffdfb;
  --ink: #221f1b;
  --ink-2: #4a453d;
  --line: #e4dcd1;
  --moss: #1f5c3e;
  --moss-soft: #e7f2eb;
  --rust: #6e3d28;
  --rust-soft: #f3ebe3;
  --sans: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --measure: 40rem;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--moss); }
a:hover { color: #143d29; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.mast { border-top: 4px solid var(--moss); border-bottom: 1px solid var(--line); }
.mast-row, .nav-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: baseline; justify-content: space-between; }
.mast-row { padding-top: 1.1rem; }
.brand { font-family: var(--sans); font-size: 1.45rem; margin: 0; letter-spacing: -0.02em; }
.brand a { color: var(--ink); text-decoration: none; }
.updated { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
nav { padding: 0.4rem 0 0.9rem; }
nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; padding: 0.7rem 0.1rem; min-height: 44px; display: inline-flex; align-items: center; }
nav a[aria-current="page"] { color: var(--moss); box-shadow: inset 0 -2px 0 var(--moss); }

main { padding: 2.2rem 0 3rem; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.35rem); margin: 0 0 0.8rem; max-width: 16em; }
h2 { font-size: 1.7rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0; }
.lede, .prose { max-width: var(--measure); }
.lede { font-size: 1.15rem; color: var(--ink-2); margin-top: 0; }

.disclosure {
  background: var(--rust-soft);
  border-left: 4px solid var(--rust);
  padding: 0.9rem 1rem;
  margin: 1.4rem 0 1.8rem;
  max-width: 46rem;
}
.disclosure p { margin: 0.35rem 0 0; }
.kicker {
  margin: 0 0 0.25rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
@media (min-width: 800px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice article, .entry, .note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
}
.choice h2 { font-size: 1.45rem; }
.choice h2 a { color: inherit; }
.choice ol { margin: 0.4rem 0 0.8rem; padding-left: 1.3rem; }
.more { font-weight: 650; }

.table-title { font-size: 1.35rem; margin: 1.6rem 0 0.7rem; max-width: 22em; }
.table-scroll { overflow-x: auto; margin: 0 0 1.6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; min-width: 58rem; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child, th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
.rank-num { font-family: var(--sans); font-size: 1.35rem; color: var(--moss); }
tr.rank-1 td:first-child { box-shadow: inset 3px 0 0 var(--moss); }
.tag, .link-note {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--ink-2);
  font-size: 0.82rem;
}
.tag { margin: 0.35rem 0 0; background: var(--paper-2); border-radius: 999px; padding: 0.1rem 0.55rem; }

.entries { display: grid; gap: 1rem; }
.entry-lead {
  background: var(--moss-soft);
  border-color: #c5ddcf;
  padding: 1.4rem 1.3rem 1.5rem;
}
.entry-lead .rank-num { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 0.9; }
.entry-head { display: flex; gap: 0.9rem; align-items: baseline; }
.entry dl { display: grid; gap: 0.55rem 1rem; margin: 1rem 0 0; }
@media (min-width: 700px) { .entry dl { grid-template-columns: 9rem 1fr; } }
.entry dt { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-top: 0.35rem; }
.entry dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; }
.outlink { display: inline-flex; gap: 0.35rem; align-items: baseline; padding: 0.35rem 0; }
.meta-line { color: var(--ink-2); font-size: 0.92rem; }

.notes { margin-top: 2rem; }
.note { margin-top: 0.8rem; }
.faq { margin-top: 2.2rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.7rem 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.prose h2 { margin-top: 1.8rem; }
.prose, .entry dd, .lede { overflow-wrap: break-word; }

.foot { border-top: 1px solid var(--line); padding: 1.4rem 0 2.4rem; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 0.7rem; }
.foot nav ul { padding: 0; }
.foot a { color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 1.5rem)); }
  h1 { max-width: none; }
  .updated { flex-basis: 100%; }
  nav ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.75rem; row-gap: 0; }
}
