/* ============================================================
   CLICKBRIDGE CONSULTING — THE CODEX
   Design system for the letter homepage (/) and the plan page
   (/the-owners-review). Self-contained; does not depend on
   style.css or blog.css. A da Vinci working notebook: warm rag
   paper, sepia ink, sanguine (red-chalk) accent, fine-line plates.
   Hard no: parchment texture, Vitruvian cliché, litigator black.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --paper:       #EAE3D2;  /* warm rag paper ground */
  --paper-lit:   #F1ECDD;  /* the reading panel, a shade lighter */
  --paper-edge:  #E0D7C0;  /* margin / vignette deepening */
  --paper-deep:  #DCD2B9;  /* footer, wells */

  --ink:         #29251E;  /* warm sepia-black — body text */
  --ink-mid:     #4B4437;  /* strong secondary */
  --ink-soft:    #6B6151;  /* marginalia, captions */
  --ink-faint:   #9A8F79;  /* hairlines, ticks, ghosts */

  --sanguine:      #9C4B36; /* da Vinci red chalk — THE accent */
  --sanguine-deep: #7E3A28;
  --verdigris:     #4C5E52; /* muted botanical ink, plates only */

  --measure: 40rem;        /* reading column ~ 62ch */
  --gutter: 15rem;         /* right margin gutter for notes */

  --serif:  "Spectral", Georgia, "Times New Roman", serif;
  --display: "Fraunces", Georgia, serif;
  --mono:   "Fragment Mono", "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  /* depth without texture kitsch: a soft radial lift + faint grain */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255,251,240,0.55), rgba(255,251,240,0) 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(120,100,70,0.10), rgba(120,100,70,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* selection in red chalk */
::selection { background: rgba(156,75,54,0.20); color: var(--ink); }

a { color: var(--sanguine-deep); text-decoration: none; }
a:hover { color: var(--sanguine); }

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

/* ---------- LAYOUT PRIMITIVES ---------- */
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.75rem; }
.reading { max-width: var(--measure); margin: 0 auto; }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 200; font-family: var(--mono); font-size: 0.8rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* visible focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--sanguine);
  outline-offset: 3px;
}

/* ---------- MASTHEAD / NAV ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 1.75rem;
  background: rgba(234,227,210,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.masthead.scrolled {
  border-bottom-color: var(--ink-faint);
  background: rgba(234,227,210,0.94);
}
.masthead__mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: baseline; gap: 0.5rem;
}
.masthead__mark:hover { color: var(--ink); }
.masthead__mark .sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.masthead__nav { display: flex; gap: 1.85rem; align-items: baseline; }
.masthead__link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.masthead__link:hover { color: var(--sanguine); border-bottom-color: var(--sanguine); }

@media (max-width: 620px) {
  .masthead { padding: 0.85rem 1.15rem; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .masthead__mark .sub { display: none; }
  .masthead__nav { gap: 1.35rem; }
}

/* ---------- SHARED TYPE ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sanguine);
  margin: 0 0 1.4rem;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 500; }

.thesis {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.35rem;
}
.dek {
  font-size: 1.24rem;
  line-height: 1.5;
  color: var(--ink-mid);
  margin: 0;
  max-width: 34rem;
}
.dek b { color: var(--ink); font-weight: 500; }

/* rule flourish */
.rule {
  border: 0; height: 1px;
  background: linear-gradient(90deg, var(--ink-faint), rgba(154,143,121,0) 88%);
  margin: 0;
}
.rule--center {
  background: linear-gradient(90deg, rgba(154,143,121,0) 0%, var(--ink-faint) 50%, rgba(154,143,121,0) 100%);
}

/* ============================================================
   THE LETTER  (/)
   ============================================================ */
.letter-top {
  padding: clamp(3.5rem, 9vw, 7rem) 0 0.5rem;
}
.letter-top .wrap { position: relative; }

.letter-body {
  padding: 2.5rem 0 3rem;
}
.letter-body p {
  margin: 0 0 1.5rem;
}
/* the opening line, given a little weight like a dropped intro */
.letter-body .lede {
  font-size: 1.3rem;
  line-height: 1.6;
}
.letter-body .lede::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 3.6em;
  float: left;
  line-height: 0.78;
  padding: 0.05em 0.09em 0 0;
  color: var(--sanguine);
}
/* the 3am refrain */
.letter-body em, .letter-body i { font-style: italic; }
.letter-body .refrain {
  font-style: italic;
  color: var(--ink-mid);
}
/* the "here is what I believe" pivot lines */
.letter-body .creed {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.4rem 0;
}

/* margin notes — Tufte sidenotes hanging into the right gutter */
.aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (min-width: 1080px) {
  .aside {
    float: right;
    clear: right;
    width: 12.5rem;
    margin-right: calc(-13.75rem);
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--ink-faint);
    text-align: left;
  }
}
@media (max-width: 1079px) {
  .aside {
    display: block;
    margin: 1.5rem 0 1.5rem 1.25rem;
    padding-left: 1rem;
    border-left: 2px solid var(--sanguine);
  }
}

/* the one inline wry beat — nothing else jokes */
.twinkle { font-style: italic; }

/* sign-off */
.signoff {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ink);
  margin: 2.6rem 0 0;
}

/* ---------- THE PLATE (figure) ----------
   A codex illustration blended into the paper (multiply + edge-fade mask)
   so it reads as drawn directly in the notebook, not a pasted rectangle. */
.plate { margin: 3.5rem auto; max-width: 30rem; }
.plate figure { margin: 0; }
.plate--wide { max-width: 42rem; }
.plate__art { position: relative; }
.plate__art img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(125% 118% at 50% 48%, #000 78%, rgba(0,0,0,0.35) 92%, transparent 100%);
          mask-image: radial-gradient(125% 118% at 50% 48%, #000 78%, rgba(0,0,0,0.35) 92%, transparent 100%);
}
.plate figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.45;
}
.plate figcaption .num {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sanguine);
  display: block;
  margin-bottom: 0.4rem;
}
/* legend: the meaningful labels, as real text (never baked into the art) */
.plate__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.15rem;
  margin: 0.9rem auto 0;
  max-width: 30rem;
}
.plate__legend span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.plate__legend span::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 0.45rem;
  vertical-align: middle;
  background: var(--sanguine);
  opacity: 0.65;
  border-radius: 50%;
}

/* ---------- THE DOOR PASSAGE ---------- */
.door {
  margin: 3.5rem auto 0;
  padding: 2.25rem 0 0;
  border-top: 1px solid var(--ink-faint);
  position: relative;
}
.door__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sanguine);
  margin: 0 0 1rem;
}
.door p {
  font-size: 1.24rem;
  line-height: 1.62;
  margin: 0;
  color: var(--ink);
}
.door .door-name { font-family: var(--display); font-weight: 600; color: var(--sanguine-deep); }
.door .door-name:hover { color: var(--sanguine); text-decoration: underline; text-underline-offset: 3px; }
.door .price { font-family: var(--mono); font-size: 0.95em; color: var(--ink); }

/* ---------- EMAIL CAPTURE (subordinate) ---------- */
.capture {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px dotted var(--ink-faint);
}
.capture__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.capture__row { display: flex; gap: 0.6rem; max-width: 27rem; flex-wrap: wrap; }
.capture input[type="email"] {
  flex: 1 1 12rem;
  min-height: 2.9rem;
  padding: 0.55rem 0.85rem;
  background: var(--paper-lit);
  border: 1px solid var(--ink-faint);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}
.capture input[type="email"]::placeholder { color: var(--ink-faint); }
.capture input[type="email"]:focus { border-color: var(--sanguine); outline: none; }
.btn-quiet {
  min-height: 2.9rem;
  padding: 0.55rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-quiet:hover { background: var(--sanguine-deep); border-color: var(--sanguine-deep); }
.capture__note { font-size: 0.86rem; color: var(--ink-soft); margin: 0.75rem 0 0; font-style: italic; }
.capture__ok { display: none; font-style: italic; color: var(--verdigris); margin-top: 0.9rem; }
.capture__ok.visible { display: block; }

/* ============================================================
   THE OWNER'S REVIEW  (/the-owners-review)
   ============================================================ */
.plan-top { padding: clamp(3.5rem, 9vw, 6.5rem) 0 0; }
.plan-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 1.15rem;
}
.plan-standfirst {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-mid);
  margin: 0 0 0.4rem;
}
.plan-standfirst .price { font-family: var(--mono); font-style: normal; color: var(--sanguine-deep); }
/* problem-first hook headline (longer sentence → smaller than the short-title scale) */
.plan-title--hook { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.12; }
.plan-descriptor {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 1.15rem 0 0;
}
.plan-descriptor .price { font-family: var(--mono); color: var(--ink); }

.plan-body { padding: 2.5rem 0 1rem; }
.plan-body > p { margin: 0 0 1.5rem; }
.plan-body .opener {
  font-size: 1.32rem;
  line-height: 1.55;
  color: var(--ink);
}

.plan-section { margin: 3rem 0; }
.plan-section > h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink-faint);
}
.plan-section p { margin: 0 0 1.3rem; }

/* labelled points (How it works) */
.point { margin: 0 0 1.5rem; }
.point b {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

/* the two documents block */
.docs { display: grid; gap: 1.75rem; margin: 0.5rem 0 0; }
@media (min-width: 720px) { .docs { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }
.doc {
  border: 1px solid var(--ink-faint);
  background: var(--paper-lit);
  padding: 1.6rem 1.6rem 1.75rem;
  position: relative;
}
.doc__tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sanguine);
  margin: 0 0 0.7rem;
}
.doc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.7rem;
}
.doc p { margin: 0; font-size: 1.05rem; line-height: 1.6; }

/* the price + begin block */
.begin {
  margin: 3.5rem 0;
  padding: 2.5rem 2rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  position: relative;
}
.begin::before, .begin::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid rgba(234,227,210,0.5);
}
.begin::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.begin::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.begin__price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--paper);
  margin: 0 0 1.35rem;
}
.begin__price .amt { color: #E8C9A8; }
.btn-begin {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  padding: 0.95rem 2.4rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-begin:hover {
  background: var(--sanguine);
  border-color: var(--sanguine);
  color: var(--paper);
  transform: translateY(-1px);
}
.begin__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(234,227,210,0.75);
  margin: 1.4rem auto 0;
  max-width: 26rem;
  line-height: 1.5;
}

/* FAQ */
.faq { margin: 3rem 0 1rem; }
.faq__item { border-bottom: 1px solid var(--ink-faint); padding: 1.35rem 0; }
.faq__item:first-of-type { border-top: 1px solid var(--ink-faint); }
.faq__q {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.faq__a { margin: 0; color: var(--ink-mid); font-size: 1.05rem; line-height: 1.62; }

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.site-foot {
  margin-top: 4rem;
  background: var(--paper-deep);
  border-top: 1px solid var(--ink-faint);
  padding: 3.25rem 0 2.5rem;
}
.foot-spine {
  max-width: var(--measure);
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-mid);
}
.foot-spine .door-name { font-family: var(--display); font-weight: 600; color: var(--sanguine-deep); }
.foot-spine .door-name:hover { color: var(--sanguine); text-decoration: underline; text-underline-offset: 3px; }
.foot-spine .price { font-family: var(--mono); color: var(--ink); }

.foot-grid {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  align-items: baseline; justify-content: space-between;
  max-width: 68rem; margin: 0 auto; padding: 2rem 1.75rem 0;
  border-top: 1px solid var(--ink-faint);
}
.foot-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}
.foot-mark .sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.foot-links a:hover { color: var(--sanguine); }
.foot-legal {
  max-width: 68rem; margin: 1.75rem auto 0; padding: 0 1.75rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   ADDED 2026-07-26 — THE METHOD (/method), THE LIVING SYSTEM
   (/the-living-system), POSITIONS (/positions). Extends the
   codex; touches nothing above.
   ============================================================ */

/* ---------- nav: current-page + graceful 5-item wrap ---------- */
.masthead__link[aria-current="page"] {
  color: var(--sanguine);
  border-bottom-color: var(--sanguine);
}
.foot-links a[aria-current="page"] { color: var(--sanguine); }
@media (max-width: 900px) {
  .masthead__nav { flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: flex-end; }
}
@media (max-width: 620px) {
  .masthead__nav { gap: 0.4rem 1rem; }
  .masthead__link { font-size: 0.68rem; letter-spacing: 0.12em; }
}

/* ============================================================
   THE LIVING SYSTEM — the essay (reuses the letter's prose feel)
   ============================================================ */
.essay-body { padding: 2.5rem 0 3rem; }
.essay-body p { margin: 0 0 1.5rem; }
.essay-body .lede { font-size: 1.3rem; line-height: 1.6; }
.essay-body .lede::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 3.6em;
  float: left;
  line-height: 0.78;
  padding: 0.05em 0.09em 0 0;
  color: var(--sanguine);
}
.essay-body .creed {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.4rem 0;
}
.essay-body em, .essay-body i { font-style: italic; }
/* section subheads inside the essay */
.essay-body h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 3.25rem 0 1.25rem;
  padding-top: 1.4rem;
  position: relative;
}
.essay-body h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2.4rem; height: 2px;
  background: var(--sanguine);
  opacity: 0.85;
}

/* ============================================================
   THE METHOD — Find / Fix / Build phases
   ============================================================ */
.phase {
  margin: 3rem 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-faint);
}
.phase__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sanguine);
  margin: 0 0 0.5rem;
}
.phase__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.phase p { margin: 0 0 1.3rem; }
/* the Graduation Clause — set apart, drafted like a contract line */
.clause {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 2px solid var(--sanguine);
}

/* ============================================================
   POSITIONS — flat statements, one per block
   ============================================================ */
.positions-body { padding: 2.5rem 0 2rem; }
.positions {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pos;
}
.position {
  counter-increment: pos;
  position: relative;
  padding: 1.9rem 0 1.9rem 3.25rem;
  border-top: 1px solid var(--ink-faint);
}
.position:last-of-type { border-bottom: 1px solid var(--ink-faint); }
.position::before {
  content: counter(pos, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sanguine);
}
.position h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.position p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--ink-mid);
}
.position a { border-bottom: 1px solid rgba(156,75,54,0.35); }
.position a:hover { border-bottom-color: var(--sanguine); }
@media (max-width: 620px) {
  .position { padding-left: 2.4rem; }
  .position::before { top: 2rem; }
}

/* ============================================================
   FIELD NOTES (/blog) — index list + single post, codex restyle
   ============================================================ */
.notes-list { padding: 1.5rem 0 2rem; }
.note-card {
  display: block;
  padding: 2.1rem 0;
  border-top: 1px solid var(--ink-faint);
  color: var(--ink);
}
.note-card:last-of-type { border-bottom: 1px solid var(--ink-faint); }
.note-card:hover .note-card__title { color: var(--sanguine); }
.note-card:hover { color: var(--ink); }
.note-card__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.note-card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  transition: color 0.2s var(--ease);
}
.note-card__excerpt {
  margin: 0 0 0.9rem;
  color: var(--ink-mid);
  font-size: 1.08rem;
  line-height: 1.6;
}
.note-card__read {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sanguine);
}

/* single post header */
.article-head { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.article-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.article-meta strong { font-weight: 400; color: var(--ink-mid); }
.article-meta a { color: var(--ink-mid); }
.article-meta a:hover { color: var(--sanguine); }

/* post prose emphasis lines (the rhetorical beats) */
.essay-body .post-emphasis {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 2rem 0;
}
/* post FAQ + author */
.post-faq { margin: 3.5rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--ink-faint); }
.post-faq h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 1.9rem 0 0.5rem;
}
.post-faq p { margin: 0 0 1rem; color: var(--ink-mid); font-size: 1.05rem; line-height: 1.62; }
.post-author { margin: 3rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--ink-faint); }
.post-author p { margin: 0; font-size: 1.02rem; color: var(--ink-mid); font-style: italic; }
.post-author a { font-style: normal; }
/* post in-body CTA (the tool bridge) */
.post-cta {
  margin: 2.8rem 0 0;
  padding: 1.5rem 1.7rem;
  border-left: 3px solid var(--sanguine);
  background: var(--paper-lit);
}
.post-cta p { margin: 0; font-size: 1.08rem; line-height: 1.62; color: var(--ink-mid); }
.post-cta a { color: var(--sanguine-deep); }
.post-cta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- post video embed (added 2026-07-30, video01) ---- */
.post-video { margin: 3rem 0 0; }
.post-video h2 { margin-bottom: 0.6rem; }
.post-video > p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-mid); }
.post-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0e1311; }
.post-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video__note { margin-top: 0.6rem; font-size: 0.85rem; font-style: italic; color: var(--ink-mid); }
