/* isakvidinghoff.com: one stylesheet, self-hosted fonts, no third-party assets.
   Colours follow the shared book palette in offers/brand-brief.md section 4, plus the teal
   from Isak's portrait. Clockwise (headings) is the face the old site used; the body uses the
   system sans, close to the Inter of the old site. Layout: wide sections for the home page and
   lists, one narrow reading column for articles. */

@font-face {
  font-family: "Clockwise";
  src: url("fonts/clockwise-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Clockwise";
  src: url("fonts/clockwise-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f8f7f4;
  --surface: #ffffff;
  --ink: #243042;
  --deep: #2c425b;
  --muted: #5f6e77;
  --sage: #4e7a6e;
  --sage-light: #6c9b8e;
  --teal: #7cc4c0;
  --cream: #e8c0a3;
  --cream-soft: #f6eadf;
  --alt: #eff1ee;
  --rule: #e2ddd4;
  --shadow: 0 1px 2px rgba(36, 48, 66, 0.06), 0 8px 24px rgba(36, 48, 66, 0.06);
  --display: "Clockwise", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --narrow: 42rem;
  --wide: 72rem;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131920;
    --surface: #1b232d;
    --ink: #ebe7e0;
    --deep: #bcd0e4;
    --muted: #a3afba;
    --sage: #8fc2b3;
    --sage-light: #6c9b8e;
    --teal: #4f9c98;
    --cream: #c79a7a;
    --cream-soft: #2a241f;
    --alt: #171e26;
    --rule: #2d3743;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--sage); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 0.75rem; }

.wrap, .wrap-narrow {
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
.wrap { max-width: calc(var(--wide) + 2.5rem); }
.wrap-narrow { max-width: calc(var(--narrow) + 2.5rem); }

.preview-banner {
  margin: 0;
  padding: 0.4rem 1rem;
  background: var(--cream);
  color: #243042;
  font-size: 0.85rem;
  text-align: center;
}

/* Header */
.site-header { padding-block: 1.25rem; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.brand { display: inline-block; line-height: 0; }
.brand img { width: 180px; height: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 1rem; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }

/* Shared pieces */
.eyebrow { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.card-meta { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }
.standfirst, .lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }
.standfirst p, .lead p { margin: 0 0 0.75rem; }

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--deep);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--deep);
}
.button:hover { background: var(--sage); border-color: var(--sage); color: var(--paper); }
.button.ghost { background: transparent; color: var(--deep); }
.button.ghost:hover { background: var(--deep); color: var(--paper); border-color: var(--deep); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

.section { padding-block: 3.5rem; }
.section-tight { padding-block: 1rem 3.5rem; }
.section-alt { background: var(--alt); }
.section-title { margin-top: 0; margin-bottom: 1.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.5rem; }
.section-head .section-title { margin-bottom: 0; }

/* Home */
.hero { padding-block: 2.5rem 4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-text { min-width: 0; }
.portrait { margin: 0; justify-self: end; width: min(100%, 26rem); }
.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--teal), 0 24px 60px rgba(44, 66, 91, 0.25);
}

.topics, .cards, .shows { display: grid; gap: 1.25rem; }
.topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shows { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.topic, .card, .show-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.topic p { color: var(--muted); margin: 0 0 1rem; }
.topic ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.topic li a { font-weight: 600; }

.card { box-shadow: var(--shadow); transition: transform 0.15s ease; position: relative; }
.card:hover { transform: translateY(-2px); }
.card h2, .card h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h2 a:hover, .card h3 a:hover { color: var(--sage); }
.card p:last-child { margin: 0; color: var(--muted); }

.show-card h2, .show-card h3 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.show-card h3 a { color: var(--ink); }
.show-card > p { color: var(--muted); }

.chips { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--deep);
  font-size: 0.9rem;
  text-decoration: none;
}
.chips a:hover { border-color: var(--sage); color: var(--sage); }

.book { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 3rem; align-items: center; max-width: var(--wide); background: var(--cream-soft); border-radius: 24px; padding: 2.5rem; }
.book h2 { margin-top: 0; }
.book-cover { width: 100%; height: auto; border-radius: 4px; max-width: 12rem; filter: drop-shadow(0 12px 24px rgba(36, 48, 66, 0.2)); }
.cover-paper { fill: #f8f7f4; }
.cover-band { fill: #e8c0a3; }
.cover-band-text { fill: #243042; font: 600 9px var(--sans); letter-spacing: 0.2em; }
.cover-title { fill: #2c425b; font: 700 30px var(--display); }
.cover-line { fill: none; stroke: #6c9b8e; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cover-author { fill: #5f6e77; font: 600 10px var(--sans); letter-spacing: 0.18em; }
.soon { display: inline-block; margin: 0.5rem 0 0; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--surface); color: var(--sage); font-size: 0.85rem; font-weight: 600; }

.about-strip { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.about-strip img { width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--teal); }
.about-strip h2 { margin-top: 0; }

/* Page and article headers */
.page-header, .post-header { padding-top: 2.5rem; padding-bottom: 1rem; }
.page-portrait { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--teal); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 0.92rem; }
.post-meta img { width: 32px; height: 32px; border-radius: 50%; }
.badge { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--cream-soft); color: var(--ink); font-size: 0.8rem; border: 1px solid var(--cream); }

/* Reading column */
.prose { font-size: 1.125rem; line-height: 1.75; padding-bottom: 2rem; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--sage); }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--cream-soft);
  border-left: 4px solid var(--sage-light);
  border-radius: 0 10px 10px 0;
}
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose .try { margin: 2.5rem 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--sage); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose .try h2 { margin-top: 0; font-size: 1.35rem; color: var(--sage); }
.prose .try > :last-child { margin-bottom: 0; }
.prose .free-note { padding: 1rem 1.25rem; background: var(--alt); border-radius: 10px; }
.prose .sources { font-size: 0.92rem; color: var(--muted); }
.prose .sources h2 { font-size: 1.1rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { margin: 0; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--alt); font-size: 0.85rem; color: var(--muted); }

.author-box { display: flex; align-items: center; gap: 1rem; padding-block: 1.5rem 3rem; color: var(--muted); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 0; }

.episodes { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 1rem; }
.episodes li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.episodes h3 { font-size: 1.2rem; margin: 0 0 0.25rem; }
.episodes h3 a { color: var(--ink); text-decoration: none; }
.episodes h3 a:hover { color: var(--sage); text-decoration: underline; }
.episodes p { margin: 0 0 0.25rem; color: var(--muted); }
.ep-number { font: 700 1.5rem/1 var(--display); color: var(--sage); }

/* Footer */
.site-footer { background: var(--deep); color: #dfe6ee; margin-top: 0; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-block: 3rem 2rem; }
.footer-grid p { margin: 0 0 0.5rem; }
.footer-grid nav { display: grid; gap: 0.4rem; align-content: start; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-grid .footer-name { margin-bottom: 1rem; line-height: 0; }
.footer-name img { width: 180px; height: auto; }
.footer-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b9c7d6; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-block: 1rem 2rem; font-size: 0.88rem; }
.footer-base p { margin: 0; }
@media (prefers-color-scheme: dark) {
  .site-footer { background: #0d1217; }
}

/* Signature: the steady line (level, a sharp drop, then lower and steady). It draws itself once. */
.steady-line { display: block; width: 100%; height: 100%; overflow: visible; }
.steady-line path { fill: none; stroke: var(--sage-light); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-line { max-width: calc(var(--wide) + 2.5rem); margin: 2.5rem auto 0; padding-inline: 1.25rem; height: 3.5rem; }
.hero-line .steady-line path { stroke-dashoffset: 1; animation: draw-line 2.4s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60rem;
  height: 44rem;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 28%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero, .hero-grid { isolation: isolate; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--cream) 70%, transparent) 62%, color-mix(in srgb, var(--cream) 70%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.05em;
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 0.92rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts span::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--sage-light); }
.portrait { position: relative; }
.portrait::after {
  content: "";
  position: absolute;
  inset: auto -1.25rem -1.25rem auto;
  width: 45%;
  height: 45%;
  border-radius: 28px;
  background: repeating-linear-gradient(135deg, var(--cream) 0 2px, transparent 2px 10px);
  opacity: 0.55;
  z-index: -1;
}
.section-note { margin: 0; color: var(--muted); }

/* Topic cards with icons */
.icon { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topic { display: flex; flex-direction: column; border-top: 0; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.topic:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(36, 48, 66, 0.06), 0 16px 40px rgba(36, 48, 66, 0.1); }
.topic > .icon { width: 2.75rem; height: 2.75rem; padding: 0.6rem; margin-bottom: 1rem; border-radius: 12px; color: var(--sage); background: color-mix(in srgb, var(--sage-light) 16%, transparent); }
.topic h3 a { color: var(--ink); text-decoration: none; }
.topic h3 a:hover { color: var(--sage); }
.topic ul { margin-bottom: 1.25rem; }
.topic li a { font-weight: 500; color: var(--ink); text-decoration-color: var(--rule); }
.topic li a:hover { color: var(--sage); text-decoration-color: currentColor; }
.topic-more { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.92rem; }
.topic-more a { color: var(--sage); font-weight: 600; text-decoration: none; }
.topic-more a::after { content: " →"; }
.topics-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topics-small .topic p { margin: 0; }
.section-title .icon { width: 1.6rem; height: 1.6rem; margin-right: 0.6rem; vertical-align: -0.15em; color: var(--sage); }

/* Featured article: two columns wide, two rows tall, deep blue */
.cards-feature .card-featured { grid-column: span 2; grid-row: span 2; }
.card-featured { display: flex; flex-direction: column; justify-content: flex-end; min-height: 20rem; padding: 2rem; background: #2c425b; border-color: #2c425b; color: #dfe6ee; overflow: hidden; }
@media (prefers-color-scheme: dark) { .card-featured { background: #1f3247; border-color: #2d4660; } }
.card-featured .steady-line { position: absolute; top: 2.25rem; left: 2rem; width: calc(100% - 4rem); height: 4rem; }
.card-featured .steady-line path { stroke: var(--teal); opacity: 0.8; }
.card-featured .card-meta { color: #b9c7d6; }
.card-featured h2, .card-featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.75rem; }
.card-featured h2 a, .card-featured h3 a { color: #ffffff; }
.card-featured h2 a:hover, .card-featured h3 a:hover { color: var(--teal); }
.card-featured p:last-child, .card-featured p { color: #dfe6ee; }
.card-featured .read-more { margin: 1rem 0 0; font-weight: 600; color: var(--teal); }
.card-featured > p:not(.card-meta):not(.read-more) { font-size: 1.05rem; max-width: 36rem; }

/* Quote band */
.quote-band { padding-block: 4.5rem; background: #2c425b; text-align: center; }
@media (prefers-color-scheme: dark) { .quote-band { background: #1f3247; } }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { margin: 0; font: 700 clamp(1.6rem, 3.4vw, 2.5rem)/1.25 var(--display); color: #ffffff; text-wrap: balance; letter-spacing: 0.01em; }
.quote-band blockquote p::before { content: "“"; display: block; font-size: 4rem; line-height: 0.6; margin-bottom: 0.75rem; color: #7cc4c0; }
.quote-band footer { margin-top: 1.25rem; color: #b9c7d6; font-size: 0.95rem; }

.book-art { perspective: 800px; }
.book-art .book-cover { transform: rotate(-4deg); transition: transform 0.3s ease; }
.book:hover .book-art .book-cover { transform: rotate(0deg) translateY(-4px); }

/* Article: reading progress, contents list beside the text on wide screens */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--sage-light); transform-origin: 0 50%; transform: scaleX(0); z-index: 20; display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: read-progress linear both; animation-timeline: scroll(root); }
  @keyframes read-progress { to { transform: scaleX(1); } }
}
.post-layout { max-width: calc(var(--narrow) + 2.5rem); margin: 0 auto; padding-inline: 1.25rem; }
.post-layout .prose { padding-inline: 0; }
.toc { margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); font-size: 0.95rem; }
.toc-title { margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.toc li::marker { color: var(--sage-light); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 1.5rem; }
@media (min-width: 72rem) {
  .post-layout.has-toc { max-width: calc(var(--narrow) + 2 * 16rem + 2.5rem + 6rem); display: grid; grid-template-columns: 16rem minmax(0, var(--narrow)) 16rem; gap: 3rem; align-items: start; }
  .post-layout.has-toc .toc { grid-column: 3; grid-row: 1; position: sticky; top: 2rem; margin: 0.5rem 0 0; padding: 0 0 0 1.25rem; border: 0; border-left: 2px solid var(--rule); border-radius: 0; background: none; }
  .post-layout.has-toc .prose { grid-column: 2; grid-row: 1; }
}
.prose > p:first-of-type { font-size: 1.2rem; color: var(--ink); }

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.jump a { padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); color: var(--deep); text-decoration: none; font-size: 0.92rem; }
.jump a:hover { border-color: var(--sage); color: var(--sage); }
.topic-group + .topic-group { padding-top: 1rem; }

/* Watch box on articles */
.prose .watch { margin: 2.5rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.prose .watch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.prose .watch li { margin: 0; }
.prose .watch a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.prose .watch a:hover { color: var(--sage); }
.play { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #2c425b; position: relative; }
.play::after { content: ""; position: absolute; left: 0.85rem; top: 0.65rem; border-style: solid; border-width: 0.48rem 0 0.48rem 0.75rem; border-color: transparent transparent transparent #ffffff; }
.watch-length { color: var(--muted); font-weight: 400; font-size: 0.88rem; white-space: nowrap; }

/* Purpose self-check */
.check-band { padding-block: 1rem 3.5rem; background: var(--paper); }
.check-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: 2rem 2.25rem; border-radius: 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--teal) 22%, var(--surface)), var(--surface) 70%); border: 1px solid var(--rule); max-width: var(--wide); }
.wrap.check-band-inner { padding: 2rem 2.25rem; }
.check-band h2 { margin: 0 0 0.5rem; }
.check-band p { margin: 0; color: var(--muted); }
.check-band .eyebrow { margin-bottom: 0.5rem; color: var(--sage); }
.check-band .button { white-space: nowrap; }
.check-header .badge { display: inline-block; }
.check { padding-bottom: 2rem; }
.check-how { padding: 1rem 1.25rem; border-radius: 10px; background: var(--alt); color: var(--ink); }
.check-step { margin: 2.5rem 0; }
.check-step-head { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.check-step-number { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #2c425b; color: #ffffff; font: 700 1.3rem/1 var(--display); }
.check-step-head h3 { margin: 0.35rem 0 0.25rem; font-size: 1.5rem; }
.check-step-head p { margin: 0; color: var(--muted); }
.check-questions { list-style: none; counter-reset: none; margin: 1.25rem 0 0; padding: 0 0 0 4rem; display: grid; gap: 1rem; }
.check-questions li { padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.check-q { margin: 0 0 0.5rem; font: 700 1.2rem/1.35 var(--display); color: var(--ink); letter-spacing: 0.01em; }
.check-q::before { content: "Q" counter(list-item) "  "; color: var(--sage); }
.check-questions details { color: var(--muted); font-size: 0.98rem; }
.check-questions summary { cursor: pointer; color: var(--sage); font-weight: 600; font-size: 0.9rem; }
.check-questions details p { margin: 0.5rem 0 0; }
.check-lines { height: 3.2rem; margin-top: 0.75rem; background: repeating-linear-gradient(transparent 0 1.55rem, var(--rule) 1.55rem 1.6rem); display: none; }
.check-statement { margin: 3rem 0 2rem; padding: 2rem; border-radius: 24px; background: #2c425b; color: #dfe6ee; }
.check-statement h3 { margin: 0 0 0.5rem; color: #ffffff; }
.check-statement .template { margin: 1.25rem 0; font: 700 clamp(1.25rem, 2.4vw, 1.6rem)/1.45 var(--display); color: #ffffff; letter-spacing: 0.01em; }
.check-statement .blank { padding: 0 0.3em; border-bottom: 2px dashed #7cc4c0; color: #7cc4c0; }
.check-statement .example { margin: 0; color: #b9c7d6; }
.check-statement .example strong { color: #ffffff; }
@media (prefers-color-scheme: dark) { .check-statement, .check-step-number { background: #1f3247; } }
@media (max-width: 44rem) {
  .check-questions { padding-left: 0; }
  .check-band-inner, .wrap.check-band-inner { padding: 1.5rem 1.25rem; border-radius: 0; }
  .check-statement { padding: 1.5rem 1.25rem; margin-inline: -1.25rem; border-radius: 0; }
}
@media print {
  .site-header, .site-footer, .preview-banner, .check-band, .author-box, .check-next, .progress { display: none; }
  .check-questions details { display: none; }
  .check-lines { display: block; }
  .check-questions li { box-shadow: none; break-inside: avoid; }
  .check-statement { background: none; color: #243042; border: 1px solid #ccc; }
  .check-statement h3, .check-statement .template, .check-statement .example strong { color: #243042; }
}

/* Purpose assessment: one step at a time, scored in the browser */
.assess { margin: 1rem 0 3rem; }
.assess-bar { height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; margin-bottom: 1.5rem; }
.assess-bar-fill { height: 100%; width: 0; background: var(--sage); transition: width 0.3s ease; }
.assess-step h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.assess fieldset { margin: 0 0 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.assess legend { padding: 0; font-weight: 600; color: var(--ink); float: left; width: 100%; margin-bottom: 0.75rem; }
.assess legend + * { clear: both; }
.assess fieldset.needs-answer { border-color: #c4603f; box-shadow: 0 0 0 2px color-mix(in srgb, #c4603f 30%, transparent); }
.agree-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
.agree-scale label, .pick { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; font-size: 0.9rem; line-height: 1.25; }
.agree-scale label { flex-direction: column; justify-content: flex-start; text-align: center; gap: 0.35rem; }
.agree-scale input, .pick input { accent-color: var(--sage); margin: 0; flex-shrink: 0; }
.agree-scale label:has(input:checked), .pick:has(input:checked) { border-color: var(--sage); background: color-mix(in srgb, var(--sage) 12%, var(--surface)); }
.pick:has(input:disabled) { opacity: 0.5; cursor: default; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; }
.pick-wide { margin-bottom: 0.5rem; font-size: 1rem; }
.lived-prompt { margin: 1.5rem 0 0.75rem; font-weight: 600; }
.assess .hint { color: var(--muted); }
.assess .own { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.assess textarea { width: 100%; box-sizing: border-box; padding: 0.7rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.assess-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.assess-nav [hidden] { display: inline-block; visibility: hidden; }
.assess-progress { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.report { margin: 1rem 0 3rem; outline: none; }
.report h3 { margin: 2.25rem 0 1rem; }
.report h4 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.report-profile { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.report-lead { font-size: 1.1rem; }
.report-note { padding: 0.8rem 1rem; border-radius: 10px; background: var(--cream-soft); border: 1px solid var(--cream); }
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.meter { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.meter-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.meter-head span { font-size: 0.85rem; font-weight: 600; color: var(--sage); }
.meter-track { height: 8px; margin: 0.5rem 0 0.75rem; border-radius: 999px; background: var(--rule); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--sage); }
.meter-low .meter-fill { background: var(--cream); }
.meter p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ingredient .meter { margin-top: 0.75rem; }
.report-pattern, .ingredient, .report-step { margin-bottom: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--alt); }
.report-pattern p, .report-step p { margin: 0; }
.ingredients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ingredient { margin: 0; }
.ingredient ul { margin: 0.25rem 0 0.75rem; padding-left: 1.1rem; }
.ingredient p { margin: 0.25rem 0; }
.lived-tag { color: var(--muted); font-size: 0.85rem; }
.report-statement { margin: 2.25rem 0 1rem; }
.report-statement h3, .report-step h3 { margin-top: 0; }
.report-signup { margin: 2rem 0 1rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--sage); background: var(--surface); }
.report-signup h3 { margin-top: 0; }
.signup-form { display: grid; gap: 0.4rem; }
.signup-form label { font-weight: 600; }
.signup-form input[type="email"], .signup-form input[type="text"] { width: 100%; box-sizing: border-box; padding: 0.7rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.signup-form .signup-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin-top: 0.5rem; }
.signup-form .signup-consent input { margin-top: 0.3rem; flex: none; }
.signup-form .signup-privacy, .signup-form .signup-status { font-size: 0.9rem; color: var(--muted); }
.signup-form .signup-field-error { margin: 0; color: var(--ink); font-weight: 600; }
.signup-form .signup-field-error:empty { display: none; }
.signup-form button { justify-self: start; margin-top: 0.5rem; }
.signup-form [aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.signup-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Quiz engine v2 (quiz-engine.cjs) */
.quiz-notice { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--alt); font-size: 0.95rem; }
.quiz-form { display: grid; gap: 1.25rem; }
.quiz-q { margin: 0; padding: 0; border: 0; }
.quiz-q legend { font-weight: 600; margin-bottom: 0.5rem; }
.quiz-n { color: var(--sage); }
.quiz-options { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.quiz-options label { display: flex; gap: 0.4rem; align-items: center; }
.quiz-missing { margin: 0; font-weight: 600; }
.quiz-form button { justify-self: start; }
.quiz-report h2 { margin-top: 2rem; }
.quiz-step { padding: 0.75rem 1rem; border-left: 3px solid var(--sage); background: var(--surface); }
.after-signup { margin: 2rem 0 1rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); }
.after-signup h3 { margin-top: 0; }
.after-gift h4, .after-offer h4 { margin: 1rem 0 0.25rem; }
.after-offer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.report-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.report-deeper { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.dive { margin-top: 1.5rem; }
.dive h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.report-small { color: var(--muted); font-size: 0.85rem; }
.assess-intro { margin: 0 0 1.5rem; padding: 1rem 1.25rem 1rem 2.25rem; border-radius: var(--radius); background: var(--alt); }
.assess-intro li { margin: 0.25rem 0; }
.report-hard, .report-urgent { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--cream-soft); border: 1px solid var(--cream); }
.report-urgent { border-width: 2px; }
.report-hard h3, .report-urgent h3 { margin-top: 0; }
.assess-help { margin: 1rem 0 0; color: var(--muted); font-size: 0.85rem; }
.assess-step h2:focus:not(:focus-visible) { outline: none; }
.fit { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.fit button { font: inherit; padding: 0.15rem 0.7rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.fit button:hover { border-color: var(--sage); }
.basis { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.basis summary { cursor: pointer; color: var(--sage); }
.basis ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.report-details { margin: 2rem 0; }
.report-details > summary { cursor: pointer; font: 700 1.2rem/1.3 var(--display); color: var(--ink); margin-bottom: 1rem; }
.report-details .ingredients { margin-top: 1rem; }
.check-paper-title { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
@media (max-width: 44rem) {
  .agree-scale { grid-template-columns: 1fr; }
  .agree-scale label { flex-direction: row; text-align: left; }
  .meters, .ingredients { grid-template-columns: 1fr; }
}
.report-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.size-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.9rem; }
.size-switch button[aria-pressed="true"] { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.report-chart { margin: 1rem 0; }
.report-chart svg { width: 100%; height: auto; display: block; }
.report-chart .chart-label { fill: currentColor; font-size: 13px; }
.report-chart .chart-track { fill: var(--cream-soft); }
.report-chart .chart-bar { fill: var(--teal); }
.book-quote { margin: 0.75rem 0 0; padding-left: 0.9rem; border-left: 3px solid var(--cream); font-style: italic; }
.book-quote cite { display: block; font-style: normal; font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.report-lite [data-full] { display: none !important; }
.workshop { margin-top: 1rem; }
.workshop textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 0.75rem; border-radius: var(--radius); border: 1px solid var(--cream); }
.report-banner { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--cream-soft); }
.report-banner p { margin: 0 0 0.5rem; }
.how-it-works { margin: 2rem 0; }
.how-it-works summary { cursor: pointer; font-weight: 600; }
.print-card { display: none; }
@media print {
  body.printing-card .check-header, body.printing-card .check > :not(.print-card), body.printing-card .check-paper, body.printing-card .author-box { display: none !important; }
  body.printing-card .print-card { display: block; }
  .print-card h2 { margin-top: 0; }
  .print-card .card-lines { height: 8rem; border-bottom: 1px solid #999; background: repeating-linear-gradient(transparent 0 1.9rem, #ccc 1.9rem 2rem); }
  .report-tools, .size-switch, .workshop-frames, .report-share, .report-ai button, .how-it-works { display: none; }
  .assess, .report-actions, .report-deeper, .report-full { display: none; }
  body:has(.report:not([hidden])) .check-paper { display: none; }
  .meter, .report-pattern, .ingredient, .report-step { break-inside: avoid; }
  .fit, .basis summary { display: none; }
}

.footer-line { height: 2.5rem; max-width: calc(var(--wide) + 2.5rem); margin: 0 auto; padding: 1.5rem 1.25rem 0; box-sizing: content-box; }
.footer-line .steady-line path { stroke: var(--teal); opacity: 0.5; }

@media (max-width: 60rem) {
  .topics, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-feature .card-featured { grid-row: auto; }
}

@media (max-width: 44rem) {
  body { font-size: 1rem; }
  .hero { padding-block: 1rem 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { justify-self: start; width: min(100%, 18rem); order: -1; }
  .topics, .cards, .shows, .topics-small { grid-template-columns: 1fr; }
  .cards-feature .card-featured { grid-column: auto; min-height: 0; padding: 1.5rem; padding-top: 6rem; }
  .card-featured .steady-line { top: 1.75rem; left: 1.5rem; width: calc(100% - 3rem); height: 3rem; }
  .hero-line { height: 2.5rem; margin-top: 1.5rem; }
  .quote-band { padding-block: 3rem; }
  .portrait::after { inset: auto -0.75rem -0.75rem auto; }
  .book { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 1.25rem; border-radius: 0; }
  .book-cover { max-width: 9rem; }
  .about-strip { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-strip img { width: 7rem; height: 7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header nav { gap: 0.25rem 1rem; }
  .prose { font-size: 1.0625rem; }
  .section { padding-block: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .topic, .book-art .book-cover { transition: none; }
  .card:hover, .topic:hover { transform: none; }
  .hero-line .steady-line path { animation: none; stroke-dashoffset: 0; }
  .progress { display: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.report-statement .book-quote { border-left-color: currentColor; }
.report-statement .book-quote cite { color: inherit; opacity: 0.85; }

/* Social proof (content/social-proof.json) */
.reader-count { margin: 0.75rem 0 0; font-size: 0.95rem; color: var(--muted); }
.consent-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem; background: var(--surface); color: inherit; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.consent-banner p { margin: 0 0 0.75rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }

/* Free-book line under an article's header (jumps to the form at the end). */
.optin-teaser { margin-top: 0; margin-bottom: 1.5rem; padding: .75rem 1rem; border-left: 3px solid var(--teal); background: var(--surface); font-size: .95rem; }
.optin-teaser a { white-space: nowrap; }
