/* Standalone editorial comparison pages. These styles intentionally do not
   depend on the navigation or JavaScript used by the KOI home page. */
:root {
  --ink: #17130f;
  --paper: #f7f1e8;
  --surface: #fffdf9;
  --warm: #e05a20;
  --warm-dark: #9c3512;
  --muted: #6b625a;
  --line: #ded2c4;
  --gold: #f4ca75;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: var(--warm-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--warm); }

.site-label,
.eyebrow,
.rank,
.meta,
.tag,
.skip-link,
.article-footer {
  font-family: "Space Mono", "Courier New", monospace;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.84);
}

.masthead-inner,
.article,
.article-footer-inner {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
}

.masthead-inner { padding: 1.05rem 0; }

.site-label {
  margin: 0;
  color: var(--warm-dark);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.article { padding: clamp(3.5rem, 8vw, 6.5rem) 0 4.25rem; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--warm-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 700; line-height: 1.12; }

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 4.75rem);
  letter-spacing: -0.04em;
}

.dek {
  max-width: 42rem;
  margin: 1.45rem 0 1.15rem;
  color: #3c342e;
  font-size: clamp(1.13rem, 2.5vw, 1.35rem);
  line-height: 1.55;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro {
  margin-top: 3.5rem;
  padding: 1.35rem 1.45rem;
  border-left: 4px solid var(--warm);
  background: #f1e7da;
}

.intro p { margin: 0; }

.intro p + p { margin-top: 0.75rem; }

.section-heading {
  margin: 4.5rem 0 1.45rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.025em;
}

.rankings {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: choice;
}

.ranking {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  counter-increment: choice;
}

.ranking:last-child { border-bottom: 1px solid var(--line); }

.rank {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: #eee3d6;
  color: #564b42;
  font-size: 0.76rem;
  font-weight: 700;
}

.ranking:first-child .rank {
  background: var(--warm);
  color: #fff;
}

.choice h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -0.018em;
}

.choice p { margin: 0.55rem 0 0; }

.choice .tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.22rem 0.45rem;
  border: 1px solid #d7c5b4;
  border-radius: 999px;
  color: #68584b;
  font-size: 0.65rem;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.choice--featured {
  margin: 0 -1rem;
  padding: 2rem 1rem;
  border: 1px solid #d8b080;
  border-radius: 0.3rem;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(75, 46, 23, 0.08);
}

.choice--featured + .ranking { margin-top: 1rem; }

.choice--featured .rank { margin-left: 0; }

.choice--featured .choice h2 a {
  color: var(--warm-dark);
  text-decoration-thickness: 2px;
}

.note {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.note h2,
.faq h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  letter-spacing: -0.018em;
}

.note p { margin: 0; color: #493e35; }

.faq { margin-top: 3.3rem; }

.faq-item { padding: 1.25rem 0; border-top: 1px solid var(--line); }

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq h3 { margin: 0; font-size: 1.15rem; }

.faq p { margin: 0.5rem 0 0; }

.article-footer {
  border-top: 1px solid var(--line);
  background: #eee3d6;
}

.article-footer-inner {
  padding: 1.35rem 0;
  color: #665b52;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .masthead-inner, .article, .article-footer-inner { width: min(calc(100% - 2rem), var(--max)); }
  .article { padding-top: 3rem; }
  .choice--featured { margin-right: -0.25rem; margin-left: -0.25rem; padding-right: 0.75rem; padding-left: 0.75rem; }
  .ranking { gap: 0.75rem; }
  .rank { width: 2.1rem; height: 2.1rem; }
}
