/* /breastfeeding-photography — "Milk & Mulberry": milk-white paper, a deep
   mulberry rose and espresso ink, with a hand-drawn tile motif.
   Always light, by owner direction ("ensure the page is light colored"). */

:root {
  color-scheme: light;
  --paper: #fbf8f4;
  --blush: #f4e9e6;
  --mat: #fffdfb;
  --ink: #2b1d1c;
  --ink-soft: #5a4744;
  --ink-faint: #6e5853;
  --mulberry: #7b2d4b;
  --mulberry-deep: #5e1f38;
  --accent: #8e3b55;
  --rule: rgba(43, 29, 28, 0.16);
  --rule-strong: rgba(43, 29, 28, 0.34);
  --shadow: 0 1px 2px rgba(43, 29, 28, 0.08), 0 22px 44px -28px rgba(43, 29, 28, 0.45);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --text: "Instrument Sans", "Avenir Next", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  /* One azulejo tile: corner rosettes that join into circles across tiles,
     a four-petal centre and a fine keyline. */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%23fffdfb'/%3E%3Cg fill='%237b2d4b'%3E%3Ccircle cx='0' cy='0' r='11'/%3E%3Ccircle cx='56' cy='0' r='11'/%3E%3Ccircle cx='0' cy='56' r='11'/%3E%3Ccircle cx='56' cy='56' r='11'/%3E%3Cpath d='M28 11c2.6 7.4 9.6 14.4 17 17-7.4 2.6-14.4 9.6-17 17-2.6-7.4-9.6-14.4-17-17 7.4-2.6 14.4-9.6 17-17z'/%3E%3C/g%3E%3Cg fill='%23fffdfb'%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='56' cy='0' r='6'/%3E%3Ccircle cx='0' cy='56' r='6'/%3E%3Ccircle cx='56' cy='56' r='6'/%3E%3Ccircle cx='28' cy='28' r='4.2'/%3E%3C/g%3E%3Cg fill='%237b2d4b'%3E%3Ccircle cx='0' cy='0' r='2.4'/%3E%3Ccircle cx='56' cy='0' r='2.4'/%3E%3Ccircle cx='0' cy='56' r='2.4'/%3E%3Ccircle cx='56' cy='56' r='2.4'/%3E%3Ccircle cx='28' cy='28' r='1.6'/%3E%3C/g%3E%3Cg fill='none' stroke='%237b2d4b' stroke-width='0.8'%3E%3Ccircle cx='28' cy='28' r='19'/%3E%3Crect x='0.4' y='0.4' width='55.2' height='55.2'/%3E%3C/g%3E%3C/svg%3E");
  --measure: 38rem;
  --page: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--mulberry); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Masthead: wordmark at left above a double rule ──── */
.masthead { border-bottom: 3px double var(--rule-strong); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.6rem;
}
.brand {
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-size: 1.75rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1;
}
.brand small {
  display: block; margin-top: 0.35rem; font-family: var(--text); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-faint);
}
.masthead nav { display: flex; align-items: center; gap: 1.4rem; white-space: nowrap; }
.masthead nav a.toc {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
}
.masthead nav a.toc:hover { color: var(--mulberry); }
@media (max-width: 960px) { .masthead nav a.toc { display: none; } }
@media (max-width: 560px) { .brand small { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.65rem 1.5rem; border-radius: 0;
  font-family: var(--text); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-solid { background: var(--mulberry); color: #fff; }
.btn-solid:hover { background: var(--mulberry-deep); color: #fff; }
.btn-line { border-color: var(--mulberry); color: var(--mulberry); background: transparent; }
.btn-line:hover { background: var(--mulberry); color: #fff; }
.masthead .btn { min-height: 2.4rem; padding: 0.4rem 1.1rem; font-size: 0.68rem; white-space: nowrap; }

/* ── Type ─────────────────────────────────────────────── */
.kicker {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.4rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.06; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; color: inherit; }
h2 { font-size: clamp(2.05rem, 4.3vw, 3.35rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1.1rem; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: var(--measure); }
.figure-big, .timeline .when, .calendar dt, .numeral { font-variant-numeric: lining-nums; }

/* ── Chapters: a large numeral beside the heading ──────── */
.chapter { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.tint { background: var(--blush); }
/* A band of tiles opens each blush chapter. */
.tint::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: var(--tile) 0 0 / 28px 28px round; border-bottom: 1px solid var(--mulberry);
}
.chapter-head {
  display: grid; grid-template-columns: 10rem minmax(0, 46rem); column-gap: 2rem; row-gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: start;
}
.chapter-head > :not(.numeral) { grid-column: 2; }
.numeral {
  grid-column: 1; grid-row: 1 / span 2; display: block;
  font-family: var(--display); font-size: 4.4rem; font-weight: 400; line-height: 0.95; color: var(--mulberry);
  white-space: nowrap; overflow: hidden;
  border-right: 1px solid var(--rule-strong); padding-right: 1.6rem; text-align: right; min-height: 100%;
}
.numeral::before {
  content: "Chapter"; display: block; margin-bottom: 0.5rem; font-family: var(--text);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
}
.numeral.word { font-size: 2.2rem; font-style: italic; line-height: 1.1; }
.numeral.word::before { content: "Gallery"; }
@media (max-width: 760px) {
  .chapter-head { grid-template-columns: 1fr; }
  .chapter-head > :not(.numeral) { grid-column: 1; }
  .numeral { grid-row: auto; border-right: 0; padding-right: 0; text-align: left; font-size: 3.6rem; display: flex; align-items: baseline; gap: 0.8rem; }
  .numeral::before { margin: 0; }
  .numeral.word { font-size: 1.9rem; }
}

/* ── Opening ──────────────────────────────────────────── */
.opening { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.opening .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.opening h1 { margin-bottom: 1.6rem; }
.opening .lede { margin-bottom: 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.dedication {
  margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
  font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft);
  max-width: 30rem;
}
.opening figure { margin: 0; }
/* The hero hangs in a tiled mat with a white inner border. */
.opening .frame {
  display: block; padding: 26px; background: var(--tile) 0 0 / 26px 26px round;
  box-shadow: var(--shadow);
}
.opening .frame img {
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  border: 6px solid var(--mat);
}
@media (max-width: 860px) {
  .opening .wrap { grid-template-columns: 1fr; }
  .opening figure { max-width: 32rem; }
}

/* Museum label under every picture. */
figcaption {
  display: block; margin-top: 1rem; font-size: 0.8rem; line-height: 1.55; color: var(--ink-faint);
}
figcaption b {
  display: block; font-family: var(--text); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.2rem;
}

/* ── I. Tradition ─────────────────────────────────────── */
.essay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.essay > div:first-child p:first-of-type::first-line {
  font-variant: small-caps; letter-spacing: 0.06em; font-weight: 600; color: var(--ink);
}
@media (max-width: 760px) { .essay { grid-template-columns: 1fr; } }

.timeline {
  list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--mulberry);
}
.timeline li { padding: 1.5rem 1.2rem 0 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px;
  background: var(--mulberry); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--blush);
}
.timeline .when { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--mulberry); }
.timeline .what { display: block; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; margin-top: 0.35rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--mulberry); margin-left: 0.4rem; }
  .timeline li { padding: 0 0 1.6rem 1.6rem; }
  .timeline li::before { top: 0.55rem; left: -6px; }
}

.customs { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.customs h3 { margin-bottom: 0.5rem; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.customs > p { color: var(--ink-soft); max-width: var(--measure); }
.custom-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.3rem); margin-top: 1.8rem;
}
@media (max-width: 900px) { .custom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .custom-grid { grid-template-columns: 1fr; } }
/* Each custom is a small card capped with a strip of tiles. */
.custom { background: var(--mat); border: 1px solid var(--rule); padding: 0 1.4rem 1.3rem; }
.custom::before {
  content: ""; display: block; height: 14px; margin: 0 -1.4rem 1.2rem;
  background: var(--tile) 0 0 / 14px 14px round; border-bottom: 1px solid var(--mulberry);
}
.custom .name { font-family: var(--display); font-size: 1.4rem; font-style: italic; }
.custom .where {
  display: block; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0.15rem 0 0.6rem;
}
.custom p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ── Gallery wall ─────────────────────────────────────── */
.plates {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2.2rem); align-items: start;
}
.plates figure { margin: 0; text-align: center; }
.plates figure:nth-child(even) { margin-top: clamp(2rem, 5vw, 4rem); }
/* White mat, fine mulberry keyline, as hung in a gallery. */
.plates img {
  aspect-ratio: 3 / 4; object-fit: cover; width: 100%;
  border: 1px solid var(--mulberry); padding: clamp(8px, 1.2vw, 14px); background: var(--mat);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plates-note { margin: 2.6rem auto 0; font-size: 0.86rem; color: var(--ink-faint); max-width: var(--measure); text-align: center; }

/* ── II. Facts ────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--mulberry); border-bottom: 1px solid var(--mulberry); }
.fact { padding: 1.8rem clamp(1rem, 2.6vw, 2rem); }
.fact + .fact { border-left: 1px solid var(--rule-strong); }
.fact:first-child { padding-left: 0; }
.fact .figure-big {
  display: block; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 3.9rem);
  font-weight: 400; line-height: 1; color: var(--mulberry);
}
.fact .figure-big small { font-size: 0.4em; font-style: italic; color: var(--ink-soft); margin: 0 0.2em; }
.fact p { margin: 0.9rem 0 0.5rem; color: var(--ink-soft); font-size: 0.96rem; }
.source { font-size: 0.78rem; color: var(--ink-faint); }
.source a { color: inherit; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:first-child { padding: 1.5rem 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--rule-strong); }
}

.calendar {
  margin-top: clamp(3rem, 6vw, 4.5rem); display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.calendar h3 { margin-bottom: 0.8rem; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.calendar dl { margin: 0; border-top: 1px solid var(--rule-strong); }
.calendar dl > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.calendar dt { font-family: var(--display); font-size: 1.15rem; color: var(--mulberry); }
.calendar dd { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .calendar { grid-template-columns: 1fr; }
  .calendar dl > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

.gentle {
  margin-top: clamp(3rem, 6vw, 4rem); padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 3vw, 2.6rem);
  background: var(--mat); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  display: grid; gap: 0.6rem;
}
.gentle h3 { font-size: 1.5rem; }
.gentle p { margin: 0; color: var(--ink-soft); }
.gentle ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.gentle li { margin: 0.25rem 0; }

/* ── III/IV. Field notes ──────────────────────────────── */
.split {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.split.flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split figure { margin: 0; position: sticky; top: 1.5rem; }
.split figure img {
  width: 100%; border: 1px solid var(--mulberry); padding: clamp(8px, 1.2vw, 14px); background: var(--mat); box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split figure { position: static; }
  .split.flip figure { order: -1; }
}

.notes { list-style: none; margin: 0; padding: 0; counter-reset: note; }
.notes li { counter-increment: note; display: grid; grid-template-columns: 3rem 1fr; gap: 0.35rem 0.9rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.notes li:first-child { border-top: 1px solid var(--mulberry); }
.notes li::before {
  content: counter(note, upper-roman); grid-row: span 2;
  font-family: var(--display); font-size: 1.35rem; color: var(--mulberry); line-height: 1.25;
}
.notes h3 { font-size: 1.3rem; }
.notes p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* A blush band with an oversized opening quotation mark. */
.pullquote {
  margin: clamp(3.5rem, 7vw, 5rem) auto 0; max-width: 48rem; text-align: center; position: relative;
  padding: clamp(4.4rem, 7vw, 5.2rem) clamp(1.2rem, 4vw, 3rem) clamp(2rem, 4vw, 2.8rem);
  background: var(--blush); border-top: 1px solid var(--mulberry); border-bottom: 1px solid var(--mulberry);
  font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 2.8vw, 2.05rem); line-height: 1.35; color: var(--ink);
}
.pullquote::before {
  content: "\201C"; position: absolute; left: 50%; top: 0.9rem; transform: translateX(-50%);
  font-family: var(--display); font-style: normal; font-size: 4.4rem; line-height: 1; color: var(--accent);
}

/* ── V. AI uses ───────────────────────────────────────── */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--mulberry); }
.use {
  padding: 1.8rem clamp(1rem, 2.2vw, 1.8rem) 1.8rem 0; display: flex; flex-direction: column; gap: 0.55rem;
  border-bottom: 1px solid var(--rule);
}
.use:not(:nth-child(3n + 1)) { padding-left: clamp(1rem, 2.2vw, 1.8rem); border-left: 1px solid var(--rule); }
.use .tag { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.use h3 { font-size: 1.45rem; }
.use p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .use:nth-child(even) { padding-left: clamp(1rem, 2.2vw, 1.8rem); border-left: 1px solid var(--rule); }
}
@media (max-width: 620px) {
  .uses { grid-template-columns: 1fr; }
  .use:nth-child(even) { padding-left: 0; border-left: 0; }
}

.heirloom {
  margin-top: clamp(3.5rem, 7vw, 5rem); display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: center;
}
/* The painting hangs in the same tiled mat as the opening picture. */
.heirloom figure { margin: 0; }
.heirloom figure img { width: 100%; padding: 22px; background: var(--tile) 0 0 / 22px 22px round; box-shadow: var(--shadow); }
.heirloom h3 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.heirloom p { color: var(--ink-soft); }
@media (max-width: 760px) { .heirloom { grid-template-columns: 1fr; } .heirloom figure { max-width: 24rem; } }

.honest { margin-top: 1.4rem; padding-left: 1rem; border-left: 2px solid var(--accent); font-size: 0.92rem; color: var(--ink-soft); }

/* ── VI. Professionals ────────────────────────────────── */
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.4rem); }
.trade { background: var(--mat); border: 1px solid var(--rule); border-top: 3px solid var(--mulberry); padding: 1.6rem 1.5rem 1.2rem; }
.trade h3 { margin-bottom: 0.5rem; font-size: 1.55rem; }
.trade .for { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.7rem; }
.trade ul { margin: 0; padding: 0; list-style: none; }
.trade li { padding: 0.6rem 0 0.6rem 1.2rem; position: relative; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--rule); }
.trade li::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 6px; height: 6px; background: var(--mulberry); transform: rotate(45deg); }
@media (max-width: 860px) { .trades { grid-template-columns: 1fr; } }

.wide-plate { margin: clamp(3.5rem, 7vw, 5rem) auto 0; max-width: 26rem; text-align: center; }
.wide-plate img { width: 100%; border: 1px solid var(--mulberry); padding: 12px; background: var(--mat); box-shadow: var(--shadow); }

/* ── VII. Idea cards ──────────────────────────────────── */
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.idea { background: var(--mat); border: 1px solid var(--rule); padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.idea .label { font-family: var(--display); font-size: 1.45rem; margin: 0; }
.idea .label span { display: block; font-family: var(--text); font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.3rem; }
.idea blockquote {
  margin: 0; padding: 1rem 1.1rem; background: var(--blush); border-left: 2px solid var(--mulberry);
  font-size: 0.94rem; line-height: 1.62; color: var(--ink);
}
.idea .row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: auto; }
.copy { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.68rem; }
.copied { font-size: 0.85rem; color: var(--mulberry); min-height: 1.2em; }
@media (max-width: 760px) { .ideas { grid-template-columns: 1fr; } }

.steps { margin: clamp(2.4rem, 5vw, 3.4rem) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; }
.steps li { counter-increment: step; font-size: 0.93rem; color: var(--ink-soft); border-top: 1px solid var(--mulberry); padding-top: 0.9rem; }
.steps li::before { content: "Step " counter(step); display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ── VIII. FAQ ────────────────────────────────────────── */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq details:first-of-type { border-top: 1px solid var(--mulberry); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.6rem 1.25rem 0; position: relative;
  font-family: var(--display); font-size: clamp(1.18rem, 2vw, 1.38rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--mulberry); border-bottom: 1.5px solid var(--mulberry); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 1.3rem; color: var(--ink-soft); max-width: var(--measure); }

/* ── Closing: a framed tile panel ─────────────────────── */
.closing { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.closing .panel { padding: 30px; background: var(--tile) 0 0 / 30px 30px round; box-shadow: var(--shadow); }
@media (max-width: 560px) { .closing .panel { padding: 20px; background-size: 20px 20px; } }
.closing .panel-inner {
  background: var(--paper); text-align: center; padding: clamp(2.8rem, 7vw, 5rem) clamp(1.2rem, 4vw, 3rem);
  outline: 1px solid var(--mulberry); outline-offset: -8px;
}
.closing h2 { max-width: 40rem; margin: 0 auto 1.2rem; }
.closing p { max-width: 34rem; margin: 0 auto 2rem; color: var(--ink-soft); }
.closing .actions { justify-content: center; }

.colophon { border-top: 3px double var(--rule-strong); padding: 2rem 0 2.6rem; font-size: 0.82rem; color: var(--ink-faint); }
.colophon .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.colophon a { color: var(--ink-soft); text-decoration: none; letter-spacing: 0.04em; }
.colophon a:hover { color: var(--mulberry); text-decoration: underline; }

/* ── Motion, print ────────────────────────────────────── */
.rise { opacity: 1; transform: none; }
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .rise.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}

@media print {
  :root { --paper: #fff; --blush: #fff; --mat: #fff; --ink: #000; --ink-soft: #222; --ink-faint: #444; }
  .masthead nav, .actions, .copy, .copied, .skip, .tint::before { display: none !important; }
  .chapter { padding: 2rem 0; }
  .split figure { position: static; }
  .js .rise { opacity: 1; transform: none; }
  a { color: inherit; }
}
