/*
 * One stylesheet, no build step.
 *
 * The values below are DEFAULTS. Per-site accent, typeface pairing and masthead
 * ornament are injected as custom properties from `src/theme.js`, driven by
 * `visual` in that site's site.json — so a pin and the page it links to look
 * like one publication.
 *
 * They were hardcoded here until 2026-08-01, which meant every site in the
 * portfolio rendered in one accent and one display face regardless of its
 * config. Two sites launched looking identical apart from the masthead text,
 * while their pins were correctly branded — the worst arrangement, because a
 * reader arriving from Pinterest lands on something that does not look like
 * what they clicked. Change a default here and you change every site that has
 * not set that value; change site.json to change one.
 */

:root {
  --accent: #c2185b;
  --accent-soft: #fdf2f6;
  --ink: #1a1618;
  --ink-2: #574e52;
  --muted: #8c8289;
  --surface: #fffdfc;
  --surface-2: #f7f2f4;
  --line: #ece4e7;
  --shadow: 0 1px 2px rgb(26 22 24 / 0.04), 0 8px 24px -12px rgb(26 22 24 / 0.14);
  --measure: 40rem;
  --display: Didot, "Bodoni 72", "Playfair Display", Baskerville, Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

/*
 * No dark block here.
 *
 * Light and dark are a per-shell decision now (src/shells.js) — some sites are
 * light only, one is dark only, some follow the system. A second palette at
 * this level would race the shell's and win or lose by source order, which is
 * not a thing anybody should have to reason about.
 */

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

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

body {
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.a4q-pnhct9 { position: absolute; left: -9999px; }
.a4q-pnhct9:focus {
  left: 1rem; top: 1rem; z-index: 10; background: var(--surface);
  padding: .6rem 1rem; border: 2px solid var(--accent); border-radius: 8px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.a4q-c3w0wn { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }
.a4q-cvf3kv { max-width: 62rem; }

/* ── header ──────────────────────────────────────────────────────────────── */

.a4q-ct2b87 {
  padding: 2.2rem 0 1.8rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.a4q-oy0vgw {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .01em;
  text-decoration: none;
  display: inline-block;
}
.a4q-a8rf1f {
  color: var(--muted); font-size: .9rem; margin-top: .35rem;
  max-width: 34rem; margin-inline: auto;
}

/* A hairline of brand under the masthead. Shape is set per ornament in theme.js. */
.a4q-ct2b87::after {
  content: ""; display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 1.1rem auto -1.8rem;
}

/* ── index ───────────────────────────────────────────────────────────────── */

.a4q-cy83bt { list-style: none; padding: 0; display: grid; gap: 1.25rem; }

.a4q-c0kbu6 {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.a4q-c0kbu6:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
}

.a4q-cpuaai {
  text-decoration: none; display: grid; gap: 1.25rem;
  grid-template-columns: 116px 1fr;
  align-items: center;
  padding: 1.1rem 1.35rem 1.1rem 1.1rem;
}
.a4q-c0kbu6:not(:has(.a4q-cfftxp)) .a4q-cpuaai { grid-template-columns: 1fr; }

.a4q-cfftxp {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); aspect-ratio: 2 / 3;
}
.a4q-cfftxp img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.a4q-j74673 {
  font-family: var(--display);
  font-size: 1.4rem; line-height: 1.22; letter-spacing: .002em;
  text-wrap: balance; margin-top: .15rem;
}
.a4q-cwjc79 {
  color: var(--ink-2); margin-top: .45rem; font-size: .95rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.a4q-sue6t6 { color: var(--muted); font-size: .8rem; margin-top: .5rem; }

/* The newest guide gets the room. */
.a4q-z1xltp .a4q-cpuaai { grid-template-columns: 190px 1fr; gap: 1.75rem; padding: 1.5rem; }
.a4q-z1xltp .a4q-j74673 { font-size: 1.95rem; }
.a4q-z1xltp .a4q-cwjc79 { -webkit-line-clamp: 3; font-size: 1rem; }

@media (max-width: 34rem) {
  .a4q-cpuaai,
  .a4q-z1xltp .a4q-cpuaai { grid-template-columns: 92px 1fr; gap: 1rem; padding: 1rem; }
  .a4q-z1xltp .a4q-j74673 { font-size: 1.4rem; }
}

.a4q-c6fy1i {
  display: inline-block; font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 650; color: var(--accent);
  background: var(--accent-soft); padding: .18rem .5rem; border-radius: 100px;
  margin-bottom: .45rem;
}

.a4q-cplgwc { color: var(--muted); }

.a4q-ieqhic {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: .85rem 1.1rem; margin-bottom: 2rem; font-size: .9rem;
  border-radius: 0 8px 8px 0;
}
.a4q-cx3pw4 { border-left-color: #d9840b; }

.a4q-b2c9so {
  font-family: var(--display); font-size: 1.25rem;
  margin: 3rem 0 .9rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.a4q-vu2b3k { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.a4q-c8vfx1 { color: var(--muted); display: block; font-size: .8rem; }

/* ── post ────────────────────────────────────────────────────────────────── */

/* Only drawn by the `banner` header variant; see src/reading.js. */
.a4q-cdcwmg {
  margin: 0 0 1.9rem; border-radius: var(--radius); overflow: hidden;
  border: var(--border, 0px) solid var(--line);
}
.a4q-cdcwmg img { display: block; width: 100%; height: auto; }

.a4q-c8wq7y { text-align: center; margin-bottom: 2.75rem; }
.a4q-cqql1r {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.1; letter-spacing: .004em; text-wrap: balance;
}
.a4q-cn0883 { color: var(--muted); font-size: .85rem; margin-top: .85rem; }

.a4q-c9capj {
  margin-top: 1.6rem; padding: .8rem 1.1rem;
  background: var(--accent-soft); border-radius: 10px;
  color: var(--ink-2); font-size: .84rem; line-height: 1.55; text-align: left;
}

.a4q-cwlxv6 > *:first-child { margin-top: 0; }
.a4q-cwlxv6 h2 {
  font-family: var(--display); font-size: 1.75rem; line-height: 1.2;
  margin: 3rem 0 .9rem; letter-spacing: .003em; text-wrap: balance;
}
.a4q-cwlxv6 h3 { font-size: 1.15rem; margin: 2.1rem 0 .6rem; }
.a4q-cwlxv6 p { margin: 1.15rem 0; }
.a4q-cwlxv6 ul, .a4q-cwlxv6 ol { margin: 1.15rem 0 1.15rem 1.3rem; }
.a4q-cwlxv6 li { margin: .45rem 0; }
.a4q-cwlxv6 li::marker { color: var(--accent); }
.a4q-cwlxv6 strong { font-weight: 650; }
.a4q-cwlxv6 a { color: var(--accent); text-underline-offset: 3px; }

.a4q-cwlxv6 blockquote {
  border-left: 3px solid var(--accent); padding-left: 1.1rem;
  margin: 1.8rem 0; color: var(--ink-2); font-style: italic;
}
.a4q-cwlxv6 code {
  background: var(--surface-2); padding: .12em .38em; border-radius: 5px; font-size: .88em;
}
.a4q-cwlxv6 pre {
  background: var(--surface-2); padding: 1rem 1.1rem; border-radius: 10px;
  overflow-x: auto; margin: 1.5rem 0;
}
.a4q-cwlxv6 pre code { background: none; padding: 0; }

/* Wide content scrolls inside its own box; the page never scrolls sideways. */
.a4q-cwlxv6 table {
  display: block; overflow-x: auto; border-collapse: collapse; margin: 1.7rem 0; font-size: .93rem;
}
.a4q-cwlxv6 th, .a4q-cwlxv6 td {
  border-bottom: 1px solid var(--line); padding: .65rem .9rem; text-align: left; white-space: nowrap;
}
.a4q-cwlxv6 th { font-weight: 650; }

/* ── figures ─────────────────────────────────────────────────────────────── */

/*
 * The chart, the stat card and the pull quote, breaking out of the measure.
 *
 * Wider than the text on purpose: a figure that lines up exactly with the
 * column reads as another paragraph, and the point of lifting it out is that
 * the eye stops.
 */
.a4q-cqyy9i {
  margin: 2.5rem calc(-1 * clamp(0px, 4vw, 3rem));
  text-align: center;
}
.a4q-cqyy9i img {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); display: block;
}
.a4q-cqyy9i figcaption {
  color: var(--muted); font-size: .8rem; margin-top: .6rem; font-style: italic;
}
.a4q-sub9wy img, .a4q-cogrlg img { max-width: 26rem; margin-inline: auto; }

/* ── save block ──────────────────────────────────────────────────────────── */

.a4q-c4x0eo {
  margin-top: 3.5rem; padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2);
  display: grid; grid-template-columns: 132px 1fr; gap: 1.4rem; align-items: center;
}
.a4q-c28z7i {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: block;
}
.a4q-cnitb6 h2 { font-family: var(--display); font-size: 1.35rem; }
.a4q-cnitb6 p { color: var(--ink-2); font-size: .92rem; margin-top: .35rem; }
.a4q-c646vz {
  display: inline-block; margin-top: .9rem;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: 100px; font-size: .88rem; font-weight: 600;
  transition: filter .15s ease;
}
.a4q-c646vz:hover { filter: brightness(1.08); }

@media (max-width: 30rem) {
  .a4q-c4x0eo { grid-template-columns: 1fr; text-align: center; }
  .a4q-c28z7i { max-width: 190px; margin-inline: auto; }
}

/* ── faq / sources ───────────────────────────────────────────────────────── */

.a4q-lvswhy, .a4q-d3teso { margin-top: 3.5rem; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.a4q-lvswhy h2, .a4q-d3teso h2 { font-family: var(--display); font-size: 1.45rem; margin-bottom: 1rem; }
.a4q-ctiqhv { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.a4q-ctiqhv summary { cursor: pointer; font-weight: 600; }
.a4q-ctiqhv summary::marker { color: var(--accent); }
.a4q-ctiqhv p { margin-top: .6rem; color: var(--ink-2); }

.a4q-d3teso { font-size: .89rem; }
.a4q-d3teso ol { margin-left: 1.2rem; }
.a4q-d3teso li { margin: .5rem 0; }
.a4q-d3teso li::marker { color: var(--accent); }
.a4q-cjtwnt { color: var(--muted); }

/* ── footer ──────────────────────────────────────────────────────────────── */

.a4q-cucko2 {
  border-top: 1px solid var(--line); margin-top: 5rem; padding: 2.2rem 0 4rem;
  color: var(--muted); font-size: .85rem; text-align: center;
}
.a4q-wswlr8 { max-width: 42rem; margin-inline: auto; }
.a4q-cklpzo { margin-top: .9rem; }
.a4q-cucko2 a { color: var(--muted); }

:root { color-scheme: light dark;
    --surface: #f7f7f5;
    --surface-2: #ececE8;
    --ink: #16181a;
    --ink-2: #4b4f52;
    --muted: #7d8285;
    --line: #20242a;
    --shadow: none;
    --radius: 0px;
    --measure: 44rem;
    --pad: 1rem;
    --gap: .75rem;
    --title-scale: 1.25;
    --border: 2px; }
@media (prefers-color-scheme: dark) { :root {
    --surface: #141517;
    --surface-2: #1c1e21;
    --ink: #f2f3f4;
    --ink-2: #b3b8bc;
    --muted: #7d8285;
    --line: #3c4248;
    --shadow: none; } }

.a4q-c0kbu6 { border: 2px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.a4q-c0kbu6:hover {
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}
.a4q-cy83bt { gap: var(--gap); }
.a4q-cpuaai { padding: var(--pad); }
.a4q-j74673 { font-size: calc(var(--title-scale) * 1rem); }
:root {
    --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --display-tracking: -0.9px;
    --display-weight: 700;
    --accent: #4b60b7;
    --accent-soft: color-mix(in oklab, var(--accent) 7%, var(--surface));
  }
  @media (prefers-color-scheme: dark) {
    :root { --accent: color-mix(in oklab, #4b60b7 72%, white); --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--surface)); }
  }
  .a4q-oy0vgw {
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
  }
  .a4q-ct2b87 {
  }
  .a4q-ct2b87::after {width: 48px; height: 3px; border-radius: 2px;
  }


.a4q-cwlxv6 { font-size: 16px; line-height: 1.62; }
.a4q-cwlxv6 h2 { font-size: 1.3rem; }

.a4q-cwlxv6 > p + p { margin-top: 1em; }
.a4q-c8wq7y {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr);
  column-gap: 1.6rem; row-gap: .9rem; align-items: baseline; text-align: left;
}
.a4q-c8wq7y > * { grid-column: 2; }
.a4q-cn0883 { grid-column: 1; grid-row: 1; margin: 0; text-align: left; }
@media (max-width: 40rem) {
  .a4q-c8wq7y { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; }
  .a4q-c8wq7y > *, .a4q-cn0883 { grid-column: 1; }
  .a4q-cn0883 { grid-row: auto; order: -1; }
}

.a4q-ct2b87 .wrap--flush { display: flex; align-items: baseline; gap: 1rem; justify-content: flex-start; text-align: left; }
.a4q-oy0vgw { font-size: 1.35rem; }
.a4q-a8rf1f { margin: 0; padding-left: 1rem; border-left: 1px solid var(--line); }
/* No cards at all: a reading list with dotted rules. */
.a4q-c0kbu6 { border: 0; border-radius: 0; box-shadow: none; background: none; border-bottom: 1px dotted var(--line); }
.a4q-c0kbu6:hover { transform: none; box-shadow: none; }
.a4q-cy83bt { gap: 0; }
.a4q-c6fy1i { background: none; border: 1px solid var(--line); }

/* Reading page: small-caps headings, disclosure as a plain aside. */
.a4q-cwlxv6 h2 { font-variant: small-caps; letter-spacing: 0.06em; font-weight: 600; }
.a4q-c9capj { background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; font-style: italic; }
