/* The MCP Collection - visual system adapted from ciggies.app, see DESIGN.md */

:root {
  --ink: oklch(17% 0.005 260);
  --paper: oklch(99.4% 0.002 260);
  --caption: oklch(55% 0.006 260);
  --rule: oklch(92% 0.003 260);
  --panel: oklch(96.5% 0.003 260);
  --serif: "Noto Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Floating glass nav ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}

.glass {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  background: color-mix(in oklch, var(--paper) 55%, transparent);
  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  border: 1px solid oklch(17% 0.005 260 / 0.08);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.55),
    0 1px 2px oklch(0% 0 0 / 0.05),
    0 14px 34px -18px oklch(0% 0 0 / 0.30);
}

.nav-logo {
  gap: 9px;
  padding: 7px 17px 7px 8px;
  font-weight: 600;
  font-size: 14px;
}

.nav-logo .glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
}

.nav-pill {
  gap: 20px;
  padding: 6px 7px 6px 20px;
  font-size: 13.5px;
}

.nav-pill a { color: var(--caption); }
.nav-pill a:hover, .nav-pill a.active { color: var(--ink); }
.nav-pill a.pill { color: var(--paper); }

@media (max-width: 560px) {
  .nav-pill { gap: 14px; padding-left: 16px; }
}

/* ---------- Kicker ---------- */

.kicker {
  text-align: center;
  padding: 96px 24px 0;
  animation: kicker-in 600ms var(--ease-out) both;
}

@keyframes kicker-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kicker { animation: none; }
}

.kicker .sub {
  margin: 0;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--caption);
}

.kicker .stats {
  margin-top: 8px;
  font-size: 13px;
  color: var(--caption);
}

.kicker .intro-line {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink);
}

/* ---------- Landing ---------- */

.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 28px;
}

.page-label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--caption);
}

.landing-hero {
  position: absolute;
  top: 38vh;
  left: 28px;
  right: 28px;
  transform: translateY(-50%);
  text-align: center;
}

.landing-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.landing-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.landing-links span {
  color: var(--caption);
}

.landing-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.landing-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.peek-sticker {
  position: absolute;
  bottom: -55px;
  width: 260px;
  padding: 8px;
  background: white;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    0 -6px 24px -12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  transition: transform 220ms ease-out;
}

.peek-sticker img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.peek-sticker-left {
  left: 10%;
  transform: rotate(-4deg);
}

.peek-sticker-center {
  left: 50%;
  transform: translateX(-50%) rotate(2.5deg);
}

.peek-sticker-right {
  right: 10%;
  transform: rotate(-2deg);
}

.peek-sticker-left:hover {
  transform: translateY(-8px) rotate(-4deg);
}

.peek-sticker-center:hover {
  transform: translateX(-50%) translateY(-8px) rotate(2.5deg);
}

.peek-sticker-right:hover {
  transform: translateY(-8px) rotate(-2deg);
}

@media (max-width: 700px) {
  .peek-sticker-left,
  .peek-sticker-right {
    display: none;
  }
}

/* ---------- Blog ---------- */

.blog-index,
.article,
.about-page {
  padding: 118px 28px 92px;
}

.blog-index,
.about-page {
  max-width: 760px;
  margin: 0 auto;
}

.article article {
  max-width: 720px;
  margin: 0 auto;
}

.writing-tabs {
  display: none;
  gap: 28px;
  margin-top: 28px;
  border-bottom: 1px solid var(--rule);
}

.writing-ready .writing-tabs {
  display: flex;
}

.writing-tab {
  position: relative;
  appearance: none;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: var(--caption);
  font: 500 13px/1.4 var(--sans);
  cursor: pointer;
  transition: color 160ms var(--ease-out);
}

.writing-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.writing-tab:hover,
.writing-tab[aria-selected="true"] {
  color: var(--ink);
}

.writing-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.writing-tab:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-list {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}

.writing-ready .post-list {
  margin-top: 0;
  border-top: 0;
}

.post-list[hidden],
.writing-empty[hidden] {
  display: none;
}

.writing-empty {
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--caption);
  font-size: 13px;
  line-height: 1.6;
}

.post-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.post-date,
.article time {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--caption);
}

.post-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.post-summary {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--caption);
  line-height: 1.6;
}

.post-row:hover .post-summary {
  color: var(--ink);
}

.post-row-teaser,
.post-row-teaser .post-title,
.post-row-teaser .post-summary {
  color: var(--caption);
}

/* ---------- Article: exhibit-plate system ----------
   Ink rules (1px --ink) mark major boundaries; --rule hairlines
   mark rows. Mono microtype carries all metadata. */

.article-head {
  animation: kicker-in 600ms var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .article-head { animation: none; }
}

.article .article-kicker {
  margin: 0 0 20px;
  max-width: none;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.article h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.article .article-deck {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 18.5px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: oklch(36% 0.006 260);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 13px 0 14px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caption);
}

.article time { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--caption); }
.article-meta time { margin: 0; font-size: inherit; }

.article-chip {
  padding: 2px 9px 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 9.5px;
}

.article p {
  max-width: 66ch;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
}

.article .article-lede {
  font-size: 17.5px;
  line-height: 1.72;
}

.article h2 {
  max-width: 30ch;
  margin: 56px 0 16px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.article .article-kicker + h2,
.article h2:has(+ .article-kicker) { margin-top: 0; }

.article p.article-kicker:not(:first-child) {
  margin-top: 56px;
  margin-bottom: 12px;
}

.article-head .article-kicker { margin-top: 0 !important; }

.article h3 {
  max-width: 60ch;
  margin: 30px 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.article ul,
.article ol {
  max-width: 64ch;
  margin: 0 0 22px;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.75;
}

.article li + li { margin-top: 8px; }

.article a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--panel);
  border-radius: 4px;
  padding: 2px 5px;
}

.article pre {
  max-width: 66ch;
  overflow-x: auto;
  margin: 26px 0;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.65;
}

.article pre code { padding: 0; background: transparent; }

/* Direct answer near the top: the citable verdict */

.article-verdict {
  margin: 36px 0 40px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.article-verdict-label {
  display: block;
  margin-bottom: 12px;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-verdict p {
  max-width: 58ch;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

/* Pull quote */

.article-pull {
  max-width: none;
  margin: 46px 0;
  padding: 24px 0 26px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* Numbered walkthrough rows */

.article-steps {
  margin: 36px 0 44px;
  border-top: 1px solid var(--ink);
  counter-reset: step;
}

.article-steps > section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}

.article-steps > section::before {
  content: counter(step, decimal-leading-zero);
  padding-top: 4px;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
}

.article-steps h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.article-steps p {
  max-width: 62ch;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: oklch(33% 0.006 260);
}

.article-steps p:last-child { margin-bottom: 0; }
.article-steps pre { margin: 14px 0 4px; }

/* Two-column comparison panels */

.article-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 36px 0 44px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.article-split > section {
  min-width: 0;
  padding: 24px 28px 28px 0;
}

.article-split > section + section {
  padding-right: 0;
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.article-split h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.article-split .article-kicker { margin: 0 0 14px !important; }

.article-split p,
.article-split ul {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: oklch(33% 0.006 260);
}

.article-split ul { padding-left: 18px; }
.article-split li + li { margin-top: 6px; }
.article-split > section > :last-child { margin-bottom: 0; }

/* Numbered principle grid */

.article-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 36px 0 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.article-grid2 > section {
  min-width: 0;
  padding: 24px 26px 26px 0;
}

.article-grid2 > section:nth-child(even) {
  padding-right: 0;
  padding-left: 26px;
  border-left: 1px solid var(--rule);
}

.article-grid2 > section:nth-child(n + 3) {
  border-top: 1px solid var(--rule);
}

.article-grid2 span {
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
}

.article-grid2 h3 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
}

.article-grid2 p {
  margin: 0;
  color: oklch(33% 0.006 260);
  font-size: 14px;
  line-height: 1.7;
}

/* Figures */

.article-figure {
  margin: 34px 0 40px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
}

.article-figure figcaption {
  max-width: 80ch;
  margin-top: 11px;
  color: var(--caption);
  font-size: 11.5px;
  line-height: 1.6;
}

/* Wide bleed for tables and figures */

.article-wide,
.article-figure-wide {
  position: relative;
  left: 50%;
  width: min(100vw - 56px, 940px);
  transform: translateX(-50%);
}

/* Tables: spec-ledger style */

.article-table-wrap {
  overflow-x: auto;
  margin: 30px 0 40px;
}

.article table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 13.5px;
}

.article th,
.article td {
  padding: 13px 18px 14px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.article th:last-child,
.article td:last-child { padding-right: 0; }

.article th {
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article tbody tr:last-child td { border-bottom: 0; }

.article-table-wrap:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Notes */

.article-note {
  max-width: 66ch;
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
}

.article-note p { font-size: 15px; }
.article-note p:last-child { margin-bottom: 0; }

/* Freshness: quiet compliance line, not a box */

.article .article-freshness {
  max-width: none;
  margin: 14px 0 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.article .article-freshness p {
  max-width: 70ch;
  margin: 0;
  color: var(--caption);
  font-size: 12px;
  line-height: 1.65;
}

.article .article-freshness strong { font-weight: 600; }

.article .article-freshness time {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
}

/* Sources and related: catalog lists */

.article-sources,
.article-related {
  max-width: none;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.article-related { margin-top: 48px; }

.article-sources h2,
.article-related h2 {
  max-width: none;
  margin: 0 0 16px;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-sources ul {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 44px;
}

.article-sources li {
  margin: 0 0 9px;
  break-inside: avoid;
  font-size: 12.5px;
  line-height: 1.55;
}

.article-sources li + li { margin-top: 0; }

.article-sources a {
  color: var(--caption);
  text-decoration-color: var(--rule);
}

.article-sources a:hover { color: var(--ink); }

.article-related ul {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-related li { margin: 0; border-bottom: 1px solid var(--rule); }
.article-related li + li { margin-top: 0; }
.article-related li:last-child { border-bottom: 0; }

.article-related a {
  display: block;
  padding: 15px 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-decoration: none;
}

.article-related a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .article h1 { font-size: clamp(31px, 8.6vw, 38px); }
  .article .article-deck { font-size: 16.5px; }
  .article p { font-size: 15px; }
  .article .article-lede { font-size: 16px; }
  .article-verdict p { font-size: 17px; }

  .article-steps > section {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .article-split,
  .article-grid2 { grid-template-columns: 1fr; }

  .article-split > section,
  .article-split > section + section,
  .article-grid2 > section,
  .article-grid2 > section:nth-child(even) {
    padding: 20px 0 24px;
    border-left: 0;
  }

  .article-split > section + section,
  .article-grid2 > section:nth-child(n + 2) {
    border-top: 1px solid var(--rule);
  }

  .article-sources ul { columns: 1; }
}

/* ---------- WebMCP checkout benchmark ---------- */

.benchmark-article {
  padding-top: 132px;
}

.benchmark-article article {
  max-width: 1160px;
}

.benchmark-header,
.benchmark-prose,
.benchmark-article > article > .article-freshness {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.benchmark-header h1 {
  max-width: 970px;
  font-size: clamp(46px, 5.5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.benchmark-header h1 em {
  font-weight: 900;
}

.benchmark-kicker {
  margin-bottom: 16px !important;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.benchmark-header .article-meta {
  margin-top: 18px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

.benchmark-deck {
  max-width: 720px !important;
  margin-bottom: 34px !important;
  font-size: 21px !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em;
}

.benchmark-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 48px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.benchmark-metrics div {
  min-width: 0;
  padding: 16px 14px 17px 0;
}

.benchmark-metrics div + div {
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}

.benchmark-metrics span,
.benchmark-metrics strong {
  display: block;
}

.benchmark-metrics span {
  margin-bottom: 5px;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.benchmark-metrics strong {
  font-size: 13px;
  line-height: 1.35;
}

.benchmark-article > article > .article-freshness {
  margin-top: 0;
  margin-bottom: 56px;
  padding: 0;
  background: transparent;
}

.benchmark-article > article > .article-freshness p {
  color: var(--caption);
  font-size: 12px;
  line-height: 1.65;
}

.benchmark-figure {
  max-width: 1160px;
  margin: 0 0 72px;
}

.benchmark-figure picture {
  display: block;
}

.benchmark-figure img {
  border-radius: 8px;
  background: var(--paper);
}

.benchmark-figure figcaption {
  max-width: 92ch;
  margin-top: 13px;
  font-size: 12px;
}

.benchmark-prose {
  margin-bottom: 74px;
}

.benchmark-prose > h2,
.benchmark-ledger h2 {
  max-width: 22ch;
  margin-top: 0;
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.benchmark-prose > p {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.75;
}

.benchmark-walkthrough {
  margin-top: 42px;
  border-bottom: 1px solid var(--rule);
}

.benchmark-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px 0 30px;
  border-top: 1px solid var(--rule);
}

.benchmark-step-number {
  padding-top: 2px;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
}

.benchmark-step h3 {
  margin: 0 0 9px;
  font-size: 17px;
}

.benchmark-step p {
  max-width: 66ch;
  margin: 0;
  color: oklch(35% 0.006 260);
  font-size: 15px;
  line-height: 1.75;
}

.benchmark-step-caveat {
  background: oklch(96% 0.025 85 / 0.42);
}

.benchmark-pullquote {
  margin: 42px 0;
  padding: 28px 0 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.ifood-boundary {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin: 34px 0;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.ifood-boundary b {
  color: var(--caption);
  font-weight: 400;
}

.ifood-boundary strong {
  color: oklch(43% 0.11 28);
}

.ifood-boundary em {
  color: var(--caption);
}

.benchmark-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 40px 0 34px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.benchmark-principles section {
  min-height: 206px;
  padding: 24px 26px 26px 0;
}

.benchmark-principles section:nth-child(even) {
  padding-right: 0;
  padding-left: 26px;
  border-left: 1px solid var(--rule);
}

.benchmark-principles section:nth-child(n + 3) {
  border-top: 1px solid var(--rule);
}

.benchmark-principles span {
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
}

.benchmark-principles h3 {
  margin: 22px 0 8px;
  font-family: var(--serif);
  font-size: 21px;
}

.benchmark-principles p {
  margin: 0;
  color: oklch(35% 0.006 260);
  font-size: 14px;
  line-height: 1.7;
}

.benchmark-ledger {
  max-width: 900px;
  margin: 0 auto 76px;
  padding: 42px 0 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.benchmark-ledger-heading {
  max-width: 760px;
  margin: 0 auto 30px;
}

.benchmark-ledger .article-table-wrap {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.benchmark-ledger table {
  min-width: 760px;
}

.benchmark-ledger th {
  padding-top: 11px;
  padding-bottom: 11px;
  background: transparent;
  border-top: 1px solid var(--rule);
}

.benchmark-ledger th:first-child { width: 42%; }
.benchmark-ledger th:nth-child(2) { width: 17%; }

.evidence-measured,
.evidence-verified,
.evidence-inferred {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.evidence-measured { color: oklch(43% 0.11 28); }
.evidence-verified { color: oklch(44% 0.08 155); }
.evidence-inferred { color: var(--caption); }

.benchmark-conclusion {
  padding-top: 52px;
  border-top: 1px solid var(--ink);
}

.benchmark-conclusion > h2 {
  max-width: 18ch;
}

.benchmark-article .article-sources,
.benchmark-article .article-related {
  padding-top: 28px;
  border-top-color: var(--ink);
}

.benchmark-article .article-sources > h2,
.benchmark-article .article-related > h2 {
  max-width: none;
  margin: 0 0 16px;
  color: var(--caption);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .benchmark-article {
    padding-right: 18px;
    padding-left: 18px;
  }

  .benchmark-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .benchmark-metrics div:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .benchmark-metrics div:nth-child(4) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 560px) {
  .benchmark-article {
    padding-top: 112px;
  }

  .benchmark-header h1 {
    font-size: clamp(39px, 11.5vw, 50px);
    line-height: 1.02;
  }

  .benchmark-deck {
    font-size: 18px !important;
    line-height: 1.55 !important;
  }

  .benchmark-metrics div {
    padding-top: 13px;
    padding-bottom: 14px;
  }

  .benchmark-figure {
    margin-right: -8px;
    margin-bottom: 58px;
    margin-left: -8px;
  }

  .benchmark-figure figcaption {
    padding: 0 8px;
  }

  .benchmark-prose {
    margin-bottom: 62px;
  }

  .benchmark-prose > h2,
  .benchmark-ledger h2 {
    font-size: 31px;
  }

  .benchmark-prose > p {
    font-size: 16px;
    line-height: 1.72;
  }

  .benchmark-step {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 24px 0 26px;
  }

  .benchmark-step p {
    font-size: 14px;
  }

  .benchmark-pullquote {
    margin: 34px 0;
    font-size: 25px;
  }

  .ifood-boundary {
    flex-wrap: wrap;
    white-space: normal;
  }

  .benchmark-principles {
    grid-template-columns: 1fr;
  }

  .benchmark-principles section,
  .benchmark-principles section:nth-child(even) {
    min-height: 0;
    padding: 22px 0 24px;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .benchmark-principles section:first-child {
    border-top: 0;
  }

  .benchmark-principles h3 {
    margin-top: 12px;
  }

  .benchmark-ledger {
    margin-bottom: 64px;
    padding-top: 34px;
  }
}

.about-page p {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.about-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--caption);
}

.about-links a:hover {
  color: var(--ink);
}

@media (max-width: 620px) {
  .writing-tabs {
    gap: 22px;
  }

  .post-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- Buttons ---------- */

.pill, .pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.pill { background: var(--ink); color: var(--paper); }
.pill-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.pill:hover, .pill-ghost:hover { transform: translateY(-1px); }
.pill-ghost:hover { border-color: var(--caption); }
.pill-sm { padding: 6px 13px; font-size: 12px; }

/* ---------- The gallery ---------- */

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  justify-content: flex-start;
  gap: 40px 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 44px) 32px 96px;
}

@media (max-width: 700px) {
  .wall { justify-content: center; }
}

.sticker-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Die-cut sticker: the app's real UI on a thick white backing */
.sticker {
  display: block;
  width: 100%;
  background: white;
  padding: 10px;
  border-radius: 18px;
  transform: rotate(var(--tilt, 0deg));
  box-shadow:
    0 0 0 1px oklch(0% 0 0 / 0.07),
    0 1px 2px oklch(0% 0 0 / 0.08),
    0 14px 30px -14px oklch(0% 0 0 / 0.30);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.sticker img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

/* Deck: the app's screens stacked like cards. The front card reads exactly
   like a single sticker; the others peek out behind it. */
.deck {
  position: relative;
  display: block;
  width: 100%;
}

.deck .sticker {
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.deck .sticker[data-pos="0"] { position: relative; }

.deck .sticker:not([data-pos="0"]) {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.deck .sticker[data-pos="0"] { transform: rotate(var(--tilt, 0deg)); }
.deck .sticker[data-pos="1"] { transform: rotate(calc(var(--tilt, 0deg) + 2.4deg)) translate(14px, -10px) scale(0.985); }
.deck .sticker[data-pos="2"] { transform: rotate(calc(var(--tilt, 0deg) - 2deg)) translate(-13px, -18px) scale(0.97); }

/* Hover fans the stack so the back cards invite a click */
.sticker-cell:hover .deck .sticker[data-pos="0"] {
  transform: rotate(0deg) translateY(-5px) scale(1.012);
  box-shadow:
    0 0 0 1px oklch(0% 0 0 / 0.07),
    0 2px 4px oklch(0% 0 0 / 0.08),
    0 26px 44px -18px oklch(0% 0 0 / 0.38);
}
.sticker-cell:hover .deck .sticker[data-pos="1"] {
  transform: rotate(3.2deg) translate(30px, -16px) scale(0.985);
}
.sticker-cell:hover .deck .sticker[data-pos="2"] {
  transform: rotate(-2.8deg) translate(-28px, -26px) scale(0.97);
}

.deck .sticker:not([data-pos="0"]):hover { filter: brightness(0.985); }

/* Current-state label, ciggies-caption style, appears under the deck on hover */
.deck::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caption);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  pointer-events: none;
}

.sticker-cell:hover .deck::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .deck .sticker, .sticker { transition: none; }
}

.sticker-caption {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--caption);
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sticker-caption .cn {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}

.sticker-caption .tagline {
  display: block;
  margin-top: 6px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ---------- Flow strip ---------- */

.flow {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 88px;
}

.flow h2 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caption);
  font-weight: 600;
  margin: 0 0 22px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px clamp(28px, 4vw, 56px);
}

.flow-step { display: flex; flex-direction: column; gap: 6px; }

.flow-step .n {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--caption);
}

.flow-step .t { font-weight: 600; font-size: 14px; }

.flow-step .d { font-size: 13px; color: var(--caption); line-height: 1.65; max-width: 38ch; }

.detail .flow { padding: 0; margin-top: 70px; }

/* ---------- Detail page ---------- */

.detail {
  max-width: 1060px;
  margin: 0 auto;
  padding: 96px 28px 90px;
}

.crumb {
  font-size: 12.5px;
  color: var(--caption);
  margin-bottom: 26px;
}

.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 8px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }

.pedestal {
  background: var(--panel);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: clamp(24px, 4vw, 44px);
}

/* ---------- Chat moment ---------- */

.prompt-row {
  display: flex;
  justify-content: flex-end;
}

.prompt-bubble {
  max-width: 260px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid var(--rule);
  border-radius: 14px 14px 4px 14px;
  background: white;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}

.tool-attribution {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.app-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.app-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.tool-label {
  min-width: 0;
  color: var(--caption);
  font-family: Menlo, ui-monospace, "SF Mono", monospace;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedestal .sticker-lg {
  display: block;
  width: 100%;
  background: white;
  padding: 10px;
  border-radius: 16px;
  transform: rotate(-0.6deg);
  box-shadow:
    0 0 0 1px oklch(0% 0 0 / 0.07),
    0 18px 36px -16px oklch(0% 0 0 / 0.32);
}

.pedestal .sticker-lg img { display: block; width: 100%; border-radius: 9px; }

.sent-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--caption);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.sent-line span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22C55E;
}

.state-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.state-tab {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--caption);
  cursor: pointer;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.state-tab:hover { color: var(--ink); border-color: var(--caption); }
.state-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Host chrome ---------- */

.host-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  align-self: flex-start;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.host-option {
  padding: 5px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--caption);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.host-option.active {
  background: var(--ink);
  color: var(--paper);
}

.host-composer {
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  font-family: var(--sans);
}

.composer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.composer-send {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1;
}

.host-composer-claude {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #DDD9CC;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(61, 57, 41, 0.06);
}

.host-composer-claude .composer-placeholder {
  color: #A29F8E;
  font-size: 13px;
  line-height: 1.2;
}

.host-composer-claude .composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.host-composer-claude .composer-left {
  color: #A29F8E;
  font-family: Menlo, ui-monospace, "SF Mono", monospace;
  font-size: 10px;
  line-height: 1;
}

.host-composer-claude .composer-left span:first-child {
  font-family: var(--sans);
  font-size: 14px;
}

.host-composer-claude .composer-send {
  border-radius: 8px;
  background: #D97757;
}

.host-composer-chatgpt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #E5E5E5;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.host-composer-chatgpt .composer-left {
  color: #8E8E8E;
  font-size: 13px;
  line-height: 1;
}

.host-composer-chatgpt .composer-left span:first-child {
  font-size: 15px;
}

.host-composer-chatgpt .composer-send {
  border-radius: 999px;
  background: #0D0D0D;
}

.pedestal.host-claude {
  background: #F4F2EC;
  border: 1px solid #E4E1D7;
}

.pedestal.host-claude .prompt-bubble {
  background: #E8E5DB;
  color: #3D3929;
  border: 0;
  border-radius: 14px 14px 4px 14px;
}

.pedestal.host-claude .app-mark {
  display: none;
}

.pedestal.host-claude .host-toggle {
  background: #FFFFFF;
  border-color: #DDD9CC;
}

.pedestal.host-claude .app-title {
  color: #3D3929;
}

.pedestal.host-claude .tool-label {
  color: #8A8674;
}

.pedestal.host-chatgpt {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
}

.pedestal.host-chatgpt .prompt-bubble {
  background: #ECECEC;
  color: #0D0D0D;
  border: 0;
  border-radius: 18px;
}

.pedestal.host-chatgpt .app-mark {
  color: #0D0D0D;
}

.pedestal.host-chatgpt .host-toggle {
  background: #F7F7F8;
  border-color: #E5E5E5;
}

.pedestal.host-chatgpt .app-title {
  color: #0D0D0D;
}

.pedestal.host-chatgpt .tool-label {
  color: #8E8E8E;
}

.curator {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--caption);
  line-height: 1.75;
  max-width: 52ch;
}

.curator .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}

.chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.detail h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.detail .latin {
  font-size: 14.5px;
  color: var(--caption);
  margin-bottom: 18px;
  max-width: 52ch;
}

.version {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 6px 0 18px;
}

.version .unit { font-size: 13px; color: var(--caption); font-weight: 400; margin-left: 6px; }

.actions { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }

/* ---------- Install ---------- */

.openai-logo {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pill .openai-logo {
  color: var(--paper);
}

.install-confirm {
  margin: -16px 0 28px;
  color: var(--caption);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}

.install-confirm.show {
  opacity: 1;
}

.spec { border-top: 1px solid var(--rule); margin-top: 8px; }

.spec-section {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 22px 0 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}

.spec-row .k { color: var(--caption); flex-shrink: 0; }
.spec-row .k.mono, .spec-row .v.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.spec-row .k.mono { color: var(--ink); font-weight: 500; }
.spec-row .v { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.spec-row .v.mono { font-weight: 400; color: var(--caption); }

/* Related strip */

.related { margin-top: 70px; }
.related h2 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--caption); font-weight: 600; margin-bottom: 22px;
}
.related .wall { padding: 0; max-width: none; grid-template-columns: repeat(auto-fill, 280px); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 26px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--caption);
  flex-wrap: wrap;
}
