/* Ping Chen — palette from the desert at first light: night indigo, dune sand, and the cool lilac stone of dune shadow. */
:root {
  --ink: #1c2230;
  --ink-soft: #4a5263;
  --ground: #f2f0f2;
  --mist: #e8e4e9;
  --lagoon: #2d4673;
  --lagoon-deep: #22365a;
  --glacier: #a8bfdc;
  --moss: #1e2a40;
  --moss-text: #e9edf4;
  --moss-soft: #b4c0d4;
  --ochre: #e6d2b0;
  --ochre-deep: #c99e6a;
  --line: rgb(28 34 48 / 0.14);

  --font-display: "Gabarito", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --radius: 1.25rem;
  --radius-lg: 2rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --wide: 72rem;
  --measure: 38rem;
  --section: clamp(4.5rem, 11vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--lagoon);
  accent-color: var(--lagoon);
}

main { flex: 1; }

::selection { background: var(--ochre); color: var(--ink); }

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

input, button, textarea { font: inherit; color: inherit; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--ochre-deep);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--lagoon);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(34 54 90 / 0.2), 0 6px 18px -6px rgb(34 54 90 / 0.45);
  transition: background-color 0.2s ease, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.button:hover {
  background: var(--lagoon-deep);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgb(34 54 90 / 0.2), 0 12px 24px -8px rgb(34 54 90 / 0.5);
}
.button:hover .icon { transform: translateX(3px); }
.button:active { transform: translateY(0); }

.button--small { padding: 0.6rem 1.1rem; font-size: 0.95rem; }

.button--light { background: var(--ochre); color: var(--ink); box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5); }
.button--light:hover { background: #efe0c6; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem var(--gutter);
  background: var(--mist);
}
body:has(main > h1) .site-header { background: var(--ground); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}
.nav > a:not(.button) {
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav > a:not(.button):hover,
.nav > a[aria-current="page"] { border-color: var(--ochre-deep); }

/* Services dropdown */
.nav-group { position: relative; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.nav-toggle:hover,
.nav-group.is-current .nav-toggle { border-color: var(--ochre-deep); }
.nav-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  z-index: 20;
  width: max-content;
  max-width: min(20rem, calc(100vw - 2rem));
  list-style: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 6px rgb(28 34 48 / 0.08), 0 24px 48px -20px rgb(34 54 90 / 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out), visibility 0.2s;
}
.nav-toggle[aria-expanded="true"] + .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-menu a {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { background: var(--mist); }
.nav-menu strong { font-family: var(--font-display); font-weight: 600; }
.nav-menu span { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 34rem) {
  .nav .button { display: none; }
  .nav { gap: 0.25rem 1.1rem; }
}

/* ---------- Shared layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--section); }
.band--mist { background: var(--mist); }
.band--ochre { background: var(--ochre); }
.band--moss { background: var(--moss); color: var(--moss-text); }

.h-section { font-size: clamp(2rem, 4.2vw, 3.25rem); }

.lede { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.55; }

/* ---------- Home: hero ---------- */
.hero {
  background: var(--mist);
  padding-block: clamp(2rem, 6vw, 5rem) var(--section);
}
.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero h1 span { color: var(--lagoon); }

.hero-copy .lede { max-width: 34rem; margin-top: 1.75rem; color: var(--ink-soft); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.hero-note { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }

.hero-photo { position: relative; justify-self: center; width: min(100%, 26rem); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgb(28 34 48 / 0.08), 0 30px 60px -30px rgb(34 54 90 / 0.55);
}
/* ---------- Home: recognition ---------- */
.recognize {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 56rem) {
  .recognize { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.signs { list-style: none; padding: 0; border-top: 2px solid rgb(28 34 48 / 0.2); }
.signs li {
  padding-block: 1.1rem;
  border-bottom: 2px solid rgb(28 34 48 / 0.2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.reframe {
  display: grid;
  gap: 1.5rem 4rem;
}
@media (min-width: 56rem) {
  .reframe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.reframe h2 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.reframe h2 span { color: var(--lagoon); }
.reframe p + p { margin-top: 1rem; }
.reframe .text-link { margin-top: 1.5rem; }

/* ---------- Home + Intensive: the trail ---------- */
.trail-head { max-width: 40rem; }
.trail-head p { margin-top: 1.25rem; color: var(--moss-soft); }

.trail {
  list-style: none;
  padding: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: 2.25rem;
  position: relative;
}

.trail li { position: relative; padding-left: 4rem; }

.trail h3 { font-size: 1.35rem; margin-bottom: 0.4rem; color: #fff; }
.trail p { color: var(--moss-soft); font-size: 1rem; }
.trail .when {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--glacier);
}

.trail-stop {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--moss);
  color: var(--glacier);
  border: 2px solid var(--glacier);
}
.trail li.is-summit .trail-stop { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }

/* dashed path joining the stops */
.trail::before {
  content: "";
  position: absolute;
  left: 1.375rem;
  top: 1.5rem;
  bottom: 1.5rem;
  border-left: 2px dashed rgb(168 191 220 / 0.5);
}

@media (min-width: 56rem) {
  .trail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .trail li { padding-left: 0; padding-top: 4.25rem; }
  .trail::before {
    left: 1.5rem;
    right: 1.5rem;
    top: 1.375rem;
    bottom: auto;
    height: 0;
    border-left: 0;
    border-top: 2px dashed rgb(168 191 220 / 0.5);
  }
  .trail li.is-summit .trail-stop { transform: scale(1.25); transform-origin: left center; }
}

.price-line {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgb(233 237 244 / 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.price-line p { max-width: 36rem; color: var(--moss-soft); }
.price-line strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.band--moss .text-link { color: var(--ochre); }

.price-band .price-line { margin-top: 2rem; border-top: 2px solid rgb(28 34 48 / 0.2); }
.price-band .price-line strong { color: var(--ink); font-size: clamp(2.25rem, 4vw, 3rem); }
.price-band .price-line p { color: var(--ink); }

/* ---------- Home: two ways to work ---------- */
.services {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 52rem) {
  .services { grid-template-columns: 1fr 1fr; }
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: rgb(233 237 244 / 0.07);
  box-shadow: inset 0 0 0 2px rgb(168 191 220 / 0.35);
}
.service h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: #fff; }
.service .service-tag { margin-top: 0.35rem; font-weight: 600; color: var(--glacier); }
.service > p:not(.service-tag) { margin-top: 1rem; color: var(--moss-soft); }
.service ul { list-style: none; padding: 0; margin-block: 1.5rem 2rem; }
.service li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-top: 1px solid rgb(233 237 244 / 0.15);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--glacier);
}
.service .text-link { margin-top: auto; align-self: flex-start; color: var(--ochre); }

.service--intensive { background: var(--ochre); box-shadow: none; color: var(--ink); }
.service--intensive h3 { color: var(--ink); }
.service--intensive .service-tag { color: var(--lagoon-deep); }
.service--intensive > p:not(.service-tag) { color: var(--ink-soft); }
.service--intensive li { border-color: rgb(28 34 48 / 0.15); }
.service--intensive li::before { background: var(--lagoon); }
.service--intensive .text-link { color: var(--ink); }

/* ---------- Fees (near the bottom) ---------- */
.fee-list { margin-top: 2rem; border-top: 2px solid var(--line); max-width: 52rem; }
.fee-list > div {
  display: grid;
  gap: 0.25rem 2.5rem;
  padding-block: 1.25rem;
  border-bottom: 2px solid var(--line);
}
@media (min-width: 48rem) {
  .fee-list > div { grid-template-columns: 16rem minmax(0, 1fr); align-items: baseline; }
}
.fee-list dt { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.fee-list dd { margin: 0; color: var(--ink-soft); }
.fee-list dd strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.fees-note { margin-top: 1.25rem; color: var(--ink-soft); }

/* ---------- Home: about Ping ---------- */
.meet .wrap {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .meet .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.meet img {
  width: 100%;
  max-width: 27rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 33.333% 33.333% var(--radius-lg) var(--radius-lg);
  box-shadow: 0 30px 60px -32px rgb(28 34 48 / 0.5);
}
.meet-copy p { margin-top: 1rem; max-width: var(--measure); }
.meet-copy .text-link { margin-top: 1.75rem; }
.meet-points { list-style: none; padding: 0; margin-top: 1.5rem; max-width: var(--measure); border-top: 1px solid var(--line); }
.meet-points strong { font-weight: 600; color: var(--ink); }
.meet-points li { position: relative; padding: 0.8rem 0 0.8rem 1.6rem; border-bottom: 1px solid var(--line); }
.meet-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lagoon);
}

/* ---------- Writing list ---------- */
/* ---------- Home: the process ---------- */
.method-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) {
  .method-wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .method-head { position: sticky; top: 2rem; }
}
.method-head .lede { margin-top: 1.25rem; color: var(--ink-soft); }
.method { list-style: none; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.method li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 1.1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.method li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--lagoon);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.method h3 { font-size: 1.3rem; line-height: 1.25; align-self: center; }
.method p { margin-top: 0.4rem; color: var(--ink-soft); }

.writing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }

.posts { list-style: none; padding: 0; margin-top: 2.5rem; border-top: 2px solid var(--line); }
.posts li { border-bottom: 2px solid var(--line); }
.posts a {
  display: grid;
  gap: 0.35rem 2.5rem;
  padding-block: 1.5rem;
  text-decoration: none;
}
@media (min-width: 48rem) {
  .posts a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: baseline; }
}
.posts .post-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}
.posts .post-blurb { color: var(--ink-soft); }
.posts .icon { color: var(--lagoon); width: 1.5rem; height: 1.5rem; }
.posts a:hover .post-title { color: var(--lagoon); }
.posts a:hover .icon { transform: translateX(4px); }

/* ---------- Page heads (Intensive, About, Writing) ---------- */
.page-head { background: var(--mist); padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.page-head h1 { font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; max-width: 16ch; }
.page-head .lede { margin-top: 1.5rem; max-width: 36rem; color: var(--ink-soft); }

.page-head .actions { margin-top: 2rem; }

/* ---------- Intensive: example + fit + faq ---------- */
.split {
  display: grid;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
}
.split > div > p + p { margin-top: 1rem; }

.story {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.story-note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }

.fit-head .lede { margin-top: 1.25rem; max-width: 40rem; color: var(--ink-soft); }
.fit { display: grid; gap: 1.5rem; margin-top: 3rem; }
.fit-note { margin-top: 1.75rem; max-width: 40rem; }
@media (min-width: 48rem) { .fit { grid-template-columns: 1fr 1fr; } }

.fit-col { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); }
.fit-col--yes { background: var(--ochre); }
.fit-col--no { background: var(--ground); box-shadow: inset 0 0 0 2px var(--line); }
.fit-col h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.fit-col ul { list-style: none; padding: 0; }
.fit-col .text-link { margin-top: 1.25rem; }
.fit-col li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-top: 1px solid var(--line); }
.fit-col li:first-child { border-top: 0; }
.fit-col li .icon { position: absolute; left: 0; top: 0.8rem; }

.faq { max-width: 48rem; margin-top: 2.5rem; border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--lagoon); width: 1.4rem; height: 1.4rem; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; max-width: var(--measure); }
.faq details p + p { margin-top: -0.5rem; }

/* ---------- About ---------- */
.about-head .wrap { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 56rem) {
  .about-head .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
.about-head img {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgb(34 54 90 / 0.55);
}

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 3.25rem; margin-bottom: 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 2.25rem; margin-bottom: 0.6rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-top: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--lagoon); }
.prose a { color: var(--lagoon); text-decoration: underline; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--lagoon-deep); }
.prose strong { font-weight: 600; }
.prose blockquote {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--mist);
  font-style: italic;
}
.prose hr { border: 0; border-top: 2px solid var(--line); margin-block: 3rem; }

.aside-note {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--mist);
  font-size: 0.975rem;
}

/* ---------- Articles (markdown posts) ---------- */
main:has(> h1) { padding-block: clamp(2.5rem, 7vw, 5rem) var(--section); }
main:has(> h1) > * { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
main:has(> h1) h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
main:has(> h1) h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 3rem; margin-bottom: 0.25rem; }
main:has(> h1) :is(p, ul, ol) { margin-top: 1.1rem; }
main:has(> h1) ul, main:has(> h1) ol { padding-left: calc(var(--gutter) + 1.25rem); }
main:has(> h1) li + li { margin-top: 0.4rem; }
main:has(> h1) li::marker { color: var(--lagoon); }
main:has(> h1) a { color: var(--lagoon); }
main:has(> h1) hr { display: none; }
main:has(> h1) .post-meta { margin-top: 0.75rem; font-size: 0.95rem; color: var(--ink-soft); }

.post-signoff {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
}
.post-signoff p + p { margin-top: 0.75rem; }

/* ---------- Talk (contact, on every page) ---------- */
.talk { background: var(--lagoon); color: #f5f7fb; padding-block: var(--section); }
.talk-inner {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 56rem) {
  .talk-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.talk h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.talk-intro p { margin-top: 1.25rem; max-width: 30rem; }
.talk-intro .talk-sign { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: #ead7b5; }

.talk-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--lagoon-deep);
}
.talk-form .hp { position: absolute; left: -9999px; }
.talk-form button { justify-self: start; margin-top: 0.4rem; }

.field { display: grid; gap: 0.45rem; }
.field > span { font-weight: 600; color: #fff; }
.field em { font-style: normal; font-weight: 400; color: #cad5e7; margin-left: 0.35rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid transparent;
  border-radius: 0.9rem;
  background: #faf9fa;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 4px rgb(230 210 176 / 0.45);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #f2a48e; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  background: var(--ink);
  color: #c3cad6;
  font-size: 0.95rem;
}
.site-footer > * { max-width: var(--wide); margin-inline: auto; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.site-footer p + p { margin-top: 0.4rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }
.footer-nav a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.35); }
.footer-nav a:hover { text-decoration-color: var(--ochre); }
.footer-fine { margin-top: 2rem !important; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.85rem; color: #98a2b3; }

/* ---------- Small pages (thanks, 404) ---------- */
.note-page { padding-block: var(--section); background: var(--mist); }
.note-page h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; }
.note-page p { margin-top: 1.25rem; max-width: 34rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
