:root {
  --ink: #172320;
  --muted-ink: #52635e;
  --paper: #f5f2e9;
  --paper-deep: #ebe5d8;
  --white: #fffef9;
  --green: #173f37;
  --green-light: #dbe7de;
  --gold: #b68b3a;
  --rule: #cdc6b6;
  --max-width: 1180px;
  --reading-width: 760px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 8.4vw, 7.2rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: -999px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 32px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

main,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 700px;
  padding: 110px 32px 80px;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 72px;
  align-items: end;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.format {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dek {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
}

.edition-note {
  padding-top: 18px;
  border-top: 4px solid var(--green);
  color: var(--muted-ink);
  font-size: 0.82rem;
  line-height: 1.45;
}

.edition-note p {
  margin-bottom: 7px;
}

.edition-note strong {
  color: var(--ink);
}

.editorial-note {
  display: grid;
  padding: 64px 32px;
  background: var(--green);
  color: var(--white);
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 70px;
}

.editorial-note .eyebrow {
  color: #c8dcce;
}

.editorial-note h2 {
  max-width: 440px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.editorial-note p:last-child {
  margin-bottom: 0;
}

.editorial-note a {
  color: var(--white);
}

.definition {
  padding: 110px 32px;
  border-bottom: 1px solid var(--rule);
}

.definition h2 {
  max-width: 1040px;
}

.definition > p:last-child {
  max-width: var(--reading-width);
  margin-bottom: 0;
  color: var(--muted-ink);
}

.ranking {
  padding: 110px 32px 30px;
}

.section-heading {
  max-width: var(--reading-width);
  margin-bottom: 68px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.ranked-entry {
  display: grid;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 48px;
}

.ranked-entry-winner {
  margin: 0 -32px 52px;
  padding: 72px 32px;
  background: var(--white);
  border-top: 5px solid var(--gold);
  box-shadow: 0 22px 55px rgb(23 35 32 / 7%);
}

.rank-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rank-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 0.85;
}

.rank-label {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--muted-ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.entry-heading {
  display: flex;
  margin-bottom: 28px;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}

.entry-heading h3 {
  margin-bottom: 0;
}

.visit-link {
  flex: 0 0 auto;
  margin-top: 32px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.visit-link:hover {
  text-decoration: underline;
}

.entry-lede {
  max-width: 780px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  line-height: 1.4;
}

.entry-body > p:not(.entry-lede, .signal) {
  max-width: var(--reading-width);
}

.verdict-grid {
  display: grid;
  max-width: 860px;
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.verdict-grid p {
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 2px solid var(--rule);
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.verdict-grid strong {
  color: var(--ink);
}

.signal {
  max-width: 860px;
  margin: 34px 0 0;
  padding: 14px 18px;
  background: var(--green-light);
  color: #29453e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.signal a {
  font-weight: 700;
}

.methodology {
  padding: 110px 32px;
  background: var(--paper-deep);
}

.criteria-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  counter-reset: criterion;
  list-style: none;
}

.criteria-list li {
  display: grid;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: criterion;
  grid-template-columns: 50px minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: baseline;
}

.criteria-list li::before {
  color: var(--gold);
  content: counter(criterion, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.criteria-list span {
  color: var(--muted-ink);
}

.research-notes {
  display: grid;
  margin-top: 72px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.research-notes > div {
  padding-top: 18px;
  border-top: 3px solid var(--green);
}

.research-notes h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.research-notes p {
  margin-bottom: 0;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.about {
  max-width: 900px;
  padding: 120px 32px;
}

.about h2 {
  max-width: 760px;
}

.about > p:not(.eyebrow) {
  max-width: var(--reading-width);
  font-size: 1.08rem;
}

footer {
  display: grid;
  padding: 50px 32px 70px;
  border-top: 1px solid var(--rule);
  color: var(--muted-ink);
  font-size: 0.76rem;
  grid-template-columns: 1fr 2fr 0.7fr;
  gap: 44px;
}

footer p {
  margin-bottom: 0;
}

footer strong {
  color: var(--ink);
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 22px 20px;
  }

  .wordmark-text {
    max-width: 150px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 86px 20px 64px;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .edition-note {
    max-width: 320px;
  }

  .editorial-note {
    padding: 54px 20px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .definition,
  .ranking,
  .methodology,
  .about {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ranked-entry {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 28px;
  }

  .ranked-entry-winner {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .rank-number {
    font-size: 4.4rem;
  }

  .research-notes {
    grid-template-columns: 1fr;
  }

  footer {
    padding-right: 20px;
    padding-left: 20px;
    grid-template-columns: 1fr 1.5fr;
  }

  footer p:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 12.5vw, 3.3rem);
    overflow-wrap: break-word;
  }

  .site-header {
    align-items: flex-start;
  }

  .wordmark-mark {
    width: 38px;
    height: 38px;
  }

  .wordmark-text {
    display: none;
  }

  .site-header nav {
    padding-top: 9px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 70px;
  }

  .definition,
  .ranking,
  .methodology,
  .about {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .ranking {
    padding-bottom: 10px;
  }

  .ranked-entry,
  .ranked-entry-winner {
    display: block;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .ranked-entry-winner {
    margin-bottom: 30px;
  }

  .rank-column {
    margin-bottom: 34px;
  }

  .rank-number {
    font-size: 4rem;
  }

  .rank-label {
    margin-top: 12px;
  }

  .entry-heading {
    display: block;
  }

  .visit-link {
    display: inline-block;
    margin-top: 16px;
  }

  .verdict-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .criteria-list li {
    padding: 22px 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .criteria-list span {
    grid-column: 2;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
