/* Pricing, About and the blog. Tokens and shared parts are in site.css. */

.page-head { padding: clamp(48px, 7vw, 112px) 0 clamp(36px, 4.5vw, 64px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: clamp(28px, 5vw, 88px); align-items: end; }
.page-head .claim { font-size: clamp(36px, 6.6vw, 104px); }
@media (max-width: 900px) { .page-head .wrap { grid-template-columns: 1fr; } }

/* ---------- pricing: one ruled table, not three cards ---------- */

.cycle { display: flex; align-items: center; gap: 4px 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cycle legend { float: left; margin-right: 6px; }
.cycle fieldset { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 0 4px; flex-wrap: wrap; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { padding: 4px 0 3px; border-bottom: 2px solid transparent; }
.chip:hover span { border-bottom-color: var(--hair); }
.chip input:checked + span { color: var(--ink); border-bottom-color: var(--ink); }
.chip input:focus-visible + span { outline: 1.5px dotted var(--ink); outline-offset: 4px; }
.chip .mono { font-size: var(--t-label); margin-left: 6px; color: var(--ink-2); }
@media (max-width: 420px) { .chip .mono { display: none; } }
.dot { color: var(--ink-3); }

.tiers { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: clamp(56px, 6vw, 96px); }
.tiers th, .tiers td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--hair); font-weight: 400; }
.tiers thead th { border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.tiers thead th:first-child { width: 22%; }
.tiers .tier { font-size: var(--t-list); font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.1; }
.tiers .for { display: block; margin-top: 6px; font-size: var(--t-small); color: var(--ink-2); font-weight: 400; max-width: 22em; }
.tiers tbody th { font-size: var(--t-small); color: var(--ink-2); padding-right: 24px; }
.tiers td { font-size: var(--t-body); color: var(--ink); }
.tiers td .sub { display: block; font-size: var(--t-small); color: var(--ink-2); margin-top: 2px; }
.tiers .amt { font-family: var(--mono); font-weight: 700; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tiers .per { display: block; margin-top: 8px; font-size: var(--t-small); color: var(--ink-2); }
.tiers .none { color: var(--ink-2); }
.tiers tfoot :is(th, td) { border-bottom: 0; padding-top: 24px; }
.tiers .pick th, .tiers .pick td { padding-top: 22px; padding-bottom: 22px; }
.yearly [data-cycle="month"], .monthly [data-cycle="year"] { display: none; }

@media (max-width: 860px) {
  .tiers, .tiers tbody, .tiers tr, .tiers td, .tiers th { display: block; width: 100% !important; }
  .tiers thead { display: none; }
  .tiers tbody tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--hair); padding: 10px 0 14px; }
  .tiers tbody th { border: 0; padding: 0 0 6px; }
  .tiers td { border: 0; padding: 6px 0 6px 92px; position: relative; }
  .tiers td::before { content: attr(data-tier); position: absolute; left: 0; top: 7px; font-size: var(--t-small); font-weight: 600; color: var(--ink); }
  .tiers tfoot, .tiers tfoot tr { display: block; }
  .tiers tfoot td { padding: 8px 0; }
  .tiers tfoot td::before { content: none; }
  .tiers tfoot th { display: none; }
}

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--split-gap); border-top: 1px solid var(--hair); }
.faq div { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.faq dt { font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.01em; }
.faq dd { margin-top: 8px; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* ---------- about: The List ---------- */

/* the lede is one block across the page, set large enough that its long
   lines still read as a statement */
.lede { padding-bottom: clamp(48px, 6vw, 88px); font-size: clamp(19px, 2vw, 28px); line-height: 1.45; letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }

.thelist { width: 100%; border-collapse: collapse; }
.thelist thead th { text-align: left; padding: 0 0 12px; border-bottom: 2px solid var(--ink); }
.thelist tbody th { text-align: left; vertical-align: top; padding: clamp(20px, 2.4vw, 30px) clamp(16px, 3vw, 48px) clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--hair); }
.thelist td { vertical-align: top; padding: clamp(20px, 2.4vw, 30px) clamp(16px, 3vw, 48px) clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--hair); }
.thelist td:last-child { padding-right: 0; }
.thelist .hate { width: 34%; font-size: var(--t-list); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; }
.thelist .why { width: 33%; color: var(--ink); font-size: var(--t-body); }
.thelist .instead { color: var(--ink-2); font-size: var(--t-body); }
.thelist .instead b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .thelist thead { display: none; }
  .thelist, .thelist tbody, .thelist tr, .thelist td, .thelist tbody th { display: block; width: 100% !important; }
  .thelist tr { border-bottom: 1px solid var(--hair); padding: 22px 0; }
  .thelist td, .thelist tbody th { border: 0; padding: 0 0 8px; }
}
.turn { padding: clamp(64px, 8vw, 120px) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--split-gap); align-items: start; }
.turn .body { font-size: var(--t-lead); color: var(--ink); max-width: 34em; }
@media (max-width: 900px) { .turn { grid-template-columns: 1fr; } }

.roadmap { --ahead-gap: clamp(24px, 4vw, 64px); }
.ahead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ahead-gap); }
.ahead > div {
  position: relative; background: var(--raised); border: 1.6px solid var(--ink); border-radius: 3px;
  padding: 18px 44px 22px 20px;
}
.ahead > div::after {
  content: ""; position: absolute; top: -1.6px; right: -1.6px; width: 26px; height: 26px;
  background: var(--paper); border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink);
  border-bottom-left-radius: 26px;
}
.ahead .h3 { margin-bottom: 4px; }
/* each plate lands after the one before it, as on the Skeleton */
@media (min-width: 861px) {
  .ahead > div + div::before {
    content: ""; position: absolute; top: 50%; right: 100%; width: var(--ahead-gap); height: 0;
    border-top: 1.3px solid var(--ink-3);
  }
  .ahead > div + div > .h3::before {
    content: ""; position: absolute; top: calc(50% - 5px); left: -11px; width: 0; height: 0;
    border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 10px solid var(--ink-3);
  }
}
.ahead .when { font-family: var(--mono); font-size: var(--t-small); color: var(--ink-2); margin-bottom: 12px; }
.ahead .body { font-size: var(--t-body); }
/* the dimension runs under what has no date: the second and third plates,
   not the one already in the product. Once the plates stack it stands
   beside those two as a vertical bracket. */
.ahead-dim { position: relative; margin-top: 28px; margin-left: calc((100% - 2 * var(--ahead-gap)) / 3 + var(--ahead-gap)); height: 20px; border-left: 1.5px solid var(--ink-2); border-right: 1.5px solid var(--ink-2); }
.ahead-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--ink-2); }
.ahead-dim span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper); padding: 0 12px; font-family: var(--mono); font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; }
.ahead-dim b { color: var(--ink); }
@media (max-width: 860px) {
  .roadmap { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: var(--ahead-gap) 14px; }
  .ahead { display: contents; }
  .ahead > div { grid-column: 1; }
  .ahead-dim {
    grid-column: 2; grid-row: 2 / 4; margin: 0; height: auto;
    border: 0; border-top: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  }
  .ahead-dim::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px solid var(--ink-2); }
  .ahead-dim span { writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); padding: 12px 0; }
}

/* ---------- blog ---------- */

.posts { list-style: none; border-top: 2px solid var(--ink); }
.posts li { border-bottom: 1px solid var(--hair); }
.posts a { display: grid; grid-template-columns: 150px minmax(0, 1fr) 140px; gap: 8px clamp(20px, 4vw, 64px); padding: clamp(24px, 3vw, 36px) 0; text-decoration: none; align-items: baseline; }
.posts .when { font-family: var(--mono); font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.posts .t { display: block; font-size: var(--t-list); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.posts a:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.posts .dek { display: block; margin-top: 10px; color: var(--ink-2); max-width: 40em; }
.posts .len { font-family: var(--mono); font-size: var(--t-small); color: var(--ink-2); text-align: right; }
.posts .len .label { display: block; margin-top: 6px; }
@media (max-width: 760px) {
  .posts a { grid-template-columns: 1fr; }
  .posts .len { text-align: left; }
}

.post-head { padding: clamp(40px, 6vw, 96px) 0 clamp(28px, 3.5vw, 48px); border-bottom: 1px solid var(--hair); }
.post-head .back { margin-bottom: clamp(20px, 3vw, 40px); }
.post-head h1 { font-weight: 800; font-stretch: 116%; font-size: clamp(40px, 5.4vw, 80px); line-height: 0.98; letter-spacing: -0.025em; max-width: 14em; text-wrap: balance; }
.post-head .deck { margin-top: 22px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-top: 26px; font-size: var(--t-small); color: var(--ink-2); }
.byline .who { color: var(--ink); font-weight: 500; }
.byline .draft { color: var(--ink); }

.prose { max-width: 38rem; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); font-size: 18.5px; line-height: 1.65; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; font-size: var(--t-h3); font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.15; }
.prose h2 + * { margin-top: 0.6em; }
.prose p, .prose li { color: var(--ink); text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair); padding: 16px 0; font-size: var(--t-lead); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.prose figure { margin-top: 2em; margin-bottom: 2em; }
.prose figure svg { width: 100%; height: auto; overflow: visible; }
/* a drawing scrolls sideways inside its own frame on a phone, never the page */
.prose figure.wide { overflow-x: auto; }
.prose figure.wide svg { min-width: 600px; padding: 0 2px; }
.prose figure.wide figcaption { position: sticky; left: 0; max-width: calc(100vw - 32px); }
.prose figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--ink-2); line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: 0.88em; }
.prose .said-line { font-family: var(--mono); font-size: var(--t-small); color: var(--ink-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 12px 0; }

.next-post { border-top: 1px solid var(--hair); padding: 28px 0 56px; }
.next-post .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center; }
.next-post a.t .label { margin-right: 10px; }
.next-post a.t { font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.next-post a.t:hover { text-decoration: underline; text-underline-offset: 5px; }

/* figures in posts: the drawing's own marks */
.fig-ink { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.fig-hair { fill: none; stroke: var(--hair); stroke-width: 1; }
.fig-or { fill: none; stroke: var(--signal); stroke-width: 3; }
.fig-t { font-family: var(--mono); font-size: 13px; fill: var(--ink-2); }
.fig-tb { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--ink); }
.fig-to { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--signal); }
.fig-l { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; fill: var(--ink-2); }
.fig-box { fill: var(--raised); stroke: var(--ink-3); stroke-width: 1.2; }
.fig-box.cp { stroke: var(--ink); stroke-width: 2.4; }
.fig-name { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.fig-name.cp { font-weight: 700; }
.fig-ms { fill: var(--ink); }
.fig-msname { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: var(--invert-ink); }
.fig-arrow { fill: var(--ink-3); }
.fig-arrow.or { fill: var(--signal); }

.acts404 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 20px; }
