:root {
  --bg: #efede6;
  --paper: #fbfaf5;
  --ink: #111311;
  --night: #151716;
  --signal: #d6d6d1;
  --muted: #686b62;
  --line: rgba(17, 19, 17, 0.16);
  --line-strong: rgba(17, 19, 17, 0.34);
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.78), transparent 26rem),
    radial-gradient(circle at 3% 42%, rgba(255, 255, 255, 0.74), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
.shell { width: min(100% - 48px, 1320px); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  background: rgba(239, 237, 230, 0.88);
  backdrop-filter: blur(16px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand { position: relative; padding-left: 17px; letter-spacing: 0.14em; }
.brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(17, 19, 17, 0.1);
  transform: translateY(-50%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.back-link:hover,
.back-link:focus-visible { color: var(--ink); transform: translateX(-3px); }

.post {
  position: relative;
  max-width: 940px;
  padding: clamp(68px, 10vw, 148px) 0 108px;
}

.post::before {
  display: none;
}

.eyebrow {
  margin: 0 0 24px;
  color: #555850;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  letter-spacing: -0.075em;
}

h1 {
  max-width: 10.4ch;
  margin: 0;
  font-size: clamp(3.6rem, 7.5vw, 7.7rem);
  line-height: 0.83;
}

.lede {
  max-width: 57ch;
  margin: 40px 0 66px;
  color: #373a34;
  font-size: clamp(1.04rem, 1.6vw, 1.26rem);
  line-height: 1.66;
}

.post-section {
  position: relative;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

h2 {
  max-width: 18ch;
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 0.89;
}

p,
li { font-size: 0.98rem; line-height: 1.72; }
p { margin: 0 0 18px; }
ul,
ol { margin: 0; padding-left: 1.2rem; }
li + li { margin-top: 10px; }

.post-section > :last-child { margin-bottom: 0; }

.post-section h3 {
  max-width: 27ch;
  margin: 32px 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 0.98;
}

.post-section strong { color: #262821; }

.post-section a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-section a:hover,
.post-section a:focus-visible { text-decoration-color: var(--ink); }

.article-example {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--ink);
  background: rgba(17, 19, 17, 0.045);
}

.article-example-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-example p { margin-bottom: 10px; }
.article-example p:last-child { margin-bottom: 0; }

.callout,
.comparison-note {
  margin: 34px 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--night);
  color: var(--paper);
  box-shadow: 12px 14px 0 rgba(17, 19, 17, 0.12);
}

.callout strong,
.comparison-note strong {
  display: block;
  max-width: 20ch;
  margin-bottom: 10px;
  color: var(--signal);
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.callout p,
.comparison-note p { max-width: 58ch; margin-bottom: 0; color: rgba(251, 250, 245, 0.76); }

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid var(--signal);
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta:hover,
.cta:focus-visible { background: var(--paper); transform: translateY(-3px); box-shadow: 0 13px 24px rgba(0, 0, 0, 0.24); }

.footer {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 24px;
  border-radius: 16px;
  background: var(--ink);
  color: rgba(251, 250, 245, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.archive { max-width: none; }
.archive::before { display: none; }
.archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.6fr);
  gap: clamp(28px, 7vw, 120px);
  align-items: end;
}
.archive-title { max-width: 9ch; }
.archive-summary { max-width: 34ch; margin: 0 0 8px; color: #454740; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.65; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(54px, 8vw, 100px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.archive-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  min-height: 360px;
  padding: clamp(24px, 3vw, 38px);
  border: 0;
  border-radius: 0;
  background: var(--paper);
  transition: background-color 180ms ease, color 180ms ease;
}

.archive-card:nth-child(2) { background: #e9e9e6; }
.archive-card:nth-child(3) { background: #e5e3db; }
.archive-card:hover,
.archive-card:focus-visible { background: var(--night); color: var(--paper); transform: none; box-shadow: none; }
.archive-card .eyebrow { margin: 0; }
.archive-card h2 { max-width: 14ch; margin: 0; font-size: clamp(1.7rem, 2.65vw, 2.5rem); line-height: 0.94; }
.archive-card p { margin: 0; color: #454740; font-size: 0.91rem; line-height: 1.66; }
.archive-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.archive-card-number { color: var(--muted); }
.archive-card-link { color: var(--ink); }
.archive-card:hover .eyebrow,
.archive-card:hover p,
.archive-card:hover .archive-card-number,
.archive-card:hover .archive-card-link,
.archive-card:focus-visible .eyebrow,
.archive-card:focus-visible p,
.archive-card:focus-visible .archive-card-number,
.archive-card:focus-visible .archive-card-link { color: var(--paper); }
.archive-note { max-width: 62ch; margin: 42px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

.comparison { max-width: 1040px; }
.comparison-matrix { margin: 36px 0 8px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; }
.comparison-row { display: grid; grid-template-columns: minmax(150px, 0.62fr) minmax(220px, 1fr) minmax(220px, 1fr); }
.comparison-row + .comparison-row { border-top: 1px solid var(--line); }
.comparison-heading { background: var(--ink); color: var(--paper); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.comparison-heading > div,
.comparison-label,
.comparison-cell { padding: 20px; }
.comparison-heading > div + div,
.comparison-label + .comparison-cell,
.comparison-cell + .comparison-cell { border-left: 1px solid var(--line); }
.comparison-label { background: rgba(17, 19, 17, 0.035); font-family: var(--sans); font-size: 1.04rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.comparison-cell { color: #454740; font-size: 0.89rem; line-height: 1.65; }
.comparison-cell::before { content: attr(data-label); display: none; }

@media (max-width: 900px) {
  .archive-head { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { min-height: 0; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1320px); }
  .topbar { min-height: 72px; }
  .brand { font-size: 0.66rem; }
  .post { padding: 60px 0 76px; }
  h1 { max-width: 10ch; font-size: clamp(3.35rem, 15vw, 5.1rem); }
  .lede { margin: 30px 0 44px; font-size: 0.98rem; }
  .post-section { padding: 32px 0; }
  h2 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  p,
  li { font-size: 0.93rem; }
  .callout,
  .comparison-note { margin: 26px 0; padding: 24px 20px; border-radius: 16px; box-shadow: 8px 10px 0 rgba(17, 19, 17, 0.12); }
  .archive-grid { margin-top: 44px; border-radius: 16px; }
  .comparison-matrix { margin-top: 28px; border-radius: 14px; }
  .comparison-row { grid-template-columns: 1fr; }
  .comparison-heading { display: none; }
  .comparison-heading > div,
  .comparison-label,
  .comparison-cell { padding: 16px; }
  .comparison-label { padding-bottom: 6px; }
  .comparison-label + .comparison-cell,
  .comparison-cell + .comparison-cell { border-top: 1px solid var(--line); border-left: 0; }
  .comparison-cell::before { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .footer { min-height: 72px; padding: 20px 16px; font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}
