/* Jens Marions — design tokens and styles.
   Two surfaces: charcoal (argument, identity) and paper (reading, detail).
   Lime is light on charcoal; on paper it only ever sits *behind* ink, as a highlighter. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --charcoal: #101319;
  --charcoal-raised: #171b22;
  --lime: #c7ff4d;
  --paper: #f0eee7;
  --paper-deep: #e5e2d8;
  --white: #f8f9fa;
  --grey: #a6afba;
  --grey-dim: #7d8794;
  --ink: #252823;
  --ink-soft: #565b52;
  --rule-dark: rgba(248, 249, 250, 0.14);
  --rule-paper: rgba(37, 40, 35, 0.16);

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
  --read: 42rem;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);
  --step-5: clamp(2.75rem, 0.4rem + 11vw, 7.75rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--lime);
  color: var(--charcoal);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}
.paper :focus-visible {
  outline-color: var(--ink);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--lime);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- Surfaces ---------- */

.paper {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.paper ::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Links ---------- */

.link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.link:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}
.on-dark .link:hover {
  color: var(--lime);
}

/* Highlighter: lime behind ink. The one way lime appears on paper. */
.mark {
  background: linear-gradient(transparent 12%, var(--lime) 12%, var(--lime) 88%, transparent 88%);
  color: var(--ink);
  padding-inline: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 550;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn-primary {
  background: var(--lime);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--white);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--charcoal);
}
.btn .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arr,
.textlink:hover .arr {
  transform: translateX(3px);
}
.btn:hover .arr-up,
.textlink:hover .arr-up {
  transform: translate(2px, -2px);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 48px;
  font-weight: 500;
  text-decoration: none;
}
.textlink span:first-child {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}
.textlink .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--charcoal);
  border-bottom: 1px solid var(--rule-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--white);
}
.wordmark .sq {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--lime);
  flex: none;
}

.nav-list {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--grey);
  text-decoration: none;
  font-size: 0.9375rem;
  position: relative;
  transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a[aria-current='page'] {
  color: var(--white);
}
.nav-list a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--lime);
}

.nav-toggle {
  display: none;
}

@media (max-width: 720px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    min-width: 48px;
    justify-content: flex-end;
    padding: 0;
    background: none;
    border: 0;
    color: var(--white);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
  }
  .nav-toggle .bars {
    position: relative;
    width: 20px;
    height: 10px;
  }
  .nav-toggle .bars::before,
  .nav-toggle .bars::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }
  .nav-toggle .bars::before {
    top: 0;
  }
  .nav-toggle .bars::after {
    top: 8.5px;
  }
  .nav-toggle[aria-expanded='true'] .bars::before {
    top: 4.25px;
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .bars::after {
    top: 4.25px;
    transform: rotate(-45deg);
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--rule-dark);
    padding: 0.5rem var(--gutter) 2rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .js .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .js .nav-list li + li {
    border-top: 1px solid var(--rule-dark);
  }
  .js .nav-list a {
    display: flex;
    min-height: 60px;
    font-size: var(--step-3);
    letter-spacing: -0.03em;
    color: var(--white);
  }
  .js .nav-list a[aria-current='page']::before {
    left: auto;
    right: 0;
    bottom: auto;
    top: 50%;
    margin: -4px 0 0;
    width: 8px;
    height: 8px;
  }
  /* No JS: keep links visible and compact. */
  html:not(.js) .site-header .wrap {
    flex-wrap: wrap;
  }
  html:not(.js) .nav-list {
    gap: 1.25rem;
  }
}

/* ---------- Section scaffolding ---------- */

.section {
  padding-block: clamp(4.5rem, 10vw, 9rem);
}
.section + .section.same {
  padding-top: 0;
}

.label {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--grey);
}
.paper .label {
  color: var(--ink-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.4vw, 2rem);
}

.h2 {
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.5;
  font-weight: 380;
  text-wrap: pretty;
}
.prose-serif p {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.65;
  font-weight: 400;
  text-wrap: pretty;
}
.prose-serif p + p {
  margin-top: 1.1em;
}
.on-dark .prose-serif p {
  color: #dfe3e8;
}

/* Section head: label in the margin column, heading in the body. */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.4vw, 2rem);
  row-gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head .label {
  grid-column: 1 / -1;
  padding-top: 0.6rem;
}
.section-head .h2 {
  grid-column: 1 / -1;
  max-width: 18ch;
}
@media (min-width: 900px) {
  .section-head .label {
    grid-column: 1 / span 3;
  }
  .section-head .h2 {
    grid-column: 4 / -1;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-dark);
}
/* Faint column rules: the studio grid showing through. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(248, 249, 250, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.hero .wrap {
  position: relative;
  padding-top: clamp(3.5rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-title {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  font-size: var(--step-5);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.052em;
}
.hero-title .line {
  display: block;
}
.hero-title .was {
  position: relative;
  color: var(--grey-dim);
  white-space: nowrap;
}
.hero-title .was::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 54%;
  height: 0.055em;
  min-height: 3px;
  background: var(--white);
  transform-origin: left center;
  transform: scaleX(1);
  animation: strike 0.9s var(--ease) 0.45s both;
}
.hero-title .is {
  color: var(--lime);
  white-space: nowrap;
}
.hero-title .cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.8em;
  margin-left: 0.06em;
  vertical-align: -0.04em;
  background: var(--lime);
}
@keyframes strike {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .was::after {
    animation: none;
  }
}

.hero-foot {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  gap: 2rem;
}
.hero-statement {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.45;
  font-weight: 380;
  color: #dfe3e8;
  max-width: 30ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}
.hero-latest {
  align-self: end;
  display: grid;
  gap: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.9375rem;
  color: var(--grey);
  max-width: 26rem;
}
.hero-latest a {
  color: var(--white);
  font-weight: 500;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}
@media (min-width: 900px) {
  .hero-foot {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .hero-latest {
    grid-column: 1 / span 4;
    grid-row: 1;
  }
  .hero-main {
    grid-column: 6 / -1;
    grid-row: 1;
  }
}

/* ---------- Perspective ---------- */

.perspective-body {
  display: grid;
  gap: 3rem;
}
.perspective-body .prose-serif {
  max-width: 38rem;
}
.contrast {
  border-top: 1px solid var(--rule-dark);
}
.contrast > div {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule-dark);
}
.contrast dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 550;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}
.contrast dt::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--grey);
  flex: none;
}
.contrast .native dt::before {
  background: var(--lime);
  border-color: var(--lime);
}
.contrast dd {
  color: var(--grey);
  max-width: 36rem;
}
.contrast .native dd {
  color: #dfe3e8;
}
.contrast-note {
  font-size: 0.9375rem;
  color: var(--grey);
  max-width: 36rem;
}
@media (min-width: 900px) {
  .perspective-body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .perspective-body .prose-serif {
    grid-column: 4 / span 5;
  }
  .perspective-body .contrast-wrap {
    grid-column: 9 / -1;
    padding-top: 0.4rem;
  }
  .contrast > div {
    grid-template-columns: 1fr;
  }
}

/* ---------- Exploration ---------- */

.questions {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule-paper);
}
.question {
  display: grid;
  gap: 1rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule-paper);
}
.question .num {
  font-size: var(--step--1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  padding-top: 0.5rem;
}
.question .head {
  display: grid;
  gap: 0.75rem;
}
.question h3 {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.question .ask {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 26ch;
}
.question .detail {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}
.question .detail p {
  line-height: 1.6;
}
.question .topics {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .question {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
  }
  .question .num {
    grid-column: 1 / span 1;
  }
  .question .head {
    grid-column: 2 / span 6;
  }
  .question .detail {
    grid-column: 9 / -1;
    padding-top: 0.45rem;
  }
}

/* ---------- Article index ---------- */

.articles {
  list-style: none;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}
.article-row {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule-paper);
}
.article-row .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.article-row h3 {
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.article-row h3 a {
  text-decoration: none;
}
.article-row h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.article-row h3 .t {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-size: 0% 0.42em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease);
}
.article-row:hover h3 .t,
.article-row h3 a:focus-visible .t {
  background-size: 100% 0.42em;
}
.article-row .sub {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.4;
  font-weight: 380;
  color: var(--ink-soft);
  max-width: 40ch;
  text-wrap: pretty;
}
.article-row .go {
  font-weight: 500;
  font-size: 0.9375rem;
  display: inline-flex;
  gap: 0.5rem;
}
@media (min-width: 900px) {
  .article-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .article-row .meta {
    grid-column: 1 / span 3;
    flex-direction: column;
    padding-top: 0.9rem;
  }
  .article-row .body {
    grid-column: 4 / span 8;
    display: grid;
    gap: 1rem;
  }
}
.index-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- About preview ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 22rem;
  background: var(--charcoal-raised);
  border: 1px solid var(--rule-dark);
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--grey);
  font-size: 0.875rem;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    rgba(248, 249, 250, 0.035) 14px 15px
  );
}
.portrait-placeholder .initials {
  font-size: 4.5rem;
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--white);
}
.about-copy {
  display: grid;
  gap: 2rem;
  align-content: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .about-grid .portrait {
    grid-column: 1 / span 4;
  }
  .about-grid .about-copy {
    grid-column: 6 / span 6;
  }
}

/* ---------- Working together ---------- */

.work-block {
  display: grid;
  gap: 2rem;
}
.work-block .prose-serif {
  max-width: 38rem;
}
@media (min-width: 900px) {
  .work-block {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .work-block > * {
    grid-column: 4 / span 7;
  }
}

/* ---------- Page heads (inner pages) ---------- */

.page-head {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-head h1 {
  margin-top: 1.25rem;
  font-size: var(--step-5);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 14ch;
  text-wrap: balance;
}
.page-head .lede {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 36rem;
}
.on-dark .page-head .lede {
  color: #dfe3e8;
}

/* Two-column content blocks on inner pages. */
.block {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule-paper);
}
.on-dark .block {
  border-top-color: var(--rule-dark);
}
.block > h2 {
  font-size: var(--step-2);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.block .content {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}
.block .content > p {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.65;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .block {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .block > h2 {
    grid-column: 1 / span 3;
  }
  .block .content {
    grid-column: 4 / span 8;
  }
}

.list-plain {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule-paper);
}
.list-plain li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule-paper);
  line-height: 1.5;
}
.list-plain li strong {
  font-weight: 600;
}
.list-plain li span {
  display: block;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}
.on-dark .list-plain,
.on-dark .list-plain li {
  border-color: var(--rule-dark);
}
.on-dark .list-plain li span {
  color: var(--grey);
}
@media (min-width: 700px) {
  .list-plain.two {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.on-dark .note {
  color: var(--grey);
}

/* Visible editorial placeholder — never mistaken for real content. */
.placeholder {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px dashed currentColor;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.on-dark .placeholder {
  color: var(--grey);
}
.placeholder b {
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
}

/* ---------- Contact ---------- */

.contact-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}
.contact-line {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule-dark);
}
.contact-line .k {
  font-size: 0.875rem;
  color: var(--grey);
}
.contact-line .v {
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.contact-line .v a {
  text-decoration: none;
}
.contact-line .v a:hover {
  color: var(--lime);
}
@media (min-width: 900px) {
  .contact-line {
    grid-template-columns: 3fr 9fr;
    align-items: baseline;
    column-gap: 2rem;
  }
}

/* ---------- Article ---------- */

.article-head {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule-paper);
}
.article-head .crumb {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.article-head h1 {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-size: var(--step-5);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
  text-wrap: balance;
}
.article-head .sub {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 350;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 30ch;
  text-wrap: pretty;
}
.article-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.article-meta .by {
  color: var(--ink);
  font-weight: 550;
}

.prose {
  max-width: var(--read);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.68;
  font-weight: 400;
  color: var(--ink);
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2 {
  margin-top: 2.4em;
  font-family: var(--sans);
  font-size: var(--step-3);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.prose h2 + * {
  margin-top: 0.75em;
}
.prose h3 {
  margin-top: 2em;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(37, 40, 35, 0.45);
}
.prose a:hover {
  text-decoration-color: var(--ink);
  background: var(--lime);
}
.prose strong {
  font-weight: 650;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.5em;
}
.prose li::marker {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.85em;
}
.prose blockquote {
  padding-left: 1.25em;
  border-left: 2px solid var(--ink);
  font-style: italic;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.875em;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.6em 0.8em 0.6em 0;
  border-bottom: 1px solid var(--rule-paper);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.prose hr {
  border: 0;
  height: 1px;
  background: var(--rule-paper);
  margin-block: 2.5em;
}
.prose code {
  font-size: 0.85em;
  background: var(--paper-deep);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}
.prose sup {
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.55em;
}
.prose sup a,
.prose a[data-footnote-ref] {
  font-family: var(--sans);
  font-size: 0.72em;
  font-weight: 600;
  text-decoration: none;
  padding: 0 0.15em;
  margin-left: 0.05em;
}

.pull {
  margin-block: 2em !important;
  padding: 0.25em 0 0.25em 1.1em;
  border-left: 0.3rem solid var(--lime);
}
.pull p {
  font-family: var(--sans);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
@media (min-width: 1100px) {
  .pull {
    margin-inline: -4rem;
  }
}

/* Footnotes (marked-footnote) */
.prose .footnotes {
  margin-top: 3.5em;
  padding-top: 1.5em;
  border-top: 1.5px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.prose .footnotes h2 {
  margin-top: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.prose .footnotes ol {
  margin-top: 1em;
  padding-left: 1.4em;
}
.prose .footnotes li + li {
  margin-top: 0.75em;
}
.prose .footnotes a {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.prose .footnotes a[data-footnote-backref] {
  text-decoration: none;
  margin-left: 0.25em;
}

.article-foot {
  max-width: var(--read);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  display: grid;
  gap: 2.5rem;
}
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-paper);
  font-size: 0.9375rem;
}
.share .k {
  color: var(--ink-soft);
  margin-right: 0.25rem;
}
.share a,
.share button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.share button[hidden] {
  display: none;
}

.end-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--charcoal);
  color: var(--white);
}
.end-card p {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.4;
  color: #dfe3e8;
  max-width: 32ch;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule-dark);
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: 2.5rem;
  color: var(--grey);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-statement {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--white);
  max-width: 26ch;
}
.footer-nav {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.footer-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  text-decoration: none;
  color: var(--grey);
}
.footer-nav a:hover {
  color: var(--white);
}
.footer-base {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--grey-dim);
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .footer-grid .footer-statement {
    grid-column: 1 / span 6;
  }
  .footer-grid .col-a {
    grid-column: 8 / span 2;
  }
  .footer-grid .col-b {
    grid-column: 10 / span 3;
  }
}
.footer-k {
  font-size: 0.8125rem;
  color: var(--grey-dim);
  margin-bottom: 0.5rem;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .share,
  .end-card,
  .pull {
    display: none !important;
  }
  body,
  .paper {
    background: #fff;
    color: #000;
  }
}

/* Late refinements */
.block .list-plain li:last-child {
  border-bottom: 0;
}
.prose .footnotes em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08em;
}
