/* How It Works: the field book. Readings on the left leaf, sketches on the right, closure before launch. */
.hw-page {
  --hw-leaf: #eef0e6;
  --hw-ruled: #f7f8f2;
  --hw-ink: #22282a;
  --hw-muted: #525a56;
  --hw-blue: #5f7d97;
  --hw-blue-soft: rgba(95, 125, 151, 0.34);
  --hw-red: #b3402a;
  --hw-cloth: #2f382d;
  --hw-cloth-deep: #262e24;
  --hw-cloth-ink: #ecead8;
  --hw-cloth-muted: #bfc1ab;
  --hw-cloth-rule: #4f5a4b;
  --hw-rule: #c5cabc;
  --hw-rule-strong: #9aa192;
  --hw-gutter: clamp(22px, 4.4vw, 64px);
  --hw-indent: clamp(96px, 12vw, 180px);
  background: var(--hw-leaf);
  color: var(--hw-ink);
  font-family: "DM Sans Variable", "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  isolation: isolate;
  overflow-x: clip;
  position: relative;
}
.hw-page * { box-sizing: border-box; }
.hw-page ::selection { background: #e2b3a6; color: #22282a; }
.hw-page :where(h1, h2, h3, h4, p, figure, dl, dd, blockquote) { margin: 0; }
.hw-page :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.hw-page :is(.hw-table-wrap, .hw-blueprint-grid, .hw-stage-strip) { position: relative; }
.hw-page a { color: inherit; text-underline-offset: 4px; }
.hw-page p a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--hw-rule-strong); }
.hw-page p a:hover { color: var(--hw-red); text-decoration-color: currentColor; }
.hw-page :is(a, summary, label, [tabindex="0"]):focus-visible { outline: 2px solid var(--hw-red); outline-offset: 4px; }
.hw-page section[id], .hw-page details[id], .hw-page .hw-part[id] { scroll-margin-top: 130px; }
.hw-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hw-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--hw-gutter); }

/* Type */
.hw-page h1 { font-size: clamp(2.6rem, 4.1vw, 4.2rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.037em; text-wrap: balance; }
.hw-page h2, .hw-page .hw-chapter-head h3 { font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.hw-page h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }
.hw-page h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.hw-page p { color: var(--hw-muted); max-width: 70ch; }
.hw-pencil, .hw-margin-note, .hw-rule-quote p, .hw-readings dl > div:nth-child(2) dd {
  font-family: "Cormorant Garamond Variable", "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-weight: 500;
}
.hw-pencil { font-size: 1.25rem; line-height: 1.25; color: #3d4644 !important; }
.hw-pencil-red { color: var(--hw-red) !important; }

/* Actions */
.hw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.hw-button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px;
  background: var(--hw-ink); color: var(--hw-ruled) !important; text-decoration: none;
  font-size: 0.93rem; font-weight: 600; transition: background-color 180ms ease-out;
}
.hw-button:hover { background: #3a4240; }
.hw-button-light { background: var(--hw-cloth-ink); color: var(--hw-cloth) !important; }
.hw-button-light:hover { background: #fffdf0; }
.hw-text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.hw-text-link svg { transition: transform 180ms ease-out; }
.hw-text-link:hover { color: var(--hw-red); }
.hw-text-link:hover svg { transform: translateX(3px); }
.hw-text-link-light { color: var(--hw-cloth-ink); }
.hw-text-link-light:hover { color: #fff; }

/* Hero: the open field book */
.hw-hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: 0 clamp(32px, 4.5vw, 76px);
  align-items: start;
  padding-top: clamp(136px, 10.5vw, 158px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.hw-hero-copy { padding-top: 6px; }
.hw-lead { margin-top: 24px !important; font-size: 1.1rem; line-height: 1.66; color: #3f4744 !important; }
.hw-spread {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--hw-ruled); border: 1px solid var(--hw-rule-strong);
  box-shadow: 0 30px 60px -28px rgba(34, 40, 42, 0.38), 0 2px 0 rgba(34, 40, 42, 0.06);
}
.hw-spread::before {
  content: ""; position: absolute; top: 0; bottom: 41px; left: 50%; width: 1px; transform: translateX(-0.5px);
  background: var(--hw-rule-strong);
  box-shadow: -10px 0 18px -8px rgba(34, 40, 42, 0.12), 10px 0 18px -8px rgba(34, 40, 42, 0.12);
}
.hw-leaf {
  position: relative; padding: 22px clamp(18px, 2vw, 30px) 24px; min-height: 380px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--hw-blue-soft) 31px 32px);
  background-position: 0 58px;
}
.hw-leaf-left::after { content: ""; position: absolute; top: 52px; bottom: 0; left: clamp(40px, 3.2vw, 52px); width: 1px; background: rgba(179, 64, 42, 0.36); }
.hw-leaf-head {
  display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 12px !important;
  border-bottom: 1.5px solid var(--hw-ink); font-size: 0.72rem; font-weight: 600; color: var(--hw-ink) !important;
}
.hw-readings-mini li {
  display: grid; grid-template-columns: 22px 1fr; align-items: center; height: 32px; gap: 10px; white-space: nowrap;
  padding-left: clamp(22px, 1.8vw, 30px); font-size: 0.86rem; line-height: 1.25; color: var(--hw-ink);
}
.hw-readings-mini svg { color: var(--hw-blue); }
.hw-readings-mini .hw-struck span { text-decoration: line-through; text-decoration-color: var(--hw-red); color: var(--hw-muted); }
.hw-readings-mini .hw-struck svg { color: var(--hw-red); }
.hw-leaf .hw-pencil { margin-top: 18px !important; padding-left: clamp(22px, 1.8vw, 30px); }
.hw-spread figcaption {
  grid-column: 1 / -1; min-height: 41px; padding: 10px clamp(18px, 2vw, 30px); border-top: 1px solid var(--hw-rule);
  font-size: 0.75rem; line-height: 1.4; color: var(--hw-muted); background: var(--hw-leaf);
}
.hw-hero-sketch { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.hw-guides line { stroke: var(--hw-blue); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.6; }
.hw-draw { fill: none; stroke: var(--hw-ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.hw-lost { stroke-dasharray: 6 7; stroke: var(--hw-muted); }
.hw-nodes circle, .hw-nodes rect { fill: var(--hw-ruled); stroke: var(--hw-ink); stroke-width: 2; }
.hw-break { fill: none; stroke: var(--hw-red); stroke-width: 2; stroke-dasharray: 3 3; }
.hw-labels text { font-size: 12.5px; fill: var(--hw-ink); font-family: "DM Sans Variable", sans-serif; }
.hw-stage-strip {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(30px, 3.4vw, 48px); border-top: 1.5px solid var(--hw-ink); border-bottom: 1px solid var(--hw-rule-strong);
}
.hw-stage-strip a {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-content: start;
  padding: 14px 16px 16px; text-decoration: none; border-left: 1px solid var(--hw-rule);
  transition: background-color 160ms ease-out;
}
.hw-stage-strip a:first-child { border-left: 0; padding-left: 0; }
.hw-stage-strip a:hover { background: var(--hw-ruled); }
.hw-strip-no { grid-row: span 2; font-size: 1.5rem; line-height: 1; font-weight: 500; color: var(--hw-red); }
.hw-strip-label { font-size: 0.95rem; font-weight: 600; color: var(--hw-ink); }
.hw-strip-title { font-size: 0.8rem; line-height: 1.35; color: var(--hw-muted); }
@media (prefers-reduced-motion: no-preference) {
  .hw-draw { stroke-dasharray: 700; stroke-dashoffset: 700; animation: hw-pencil 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
  .hw-draw.hw-draw-late { animation-delay: 0.9s; }
  .hw-draw.hw-lost { stroke-dasharray: 6 7; stroke-dashoffset: 0; animation: hw-fade 0.8s ease-out 1.1s both; }
  .hw-hero .hw-break { animation: hw-fade 0.6s ease-out 1.6s both; }
}
@keyframes hw-pencil { to { stroke-dashoffset: 0; } }
@keyframes hw-fade { from { opacity: 0; } to { opacity: 1; } }

/* Stage parts: the one spine */
.hw-part {
  display: grid; grid-template-columns: var(--hw-indent) minmax(0, 1fr) minmax(220px, 30%);
  align-items: end; gap: 12px 0;
  padding-top: clamp(64px, 7vw, 100px); padding-bottom: 22px;
  border-bottom: 6px solid var(--hw-cloth);
}
.hw-part-no { font-size: clamp(4rem, 7vw, 6rem); line-height: 0.8; font-weight: 400; letter-spacing: -0.05em; color: var(--hw-red); }
.hw-part-title { display: grid; gap: 6px; font-size: clamp(1.9rem, 2.6vw, 2.6rem) !important; }
.hw-part-title span { font-size: 1.05rem; line-height: 1.4; font-weight: 400; letter-spacing: 0; color: var(--hw-muted); }
.hw-part-links { display: grid; gap: 2px; justify-self: end; text-align: right; }
.hw-part-links a { font-size: 0.9rem; color: var(--hw-muted); text-decoration: none; }
.hw-part-links a:hover { color: var(--hw-red); }

/* Sections and chapter heads */
.hw-section { padding-block: clamp(56px, 6vw, 92px); }
.hw-section-ruled { background: var(--hw-ruled); border-block: 1px solid var(--hw-rule); }
.hw-section-leaf { background: #e5e8dc; border-block: 1px solid var(--hw-rule); }
.hw-chapter-head {
  display: grid; grid-template-columns: var(--hw-indent) minmax(0, 1fr); gap: 12px 0; align-items: start;
  padding-top: 18px; border-top: 1px solid var(--hw-rule-strong); margin-bottom: clamp(30px, 3.4vw, 48px);
}
.hw-chapter-head > :last-child { max-width: 26ch; }
.hw-chapter-head-h2 > :last-child { max-width: none; }
.hw-margin-note { font-size: 1.12rem; line-height: 1.25; color: #3d4644 !important; padding: 10px 22px 0 0; }
.hw-prose { display: grid; align-content: start; gap: 18px; font-size: 1.02rem; }
.hw-prose-wide { max-width: 76ch; }
.hw-section > .hw-prose-wide, .hw-wrap > .hw-prose-wide { margin-left: var(--hw-indent); }
.hw-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 88px); margin-left: var(--hw-indent); align-items: start; }
.hw-caption { margin-top: 14px !important; font-size: 0.8rem; color: var(--hw-muted); }
.hw-aside-line { margin: clamp(32px, 4vw, 48px) 0 0 var(--hw-indent) !important; padding-top: 16px; border-top: 1px solid var(--hw-rule); font-size: 0.95rem; }

/* First conversation */
.hw-bring { border: 1px solid var(--hw-rule-strong); background: var(--hw-ruled); padding: 22px 24px 24px; }
.hw-bring h4 { margin-bottom: 10px; }
.hw-bring li { padding: 10px 0; border-top: 1px solid var(--hw-rule); font-size: 0.92rem; line-height: 1.5; color: var(--hw-muted); }
.hw-table-wrap { margin-top: clamp(34px, 4vw, 56px); overflow-x: auto; }
.hw-ledger { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.55; min-width: 720px; }
.hw-ledger thead th { text-align: left; font-size: 0.76rem; font-weight: 600; color: var(--hw-ink); padding: 0 18px 12px 0; border-bottom: 1.5px solid var(--hw-ink); vertical-align: bottom; }
.hw-ledger :is(tbody th, td) { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--hw-rule); vertical-align: top; color: var(--hw-muted); text-align: left; }
.hw-ledger tbody th { font-weight: 600; color: var(--hw-ink); width: 26%; }
.hw-sizing tbody th { width: 18%; }
.hw-sizing td:nth-child(4) { color: var(--hw-ink); }
.hw-sizing thead th:not(:first-child)::after { content: ""; display: block; height: 6px; margin-top: 10px; width: 100%; background: linear-gradient(90deg, var(--hw-ink) var(--fill), var(--hw-rule) var(--fill)); }
.hw-sizing thead th:nth-child(2) { --fill: 33%; }
.hw-sizing thead th:nth-child(3) { --fill: 66%; }
.hw-sizing thead th:nth-child(4) { --fill: 100%; }
.hw-sizing thead th:nth-child(4)::after { background: var(--hw-red); }

/* Readings */
.hw-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(38px, 4.5vw, 60px); border-top: 1.5px solid var(--hw-ink); }
.hw-readings > li { padding: 22px clamp(18px, 2vw, 28px) 28px 0; border-bottom: 1px solid var(--hw-rule); }
.hw-readings > li:not(:nth-child(3n + 1)) { padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid var(--hw-rule); }
.hw-station { font-size: 1.35rem !important; font-weight: 500 !important; letter-spacing: -0.02em; margin-bottom: 14px !important; }
.hw-readings dl { display: grid; gap: 12px; }
.hw-readings dt { font-size: 0.72rem; font-weight: 600; color: var(--hw-ink); }
.hw-readings dd { font-size: 0.92rem; line-height: 1.55; color: var(--hw-muted); }
.hw-readings dl > div:nth-child(2) dd { font-size: 1.16rem; line-height: 1.32; color: var(--hw-ink); }

/* Sketch switch */
.hw-sketch { position: relative; margin-top: clamp(38px, 4.5vw, 60px); }
.hw-state-input { position: absolute; opacity: 0; pointer-events: none; }
.hw-switch { display: inline-flex; border: 1.5px solid var(--hw-ink); margin-bottom: 22px; }
.hw-switch label { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--hw-ink); transition: background-color 160ms ease-out, color 160ms ease-out; }
.hw-switch label + label { border-left: 1.5px solid var(--hw-ink); }
#hw-state-before:checked ~ .hw-switch label[for="hw-state-before"],
#hw-state-after:checked ~ .hw-switch label[for="hw-state-after"] { background: var(--hw-ink); color: var(--hw-ruled); }
#hw-state-before:focus-visible ~ .hw-switch label[for="hw-state-before"],
#hw-state-after:focus-visible ~ .hw-switch label[for="hw-state-after"] { outline: 2px solid var(--hw-red); outline-offset: 3px; }
.hw-state-plate {
  background: var(--hw-ruled); border: 1px solid var(--hw-rule-strong); padding: clamp(10px, 1.6vw, 22px) clamp(14px, 2.5vw, 34px);
  background-image: linear-gradient(var(--hw-blue-soft) 1px, transparent 1px), linear-gradient(90deg, var(--hw-blue-soft) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.hw-state-svg { display: block; width: 100%; height: auto; }
.hw-state-line { fill: none; stroke: var(--hw-ink); stroke-width: 2.5; stroke-linecap: round; }
.hw-state-after .hw-state-line { stroke-width: 3.5; }
.hw-node { fill: var(--hw-ruled); stroke: var(--hw-ink); stroke-width: 2.5; }
.hw-node-broken { fill: var(--hw-ruled); stroke: var(--hw-red); stroke-width: 2.5; }
.hw-node-no { font-size: 11px; font-weight: 700; fill: var(--hw-ink); font-family: "DM Sans Variable", sans-serif; }
.hw-layer-after, .hw-notes-after { display: none; }
#hw-state-after:checked ~ .hw-state-plate .hw-layer-before, #hw-state-after:checked ~ .hw-state-notes .hw-notes-before { display: none; }
#hw-state-after:checked ~ .hw-state-plate .hw-layer-after, #hw-state-after:checked ~ .hw-state-notes .hw-notes-after { display: block; }
.hw-notes h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hw-notes ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 1px solid var(--hw-rule); }
.hw-notes li { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 14px 20px; border-right: 1px solid var(--hw-rule); border-bottom: 1px solid var(--hw-rule); font-size: 0.86rem; line-height: 1.45; color: var(--hw-muted); }
.hw-notes li strong { font-size: 0.95rem; color: var(--hw-ink); font-weight: 600; }
.hw-note-no { font-size: 0.75rem; font-weight: 700; color: var(--hw-muted); }
.hw-notes li.is-broken .hw-note-no { color: var(--hw-red); }
.hw-break-tag { justify-self: start; margin-top: 4px; font-style: normal; font-size: 0.72rem; font-weight: 600; color: var(--hw-red); border: 1px solid var(--hw-red); padding: 1px 8px; }
@media (prefers-reduced-motion: no-preference) {
  #hw-state-after:checked ~ .hw-state-plate .hw-state-after .hw-state-line { stroke-dasharray: 640; stroke-dashoffset: 640; animation: hw-pencil 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
}

/* Set aside rail */
.hw-rule-quote { border-top: 1.5px solid var(--hw-ink); padding-top: 18px; }
.hw-rule-quote p { font-size: clamp(1.7rem, 2.3vw, 2.25rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--hw-ink); }
.hw-rail { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.hw-rail-line { height: 3px; background: var(--hw-ink); }
.hw-rail ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(12px, 1.4vw, 22px); }
.hw-rail li { position: relative; padding-top: 34px; }
.hw-rail li::before { content: ""; position: absolute; top: 0; left: 18px; width: 1px; height: 34px; background: var(--hw-rule-strong); }
.hw-pin { position: absolute; top: -6px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: var(--hw-red); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.hw-tag { background: var(--hw-ruled); border: 1px solid var(--hw-rule-strong); padding: 12px 14px; margin-bottom: 12px !important; font-size: 0.96rem; font-weight: 600; line-height: 1.3; color: var(--hw-ink) !important; }
.hw-tag s { text-decoration-color: var(--hw-red); text-decoration-thickness: 2px; }
.hw-rail li > p:last-child { font-size: 0.88rem; line-height: 1.5; }
.hw-keep-change { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(56px, 6vw, 88px); border-top: 1.5px solid var(--hw-ink); }
.hw-keep-change > div { padding: 22px clamp(18px, 3vw, 44px) 0 0; }
.hw-keep-change > div + div { border-left: 1px solid var(--hw-rule); padding-left: clamp(18px, 3vw, 44px); }
.hw-keep-change h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hw-keep-change > div:first-child h4 svg { color: var(--hw-blue); }
.hw-keep-change > div + div h4 svg { color: var(--hw-red); }
.hw-keep-change li { padding: 11px 0; border-bottom: 1px solid var(--hw-rule); font-size: 0.95rem; color: var(--hw-muted); }

/* Design */
.hw-design { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--hw-ink); margin-top: clamp(38px, 4.5vw, 60px); }
.hw-design li { padding: 20px clamp(14px, 1.6vw, 24px) 24px 0; display: grid; align-content: start; gap: 10px; }
.hw-design li + li { padding-left: clamp(14px, 1.6vw, 24px); border-left: 1px solid var(--hw-rule); }
.hw-design h4 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.hw-design p { font-size: 0.9rem; line-height: 1.55; }
.hw-example { border-top: 1px solid var(--hw-rule); padding-top: 10px; margin-top: 4px !important; }
.hw-example span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--hw-ink); }
.hw-blueprint { margin-top: clamp(48px, 6vw, 80px); }
.hw-blueprint-grid { background: var(--hw-ink); padding: 1px; overflow-x: auto; }
.hw-lane { display: grid; grid-template-columns: 120px repeat(5, minmax(150px, 1fr)); gap: 1px; min-width: 900px; }
.hw-lane + .hw-lane { margin-top: 1px; }
.hw-lane-name { background: #1c2123; color: var(--hw-ruled); padding: 16px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; }
.hw-cell { background: var(--hw-ruled); padding: 16px; min-height: 86px; font-size: 0.88rem; line-height: 1.4; color: var(--hw-ink); background-image: linear-gradient(var(--hw-blue-soft) 1px, transparent 1px); background-size: 100% 22px; }
.hw-cell-empty { background: #d9ddd0; background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(34, 40, 42, 0.06) 7px 8px); }
.hw-cell-human { background: #f6e3dc; box-shadow: inset 0 0 0 1.5px var(--hw-red); font-weight: 600; }
.hw-blueprint figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--hw-muted); }
.hw-sizing-link { border: 1px solid var(--hw-rule-strong); padding: 22px 24px; background: var(--hw-leaf); display: grid; gap: 10px; }
.hw-sizing-link p { font-size: 0.93rem; }

/* Responsibilities */
.hw-holders { min-width: 980px; }
.hw-holders tbody th { width: 22%; }
.hw-holder { font-size: 0.8rem; font-weight: 600; white-space: nowrap; width: 9%; }
.hw-holder::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; vertical-align: 0; box-sizing: border-box; }
.hw-holder-leads { color: var(--hw-ink) !important; }
.hw-holder-leads::before { background: var(--hw-ink); }
.hw-holder-supports::before { border: 1.5px solid var(--hw-muted); }
.hw-holder-performs::before { background: var(--hw-blue); }
.hw-holder-bills { color: var(--hw-red) !important; }
.hw-holder-bills::before { background: var(--hw-red); }
.hw-holder-none { color: var(--hw-rule-strong) !important; }
.hw-holder-none::before { display: none; }
.hw-holder-note { font-size: 0.88rem; }

/* Cloth: the five stages and the close */
.hw-cloth { background: var(--hw-cloth); color: var(--hw-cloth-ink); }
.hw-cloth p { color: var(--hw-cloth-muted); }
.hw-cloth :is(a, summary):focus-visible { outline-color: #e5b09f; }
.hw-build { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); padding-block: clamp(72px, 8vw, 116px); align-items: start; }
.hw-build-intro { position: sticky; top: 130px; display: grid; gap: 18px; }
.hw-build-intro h2 { color: var(--hw-cloth-ink); }
.hw-build-quiet { font-size: 0.93rem; padding-top: 14px; border-top: 1px solid var(--hw-cloth-rule); }
.hw-stages { border-top: 1.5px solid var(--hw-cloth-ink); }
.hw-stage { border-bottom: 1px solid var(--hw-cloth-rule); }
.hw-stage summary { display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 14px; padding: 22px 0; cursor: pointer; list-style: none; }
.hw-stage summary::-webkit-details-marker { display: none; }
.hw-stage-no { font-size: 1.3rem; font-weight: 500; color: #e3a28f; }
.hw-stage-heading { display: grid; gap: 2px; }
.hw-stage-title { font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.hw-stage-icon { color: var(--hw-cloth-muted); transition: transform 200ms ease-out; }
.hw-stage[open] .hw-stage-icon { transform: rotate(45deg); color: #e3a28f; }
.hw-stage summary:hover .hw-stage-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hw-stage-body { padding: 0 0 26px 70px; display: grid; gap: 18px; }
.hw-stage-lead { font-size: 1.05rem; line-height: 1.65; max-width: 62ch; }
.hw-stage-body dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hw-cloth-rule); }
.hw-stage-body dl > div { padding: 14px 16px 0 0; }
.hw-stage-body dl > div + div { padding-left: 16px; border-left: 1px solid var(--hw-cloth-rule); }
.hw-stage-body dt { font-size: 0.72rem; font-weight: 600; color: var(--hw-cloth-ink); margin-bottom: 6px; }
.hw-stage-body dd { font-size: 0.88rem; line-height: 1.55; color: var(--hw-cloth-muted); }
.hw-stage-chapters { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; border-top: 1px solid var(--hw-cloth-rule); font-size: 0.85rem; }
.hw-stage-chapters span { color: var(--hw-cloth-muted); }
.hw-stage-chapters a { color: var(--hw-cloth-ink); text-decoration: underline; text-decoration-color: var(--hw-cloth-rule); text-underline-offset: 4px; }
.hw-stage-chapters a:hover { text-decoration-color: #e3a28f; }

/* Building */
.hw-build-list { border-top: 1.5px solid var(--hw-ink); background: var(--hw-ruled); padding: 18px 22px 20px; }
.hw-build-list h4 { margin-bottom: 10px; }
.hw-build-list li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hw-rule); font-size: 0.9rem; color: var(--hw-ink); }
.hw-build-list li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border: 1.5px solid var(--hw-ink); }

/* Testing */
.hw-margin-block { border-left: 1px solid var(--hw-red); padding-left: 18px; }
.hw-margin-block .hw-pencil { font-size: 1.45rem; }
.hw-tests tbody th { width: 20%; }
.hw-pass { display: inline-grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--hw-ink); }
.hw-pass svg { margin-top: 4px; color: var(--hw-blue); }

/* Launch */
.hw-closure { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); margin-left: var(--hw-indent); }
.hw-closure-sketch { display: block; width: min(100%, 340px); height: auto; margin: 6px 0 4px; overflow: visible; }
.hw-closing-line { fill: none; stroke: var(--hw-red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 7; }
.hw-traverse-point { fill: var(--hw-ruled); stroke: var(--hw-ink); stroke-width: 2; }
.hw-closure-label { font-family: "Cormorant Garamond Variable", Georgia, serif; font-style: italic; font-size: 17px; fill: var(--hw-red); }
@media (prefers-reduced-motion: no-preference) {
  .hw-closing-line { animation: hw-fade 0.8s ease-out 1.5s both; }
}
.hw-not-ready { padding: 20px 22px; border: 1px dashed var(--hw-red); background: rgba(179, 64, 42, 0.05); }
.hw-not-ready h4 { color: var(--hw-red); margin-bottom: 8px; }
.hw-not-ready li { padding: 6px 0; font-size: 0.92rem; color: var(--hw-ink); }
.hw-closure-list { border-top: 1.5px solid var(--hw-ink); background: var(--hw-ruled); }
.hw-closure-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--hw-rule); font-size: 0.95rem; line-height: 1.5; color: var(--hw-ink); }
.hw-box { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--hw-ink); color: var(--hw-ink); }
.hw-sample { margin: clamp(56px, 6vw, 88px) 0 0 var(--hw-indent); }
.hw-sample-leaf {
  position: relative; background: var(--hw-ruled); border: 1px solid var(--hw-rule-strong); padding: 22px clamp(18px, 2.4vw, 34px) 26px;
  box-shadow: 0 26px 50px -30px rgba(34, 40, 42, 0.45);
  border-top: 5px solid var(--hw-blue);
}
.hw-sample-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-bottom: 12px; border-bottom: 1.5px solid var(--hw-ink); }
.hw-sample-head p { font-size: 0.8rem; color: var(--hw-ink); max-width: none; }
.hw-sample-wrap { margin-top: 6px; }
.hw-sample-table { min-width: 680px; background: transparent; }
.hw-sample-table :is(tbody th, td) { padding: 11px 18px 11px 0; }
.hw-result { display: inline-block; padding: 1px 10px; font-size: 0.78rem; font-weight: 600; border: 1.5px solid currentColor; }
.hw-result-pass { color: var(--hw-blue); }
.hw-result-changed { color: var(--hw-ink); }
.hw-result-fixed { color: var(--hw-red); }
.hw-sample-note { margin-top: 16px !important; }
.hw-sample figcaption { margin-top: 14px; font-size: 0.82rem; color: var(--hw-muted); max-width: 80ch; }

/* After launch */
.hw-after { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(38px, 4.5vw, 60px); border-top: 1.5px solid var(--hw-ink); }
.hw-after article { padding: 20px clamp(14px, 1.6vw, 22px) 0 0; }
.hw-after article + article { padding-left: clamp(14px, 1.6vw, 22px); border-left: 1px solid var(--hw-rule); }
.hw-after h4 { margin-bottom: 10px; }
.hw-after p { font-size: 0.9rem; line-height: 1.58; }
.hw-more { margin-top: clamp(38px, 4.5vw, 56px); border-top: 1px solid var(--hw-rule-strong); border-bottom: 1px solid var(--hw-rule-strong); }
.hw-more summary, .hw-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--hw-ink); }
.hw-more summary::-webkit-details-marker, .hw-faq-list summary::-webkit-details-marker { display: none; }
.hw-more summary svg, .hw-faq-list summary svg { flex-shrink: 0; transition: transform 200ms ease-out; }
.hw-more[open] summary svg, .hw-faq-list details[open] summary svg { transform: rotate(45deg); color: var(--hw-red); }
.hw-more ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-bottom: 12px; }
.hw-more li { padding: 10px 0; border-top: 1px solid var(--hw-rule); font-size: 0.88rem; line-height: 1.5; color: var(--hw-muted); }
.hw-more > p { padding-bottom: 20px; font-size: 0.92rem; }

/* Wait */
.hw-wait { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(38px, 4.5vw, 60px); border-top: 1.5px solid var(--hw-ink); }
.hw-wait > div { padding: 22px clamp(16px, 2vw, 28px) 26px 0; border-bottom: 1px solid var(--hw-rule); }
.hw-wait > div:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--hw-rule); }
.hw-wait dt { font-size: 1.25rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; color: var(--hw-ink); margin-bottom: 10px; }
.hw-wait dd { font-size: 0.93rem; line-height: 1.58; color: var(--hw-muted); }

/* Starting paths */
.hw-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--hw-ink); }
.hw-paths li { display: grid; align-content: start; gap: 10px; padding: 22px clamp(14px, 1.8vw, 26px) 28px 0; border-bottom: 1px solid var(--hw-rule); }
.hw-paths li:not(:nth-child(4n + 1)) { padding-left: clamp(14px, 1.8vw, 26px); border-left: 1px solid var(--hw-rule); }
.hw-paths h3 { font-size: 1.2rem; }
.hw-paths p { font-size: 0.88rem; line-height: 1.55; }
.hw-path-rec { color: var(--hw-ink) !important; }
.hw-paths .hw-paths-review { background: var(--hw-ruled); align-content: center; padding-right: clamp(14px, 1.8vw, 26px); }
.hw-paths-review p { font-family: "Cormorant Garamond Variable", Georgia, serif; font-style: italic; font-size: 1.35rem; line-height: 1.25; color: var(--hw-ink); }

/* FAQ */
.hw-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.hw-faq-head { position: sticky; top: 130px; }
.hw-faq-list { border-top: 1.5px solid var(--hw-ink); }
.hw-faq-list details { border-bottom: 1px solid var(--hw-rule-strong); }
.hw-faq-list summary { font-size: 1.05rem; padding: 20px 0; }
.hw-faq-list details p { padding: 0 40px 22px 0; font-size: 0.96rem; }

/* Close */
.hw-close { border-top: 6px solid var(--hw-cloth-deep); }
.hw-close-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); padding-block: clamp(72px, 8vw, 116px); align-items: start; }
.hw-close-copy { display: grid; gap: 18px; justify-items: start; }
.hw-close h2 { color: var(--hw-cloth-ink); font-size: clamp(2.4rem, 4vw, 3.8rem); max-width: 18ch; }
.hw-close-copy p { font-size: 1.08rem; max-width: 56ch; }
.hw-close-file { border-top: 1.5px solid var(--hw-cloth-ink); padding-top: 18px; }
.hw-close-file h3 { color: var(--hw-cloth-ink); margin-bottom: 8px; }
.hw-close-file li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--hw-cloth-rule); }
.hw-close-file strong { color: var(--hw-cloth-ink); font-weight: 600; font-size: 0.98rem; }
.hw-close-file span { color: var(--hw-cloth-muted); font-size: 0.88rem; line-height: 1.5; }

/* Responsive */
@media (max-width: 1180px) {
  .hw-hero { grid-template-columns: 1fr; row-gap: 40px; }
  .hw-spread { max-width: 860px; }
  .hw-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-readings > li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .hw-readings > li:nth-child(even) { padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid var(--hw-rule); }
  .hw-rail ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .hw-design { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hw-design li:nth-child(4) { padding-left: 0; border-left: 0; }
  .hw-after { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .hw-after article:nth-child(4) { padding-left: 0; border-left: 0; }
  .hw-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-paths li:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .hw-paths li:nth-child(even) { padding-left: clamp(14px, 1.8vw, 26px); border-left: 1px solid var(--hw-rule); }
  .hw-notes ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hw-part { grid-template-columns: var(--hw-indent) minmax(0, 1fr); }
  .hw-part-links { grid-column: 2; justify-self: start; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 18px; }
}
@media (max-width: 900px) {
  .hw-chapter-head { grid-template-columns: 1fr; gap: 6px; }
  .hw-chapter-head > :last-child { order: -1; max-width: none; }
  .hw-margin-note { padding: 0; }
  .hw-two, .hw-closure, .hw-build, .hw-faq, .hw-close-inner { grid-template-columns: 1fr; margin-left: 0; }
  .hw-section > .hw-prose-wide, .hw-wrap > .hw-prose-wide, .hw-aside-line, .hw-sample { margin-left: 0 !important; }
  .hw-build-intro, .hw-faq-head { position: static; }
  .hw-stage-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .hw-stage-strip a { min-width: 190px; scroll-snap-align: start; }
  .hw-keep-change { grid-template-columns: 1fr; }
  .hw-keep-change > div + div { border-left: 0; padding-left: 0; }
  .hw-wait { grid-template-columns: 1fr 1fr; }
  .hw-wait > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .hw-wait > div:nth-child(even) { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--hw-rule); }
  .hw-stage-body { padding-left: 0; }
  .hw-stage-body dl { grid-template-columns: 1fr; }
  .hw-stage-body dl > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--hw-cloth-rule); }
  .hw-more ul { grid-template-columns: 1fr; }
  .hw-part { grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; }
}
@media (max-width: 640px) {
  .hw-page { font-size: 15px; }
  .hw-hero { padding-top: 124px; }
  .hw-spread { grid-template-columns: 1fr; }
  .hw-spread::before { display: none; }
  .hw-leaf { min-height: 0; }
  .hw-leaf-right { border-top: 1px solid var(--hw-rule-strong); }
  .hw-button { width: 100%; justify-content: space-between; }
  .hw-part { grid-template-columns: 1fr; }
  .hw-part-no { font-size: 3.2rem; }
  .hw-part-links { grid-column: 1; }
  .hw-readings, .hw-wait, .hw-paths, .hw-design, .hw-after, .hw-rail ul { grid-template-columns: 1fr; }
  .hw-readings > li:nth-child(even), .hw-wait > div:nth-child(even), .hw-paths li:nth-child(even), .hw-design li + li, .hw-after article + article { padding-left: 0; border-left: 0; }
  .hw-rail-line { display: none; }
  .hw-rail ul { border-left: 3px solid var(--hw-ink); padding-left: 18px; row-gap: 22px; }
  .hw-rail li { padding-top: 0; }
  .hw-rail li::before { display: none; }
  .hw-pin { top: 14px; left: -26px; }
  .hw-switch { display: flex; width: 100%; }
  .hw-switch label { flex: 1; justify-content: center; padding: 0 10px; }
  .hw-state-plate { display: none; }
  .hw-notes ol { grid-template-columns: 1fr; border-left: 0; position: relative; }
  .hw-notes ol::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2.5px; background: var(--hw-ink); }
  .hw-notes-before ol::before { background: repeating-linear-gradient(to bottom, var(--hw-ink) 0 10px, transparent 10px 16px); }
  .hw-notes li { grid-template-columns: 28px 1fr; column-gap: 14px; padding: 12px 0; border: 0; }
  .hw-notes li > :not(.hw-note-no) { grid-column: 2; }
  .hw-note-no {
    grid-row: span 3; position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: var(--hw-ruled); border: 2.5px solid var(--hw-ink); font-size: 0.8rem; color: var(--hw-ink);
  }
  .hw-notes li.is-broken .hw-note-no { border-color: var(--hw-red); box-shadow: 0 0 0 5px var(--hw-leaf), 0 0 0 6.5px var(--hw-red); }
  .hw-stage summary { grid-template-columns: 38px 1fr 22px; }
  .hw-table-wrap { overflow-x: visible; }
  .hw-ledger, .hw-holders, .hw-sample-table { min-width: 0; }
  .hw-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hw-ledger, .hw-ledger tbody, .hw-ledger tr, .hw-ledger tbody th, .hw-ledger td { display: block; width: auto !important; }
  .hw-ledger tr { padding: 16px 0 14px; border-bottom: 1px solid var(--hw-rule); }
  .hw-ledger tbody tr:first-child { border-top: 1.5px solid var(--hw-ink); }
  .hw-ledger :is(tbody th, td) { padding: 4px 0; border-bottom: 0; }
  .hw-ledger tbody th { font-size: 1.02rem; padding-bottom: 8px; }
  .hw-ledger td[data-label]::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 600; color: var(--hw-ink); margin-bottom: 1px; }
  .hw-holders td.hw-holder { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hw-rule); white-space: normal; }
  .hw-holders td.hw-holder::before { display: none; }
  .hw-holders td.hw-holder[data-label]::before { display: none; }
  .hw-holders td.hw-holder::after { content: attr(data-label); order: -1; font-size: 0.82rem; font-weight: 500; color: var(--hw-muted); }
  .hw-holders td.hw-holder-none { display: none; }
  .hw-holders td.hw-holder-note { padding-top: 10px; }
  .hw-sizing td:nth-child(4)::before { color: var(--hw-red); }
}
