:root {
  --paper: #fbfaff;
  --white: #ffffff;
  --ink: #1b1535;
  --ink-2: #463f63;
  --muted: #6e6889;
  --line: #e4def5;
  --lilac: #efe9ff;
  --lilac-2: #e2d8ff;
  --violet: #6b3bff;
  --violet-deep: #5a2beb;
  --violet-mid: #9c7dff;
  --sun: #ffd23f;

  --display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --sans: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 5vw, 64px);
  --r-sm: 6px;
  --r-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Logo ---------- */
.logo {
  font: 600 27px/1 var(--display);
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo .q { color: var(--violet); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--lilac); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--lilac); color: var(--violet-deep); }
.nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--violet); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--muted); }
.kicker { font: 500 16px/1.4 var(--sans); color: var(--violet-deep); margin: 0 0 18px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 16.5px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sun); }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.hero h1 { margin-bottom: 28px; }
.hero .lede { max-width: 36ch; margin-bottom: 40px; }
.hero-art { position: relative; max-width: 480px; justify-self: end; width: 100%; }
.hero-art figcaption {
  margin-top: 22px; font-size: 15px; color: var(--muted);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.hero-art figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.hero-art figcaption i { width: 12px; height: 12px; border-radius: 3px; background: var(--violet); display: inline-block; }
.q-mosaic rect { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero .q-mosaic rect { animation: tile-in .5s cubic-bezier(.2, .8, .2, 1.2) both; animation-delay: var(--d); }
  @keyframes tile-in { from { opacity: 0; transform: scale(.2); } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding-top: 0; }
.section:not(.dark):not(.principles-band) + .section:not(.dark):not(.principles-band):not(.rule-top) { padding-top: 0; }
.statement {
  font: 500 clamp(26px, 2.8vw, 38px)/1.2 var(--display);
  letter-spacing: -0.03em; max-width: 26ch; margin: 0;
}
.statement .soft { color: var(--muted); }
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro p:last-child { margin-bottom: 0; }

/* Four ways we work */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
.way { padding: 28px 26px 30px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.way:nth-child(2) { background: var(--lilac); border-color: var(--lilac); }
.way:nth-child(3) { background: var(--ink); border-color: var(--ink); }
.way:nth-child(3) h3 { color: #fff; }
.way:nth-child(3) p { color: #bdb6d8; }
.way:nth-child(4) { background: var(--violet); border-color: var(--violet); }
.way:nth-child(4) h3 { color: #fff; }
.way:nth-child(4) p { color: #e6ddff; }
.glyph { display: flex; gap: 5px; height: 40px; align-items: flex-end; margin-bottom: 44px; }
.glyph b { display: block; width: 18px; height: 18px; border-radius: 5px; background: var(--violet); }
.glyph b.y { background: var(--sun); }
.glyph b.w { background: #fff; }
.glyph b.l { background: var(--violet-mid); }
.glyph b.k { background: var(--ink); }
.glyph.stack { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; }
.glyph.stack .row { display: flex; gap: 4px; }
.glyph.stack b { width: 14px; height: 14px; border-radius: 4px; }
.way h3 { margin-bottom: 10px; }
.way p { font-size: 16.5px; color: var(--muted); margin: 0; }

/* Shared foundation diagram */
.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .lede { color: #cfc9e8; }
.dark .muted { color: #9f98bd; }
.foundation { margin-top: clamp(40px, 5vw, 56px); }
.products {
  list-style: none; margin: 0; padding: 0 clamp(8px, 3vw, 40px);
  display: flex; gap: 14px; align-items: flex-end;
}
.products li {
  flex: 1; min-width: 0; border-radius: 14px 14px 4px 4px; background: var(--violet); color: #fff;
  padding: 16px 16px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  font: 600 15.5px/1.2 var(--sans);
}
.products svg { width: 22px; height: 22px; flex: none; }
.products span { overflow-wrap: anywhere; }
.products li:nth-child(1) { height: 104px; }
.products li:nth-child(2) { height: 136px; background: var(--violet-mid); color: var(--ink); }
.products li:nth-child(3) { height: 92px;  background: var(--sun); color: var(--ink); }
.products li:nth-child(4) { height: 152px; }
.products li:nth-child(5) { height: 112px; background: #c6b4ff; color: var(--ink); }
.products li:nth-child(6) { height: 128px; background: var(--violet-deep); }
.products li:nth-child(7) { height: 98px;  background: var(--violet-mid); color: var(--ink); }
.slab {
  margin-top: 14px; border-radius: var(--r-lg); background: #2a2248;
  padding: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.slab span {
  background: #342b58; border-radius: 12px; padding: 16px 18px;
  font-size: 16px; font-weight: 500; color: #ece8fb;
}
.diagram-key { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 15px; color: #9f98bd; flex-wrap: wrap; }

/* Principles */
.principles-band { background: var(--lilac); }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  font: 500 clamp(30px, 4.2vw, 60px)/1.05 var(--display); letter-spacing: -0.035em;
  padding: .14em 0; border-bottom: 1.5px solid var(--lilac-2); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.principles li:first-child { border-top: 1.5px solid var(--lilac-2); }
.principles li small {
  font: 400 17px/1.4 var(--sans); letter-spacing: 0; color: var(--ink-2);
  flex: 0 0 24ch; text-align: right;
}
.principles-foot { margin-top: 32px; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.principles-foot p { max-width: 52ch; margin: 0; color: var(--ink-2); }
.sig { font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -0.03em; color: var(--violet-deep); margin: 0; }

/* CTA */
.cta-panel {
  background: var(--violet); color: #fff; border-radius: 32px;
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 40px; align-items: end;
  position: relative; overflow: hidden;
}
.cta-panel h2 { color: #fff; max-width: 22ch; }
.cta-panel p { color: #e6ddff; max-width: 46ch; margin: 20px 0 0; font-size: 19px; }
.cta-panel .tiles { position: absolute; right: -30px; top: -30px; width: 220px; opacity: .18; pointer-events: none; }

/* ---------- Interior page head ---------- */
.page-head { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 48px; align-items: end; }
.page-head h1 { font-size: clamp(40px, 4.6vw, 64px); margin-bottom: 26px; max-width: 22ch; }
.page-head .lede { max-width: 44ch; margin: 0; }
.page-head .mark { width: 100%; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split + .split { margin-top: clamp(48px, 6vw, 80px); }
.split p:last-child { margin-bottom: 0; }
.split h2 + .lede { margin: 24px 0 0; }
.split > div > .muted:first-child { margin-top: 4px; }
.prose-block + .prose-block, .split + .prose-block, .prose-block + .split { margin-top: clamp(48px, 6vw, 80px); }
.prose-block h2 { max-width: 30ch; margin-bottom: clamp(24px, 3vw, 36px); }
.prose-block .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.prose-block .cols p:last-child { margin-bottom: 0; }
.fit-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fit-pair h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.rule-top { border-top: 1px solid var(--line); }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 26px; height: 26px; border-radius: 8px;
  background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b3bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist.no li::before {
  background: #f3f1f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6889' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.link { color: var(--violet-deep); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { color: var(--ink); }

/* Capability chips (approach page) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips span { background: var(--lilac); color: var(--violet-deep); font-weight: 500; font-size: 16px; padding: 10px 18px; border-radius: 999px; }

/* ---------- Criteria ---------- */
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(28px, 3.5vw, 44px) 0 0; }
.spec div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 30px; }
.spec div.hl { background: var(--ink); border-color: var(--ink); }
.spec div.wide { grid-column: 1 / -1; }
.spec div.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; grid-template-rows: auto 1fr; align-items: start; }
.spec div.wide dd { display: contents; }
.spec div.wide dt { grid-column: 1; grid-row: 1; }
.spec div.wide dd strong { grid-column: 1; grid-row: 2; margin-bottom: 0; }
.spec div.wide .body { grid-column: 2; grid-row: 1 / span 2; }
.spec div.wide .body span { display: block; }
.spec div.wide .body span + span { margin-top: 14px; }
@media (max-width: 860px) {
  .spec div.wide { display: block; }
  .spec div.wide dd { display: block; }
  .spec div.wide dd strong { margin-bottom: 10px; }
}
.spec div.hl dt { color: #b3abd4; }
.spec div.hl dd strong { color: #fff; }
.spec div.hl dd span { color: #bdb6d8; }
.spec dt { font-size: 15px; font-weight: 500; color: var(--violet-deep); margin-bottom: 26px; }
.spec dd { margin: 0; }
.spec dd strong { display: block; font: 500 clamp(24px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 10px; color: var(--ink); }
.spec dd span { color: var(--muted); font-size: 16px; }

.share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.share div { border-top: 2px solid var(--violet); padding-top: 20px; }
.share h3 { font-size: 20px; margin-bottom: 8px; }
.share p { color: var(--muted); font-size: 16.5px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: 17px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(107, 59, 255, .14);
}
.form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin: 0; }
.aside-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.aside-block:first-child { padding-top: 0; }
.aside-block h3 { font-size: 20px; margin-bottom: 8px; }
.aside-block p { color: var(--muted); font-size: 16.5px; margin: 0; }
.aside-block .email { font: 500 24px/1.2 var(--display); letter-spacing: -0.02em; color: var(--violet-deep); text-decoration: none; }
.aside-block .email:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { padding: 8px 0 36px; font-size: 15.5px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; align-items: center; padding-top: 32px; position: relative; }
.site-footer .wrap::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.site-footer .logo { font-size: 22px; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer nav a:hover { color: var(--violet-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .ways, .share { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li { flex-direction: column; align-items: flex-start; gap: 10px; padding: .22em 0; }
  .principles li small { text-align: left; flex: none; }
}
@media (max-width: 860px) {
  .hero .wrap, .intro, .split, .fit-pair, .prose-block .cols, .contact-grid, .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: min(460px, 78vw); }
  .page-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-head .mark { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px;
    box-shadow: 0 20px 40px -20px rgba(27, 21, 53, .25);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; }
  .nav a.nav-cta { margin: 4px 0 0; text-align: center; }
  .site-header .wrap { height: 76px; }
  .logo { font-size: 24px; }
  .ways, .share, .spec, .form { grid-template-columns: minmax(0, 1fr); }
  .products { flex-wrap: wrap; gap: 8px; padding: 0; }
  .products li, .products li:nth-child(n) { flex: 1 1 calc(50% - 4px); height: auto; min-height: 84px; border-radius: 14px; }
  .btn { width: 100%; }
  .actions { width: 100%; }
  .form .btn { justify-self: stretch; }
}
@media (max-width: 440px) {
  .slab { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Team ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px 30px; display: flex; flex-direction: column;
}
.member img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 22px;
  background: var(--lilac); box-shadow: 0 0 0 6px var(--lilac); margin: 6px 0 30px 6px;
}
.member h3 { margin-bottom: 4px; }
.member .social { display: inline-flex; vertical-align: -1px; margin-left: 6px; color: var(--muted); transition: color .15s; }
.member .social:hover { color: var(--violet-deep); }
.member:first-child .social { color: #bdb6d8; }
.member:first-child .social:hover { color: #fff; }
.member .role { font-size: 15.5px; font-weight: 600; color: var(--violet-deep); margin: 0 0 16px; }
.member p:last-child { font-size: 16.5px; color: var(--muted); margin: 0; }
.member:first-child { background: var(--ink); border-color: var(--ink); }
.member:first-child img { box-shadow: 0 0 0 6px var(--violet); }
.member:first-child h3 { color: #fff; }
.member:first-child .role { color: var(--violet-mid); }
.member:first-child p:last-child { color: #bdb6d8; }
@media (max-width: 1020px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* Contact form: deal fields, states */
.form[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.deal {
  grid-column: 1 / -1; min-width: 0;
  border: 0; margin: 0; padding: 22px; border-radius: 16px; background: var(--lilac);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end;
}
.deal[hidden] { display: none; }
.deal legend {
  float: left; width: 100%; grid-column: 1 / -1; padding: 0; margin: 0 0 -4px;
  font: 600 17px/1.3 var(--display); letter-spacing: -0.01em; color: var(--violet-deep);
}
.deal .field input, .deal .field select { background: #fff; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 15.5px; color: #b42318; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-success h3 { font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin: 0; }
.form-success:focus { outline: none; }
@media (max-width: 720px) { .deal { grid-template-columns: 1fr; padding: 18px; } }

/* ---------- Blog ---------- */
.blog-body { padding-top: clamp(28px, 3.5vw, 44px); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 52px); }
.topic-chips a { font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); transition: background .15s, border-color .15s, color .15s; }
.topic-chips a:hover { border-color: var(--violet-mid); color: var(--ink); }
.topic-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.link-plain { text-decoration: none; color: var(--violet-deep); }
.link-plain:hover { color: var(--ink); }
a.kicker { display: inline-block; }

.post-featured { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: clamp(40px, 5vw, 64px); }
.post-featured.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.post-featured h2 { margin-bottom: 18px; max-width: 24ch; }
.post-featured h2 a { text-decoration: none; }
.post-featured h2 a:hover { color: var(--violet-deep); }
.post-featured .lede { max-width: 52ch; margin-bottom: 18px; }
.post-featured .post-meta { margin-bottom: 28px; }
.post-featured img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

.post-list { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-row-date { font-size: 15px; color: var(--muted); padding-top: 4px; }
.post-row h3 { margin-bottom: 8px; }
.post-row h3 a { text-decoration: none; }
.post-row h3 a:hover { color: var(--violet-deep); }
.post-row .muted { font-size: 16.5px; margin: 0; max-width: 68ch; }
.post-topic { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--violet-deep); text-decoration: none; background: var(--lilac); padding: 4px 12px; border-radius: 999px; }
.post-topic:hover { background: var(--lilac-2); }
.year-head { font-size: clamp(24px, 2.2vw, 30px); margin: clamp(40px, 5vw, 56px) 0 16px; }
.year-head:first-of-type { margin-top: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; color: var(--muted); margin: 0; }
.post-meta > * + *::before { content: "·"; margin: 0 8px; }
.related-title { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 24px; }

.post { padding-bottom: clamp(56px, 7vw, 96px); }
.post-head { max-width: calc(760px + 2 * var(--gutter)); padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(28px, 3.5vw, 40px); }
.post-head h1 { font-size: clamp(36px, 4.2vw, 56px); margin-bottom: 20px; }
.post-head .lede { margin-bottom: 20px; }
.post-hero { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); margin: 0 auto clamp(32px, 4vw, 56px); }

.prose { max-width: 760px; margin: 0 auto; color: var(--ink-2); font-size: 19px; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.4vw, 32px); margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose h4 { font: 600 19px/1.3 var(--sans); color: var(--ink); margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.2em; }
.prose a { color: var(--violet-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose li + li { margin-top: .35em; }
.prose li.task-list-item { list-style: none; margin-left: -1.3em; }
.prose img { border-radius: 14px; margin: 1.6em auto; height: auto; }
.prose blockquote { border-left: 3px solid var(--violet); padding: 2px 0 2px 22px; margin-left: 0; color: var(--ink); font-size: 20px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font: 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--lilac); color: var(--ink); padding: .12em .4em; border-radius: 5px; }
.prose pre { background: var(--ink); color: #ece8fb; padding: 20px 22px; border-radius: 14px; overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; }

.preview-bar { position: sticky; top: 0; z-index: 20; background: var(--sun); color: var(--ink); text-align: center; font-size: 15px; font-weight: 600; padding: 10px 16px; }

@media (max-width: 860px) {
  .post-featured.has-image { grid-template-columns: minmax(0, 1fr); }
  .post-featured.has-image > a { order: -1; }
}
@media (max-width: 720px) {
  .post-row { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .post-row-date { padding-top: 0; }
  .post-featured .btn { width: 100%; }
  .prose { font-size: 18px; }
}
