@import "design-tokens.css";
/* Follows the reader's system theme. Light values mirror the tokens' warm-paper theme (no script allowed on these pages). */
:root {
  color-scheme: dark;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ap-bg: #faf8f5;
    --ap-surface: #fff;
    --ap-surface-2: #f3efe9;
    --ap-line: #e4ddd2;
    --ap-ink: #1d1b2e;
    --ap-ink-2: #4a4763;
    --ap-ink-3: #6b6884;
    --ap-brand: #5b4bd6;
    --ap-brand-strong: #4636b8;
    --ap-brand-soft: rgba(91, 75, 214, 0.1);
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ap-bg);
  color: var(--ap-ink);
  font: var(--ap-text-md)/var(--ap-leading-body) var(--ap-font-body);
}
a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}
a:focus-visible {
  outline: 3px solid var(--ap-brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--ap-space-4);
  top: var(--ap-space-2);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--ap-surface);
  padding: var(--ap-space-2) var(--ap-space-4);
  z-index: 9;
}
header,
main,
footer {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--ap-space-6);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ap-space-4);
  padding-block: var(--ap-space-5);
  border-bottom: 1px solid var(--ap-line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
  font: 700 var(--ap-text-lg) var(--ap-font-display);
  text-decoration: none;
}
.wordmark span {
  color: var(--ap-brand);
}
.wordmark small {
  font: 600 var(--ap-text-xs) var(--ap-font-body);
  letter-spacing: var(--ap-tracking-caps);
  text-transform: uppercase;
  color: var(--ap-ink-3);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--ap-tap);
  font-weight: 600;
  color: var(--ap-brand-strong);
  text-decoration: none;
}
main {
  padding-block: var(--ap-space-10) var(--ap-space-16);
}
.eyebrow {
  font-size: var(--ap-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ap-tracking-caps);
  color: var(--ap-ink-3);
  font-weight: 600;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: var(--ap-leading-tight);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 7vw, 3.75rem);
  margin-top: var(--ap-space-3);
}
.intro h1 span {
  color: var(--ap-brand-strong);
}
.deck {
  font-size: var(--ap-text-lg);
  color: var(--ap-ink-2);
  max-width: 40rem;
  margin: var(--ap-space-4) 0 0;
}
.review-note {
  display: flex;
  gap: var(--ap-space-3);
  align-items: flex-start;
  margin-top: var(--ap-space-6);
  padding: var(--ap-space-4);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  background: var(--ap-surface);
  max-width: 32rem;
}
.review-note p {
  margin: 2px 0 0;
  color: var(--ap-ink-2);
  font-size: var(--ap-text-sm);
}
.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ap-brand);
  flex: none;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ap-space-4);
  margin: var(--ap-space-12) 0 var(--ap-space-5);
}
.section-title h2 {
  font-size: var(--ap-text-2xl);
}
.section-title span {
  color: var(--ap-ink-3);
  font-size: var(--ap-text-sm);
}
.essays {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--ap-space-5);
}
.essay {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-4);
  text-decoration: none;
  padding: var(--ap-space-3);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-xl);
  background: var(--ap-surface);
  transition:
    transform var(--ap-dur) var(--ap-ease),
    box-shadow var(--ap-dur) var(--ap-ease);
}
.essay:hover {
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-2);
}
.essay > div:last-child {
  padding: var(--ap-space-2) var(--ap-space-3) var(--ap-space-3);
}
.essay h3 {
  font-size: var(--ap-text-2xl);
  margin: var(--ap-space-2) 0;
}
.essay p {
  margin: 0;
  color: var(--ap-ink-2);
}
.read {
  display: inline-block;
  margin-top: var(--ap-space-4);
  font-weight: 600;
  color: var(--ap-brand-strong);
}
.art,
.cover {
  overflow: hidden;
  border-radius: var(--ap-radius-lg);
  line-height: 0;
}
.art svg,
.cover svg {
  width: 100%;
  height: auto;
  display: block;
}
.art svg {
  aspect-ratio: 16 / 9;
}
aside {
  margin-top: var(--ap-space-12);
  padding: var(--ap-space-8) var(--ap-space-6);
  border-radius: var(--ap-radius-xl);
  background: var(--ap-brand-soft);
}
aside h2 {
  font-size: var(--ap-text-2xl);
}
aside p {
  margin: var(--ap-space-3) 0 0;
  color: var(--ap-ink-2);
  max-width: 36rem;
}
.article-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ap-space-3);
  max-width: 44rem;
  margin: 0 auto var(--ap-space-6);
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: var(--ap-tap);
  font-weight: 600;
  text-decoration: none;
  color: var(--ap-brand-strong);
}
.badge {
  font-size: var(--ap-text-xs);
  font-weight: 600;
  padding: 4px var(--ap-space-3);
  border-radius: var(--ap-radius-pill);
  background: var(--ap-brand-soft);
  color: var(--ap-brand-strong);
}
article > .eyebrow,
article > h1,
article > .deck,
.notice,
.toc,
.article-body,
.more {
  max-width: 44rem;
  margin-inline: auto;
  display: block;
}
.cover {
  margin: var(--ap-space-8) auto;
  max-width: 64rem;
}
.notice {
  font-size: var(--ap-text-sm);
  color: var(--ap-ink-2);
  border-left: 3px solid var(--ap-brand);
  padding-left: var(--ap-space-4);
  margin-bottom: var(--ap-space-6);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-2);
  align-items: center;
  margin-bottom: var(--ap-space-8);
  font-size: var(--ap-text-sm);
}
.toc b {
  width: 100%;
  color: var(--ap-ink-3);
  font-size: var(--ap-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ap-tracking-caps);
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--ap-space-3);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-pill);
  text-decoration: none;
  background: var(--ap-surface);
}
.article-body {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
}
.article-body h2 {
  font-size: var(--ap-text-2xl);
  margin: var(--ap-space-12) 0 var(--ap-space-3);
  scroll-margin-top: var(--ap-space-6);
}
.article-body h3 {
  font-size: var(--ap-text-xl);
  margin: var(--ap-space-8) 0 var(--ap-space-2);
}
.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 var(--ap-space-5);
}
.article-body li {
  margin-bottom: var(--ap-space-2);
}
.article-body blockquote {
  margin: var(--ap-space-8) 0;
  padding: var(--ap-space-2) 0 var(--ap-space-2) var(--ap-space-5);
  border-left: 4px solid var(--ap-brand);
  font-size: var(--ap-text-xl);
  line-height: 1.4;
  color: var(--ap-ink);
}
.article-body blockquote p {
  margin: 0;
}
.article-body a {
  color: var(--ap-brand-strong);
}
.article-body code {
  font:
    0.9em ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: var(--ap-surface-2);
  padding: 0.1em 0.35em;
  border-radius: var(--ap-radius-xs);
}
.article-body pre {
  overflow-x: auto;
  background: var(--ap-surface-2);
  padding: var(--ap-space-4);
  border-radius: var(--ap-radius-md);
}
.article-body pre code {
  background: none;
  padding: 0;
}
.more {
  margin-top: var(--ap-space-12);
  padding-top: var(--ap-space-6);
  border-top: 1px solid var(--ap-line);
  color: var(--ap-ink-2);
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ap-space-2) var(--ap-space-6);
  padding-block: var(--ap-space-6);
  border-top: 1px solid var(--ap-line);
  color: var(--ap-ink-3);
  font-size: var(--ap-text-sm);
}
@media (min-width: 52rem) {
  .essay {
    grid-template-columns: 5fr 6fr;
    align-items: center;
  }
  main {
    padding-top: var(--ap-space-16);
  }
}
@media (prefers-reduced-motion: reduce) {
  .essay {
    transition: none;
  }
  .essay:hover {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.art svg,
.cover svg {
  --cv: var(--d);
}
@media (prefers-color-scheme: light) {
  .art svg,
  .cover svg {
    --cv: var(--l);
  }
}

/* Striking pass: hero glow, featured essay, drop cap, reading progress. Motion stays small and honors reduced-motion. */
.intro {
  position: relative;
  margin-inline: calc(var(--ap-space-6) * -1);
  padding: var(--ap-space-12) var(--ap-space-6) var(--ap-space-10);
  border-radius: var(--ap-radius-xl);
  background:
    radial-gradient(
      circle 18rem at 62% 35%,
      color-mix(in srgb, var(--ap-brand) 30%, transparent),
      transparent
    ),
    radial-gradient(
      circle 14rem at 14% 80%,
      color-mix(in srgb, var(--ap-good, #5eead4) 18%, transparent),
      transparent
    );
}
.intro h1 {
  font-size: clamp(2.5rem, 9vw, 5.25rem);
  letter-spacing: -0.025em;
}
.intro .deck {
  font-size: var(--ap-text-xl);
}
@media (min-width: 52rem) {
  .essays li:first-child .essay {
    grid-template-columns: 1fr;
    padding: var(--ap-space-4);
  }
  .essays li:first-child .art svg {
    aspect-ratio: 21 / 8;
  }
  .essays li:first-child h3 {
    font-size: var(--ap-text-3xl);
  }
  .essays li:first-child .essay > div:last-child {
    padding: var(--ap-space-3) var(--ap-space-6) var(--ap-space-5);
  }
  .essays li:not(:first-child) {
    display: contents;
  }
  .essays {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
  .essays li:first-child {
    grid-column: 1 / -1;
  }
  .essays li:not(:first-child) .essay {
    grid-template-columns: 1fr;
  }
}
.essay .art svg {
  transition: transform var(--ap-dur-slow) var(--ap-ease);
}
.essay:hover .art svg {
  transform: scale(1.04);
}
.article-body > p:first-child::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--ap-brand-strong);
  font-weight: 700;
}
article > h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
}
.article-body h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: var(--ap-space-3);
  border-radius: 3px;
  background: var(--ap-brand);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes grow {
  to {
    transform: scaleX(1);
  }
}
main > * {
  animation: rise var(--ap-dur-slow) var(--ap-ease) both;
}
@supports (animation-timeline: scroll()) {
  header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--ap-bg);
  }
  header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--ap-brand);
    transform: scaleX(0);
    transform-origin: 0 50%;
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
}
@media (prefers-reduced-motion: reduce) {
  main > *,
  header::after {
    animation: none;
  }
  header::after {
    display: none;
  }
  .essay .art svg {
    transition: none;
  }
  .essay:hover .art svg {
    transform: none;
  }
}
