@font-face { font-family: 'Saira'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/saira-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/saira-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/saira-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/saira-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/saira-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/saira-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/saira-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/saira-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/saira-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/saira-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/saira-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/saira-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/saira-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/saira-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/saira-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/saira-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/saira-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/saira-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Enriqueta'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/enriqueta-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Enriqueta'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/enriqueta-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Enriqueta'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/enriqueta-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Enriqueta'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/enriqueta-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f4f6f5;
  --fg-light-base-body: #1b2427;
  --fg-light-base-heading: #1b2427;
  --fg-light-base-muted: #4a585e;
  --fg-light-base-link: #b01e3e;
  --fg-light-base-inverse: #3b2026;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #1b2427;
  --fg-light-card-heading: #1b2427;
  --fg-light-card-muted: #4a585e;
  --fg-light-card-link: #b01e3e;
  --fg-light-card-inverse: #3b2026;
  --bg-light-elevated: #e8eeec;
  --fg-light-elevated-body: #1b2427;
  --fg-light-elevated-heading: #1b2427;
  --fg-light-elevated-muted: #4a585e;
  --fg-light-elevated-link: #b01e3e;
  --fg-light-elevated-inverse: #3b2026;
  --brand-light-accent: #b01e3e;
  --brand-light-accent-hover: #8a1430;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #b01e3e;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #6f7e82;
  --border-light-subtle: #c7d1d0;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --ink: var(--fg-light-card-heading);
  --ink-muted: var(--fg-light-card-muted);
  --rose: var(--brand-light-accent);
  --rose-deep: var(--brand-light-accent-hover);
  --on-rose: var(--brand-light-on-accent);
  --paper: var(--bg-light-card);
  --paper-shade: var(--bg-light-elevated);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --grid-line: color-mix(in srgb, var(--border-light-subtle) 55%, transparent);
  --face-head: 'Saira', 'Arial Narrow', sans-serif;
  --face-text: 'Enriqueta', Georgia, serif;
  --rail: 17rem;
  --measure: 40rem;
}

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

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

body {
  margin: 0;
  font-family: var(--face-text);
  font-size: 1.0625rem;
  line-height: 1.72;
}

body.bg-surface-base {
  background-color: var(--bg-light-base);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

/* ---------- Header: phone top bar, desktop side rail ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid var(--rose);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand .site-logo {
  display: block;
  width: 8.25rem;
  height: auto;
}

nav.site-nav { display: none; }

details.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
  color: var(--ink);
  background: var(--paper);
}

details.site-menu > summary:hover,
details.site-menu[open] > summary {
  background: var(--paper-shade);
  border-color: var(--rose);
}

.menu-icon {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--rose);
  box-shadow: 0 -5px 0 var(--rose), 0 5px 0 var(--rose);
}

.menu-label { white-space: nowrap; }

details.site-menu > ul {
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  list-style: none;
}

details.site-menu[open] > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 2px solid var(--rose);
  box-shadow: 0 0.75rem 1.5rem color-mix(in srgb, var(--ink) 14%, transparent);
}

details.site-menu > ul a {
  display: block;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

details.site-menu > ul li:last-child a { border-bottom: 0; }

details.site-menu > ul a:hover {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 64rem) {
  .notebook {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    min-height: 100vh;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2.25rem;
    height: 100vh;
    padding: 1.75rem 0 1.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }

  .brand { padding: 0 1.25rem; }

  .brand .site-logo {
    width: 100%;
    max-width: 13rem;
  }

  details.site-menu { display: none; }

  nav.site-nav { display: block; }

  nav.site-nav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule-soft);
  }

  nav.site-nav > ul > li { border-bottom: 1px solid var(--rule-soft); }

  nav.site-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem 0.8rem 1.25rem;
    border-left: 4px solid transparent;
    font-family: var(--face-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    color: var(--ink);
    text-decoration: none;
  }

  nav.site-nav a::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border: 2px solid var(--rose);
    border-radius: 1px;
  }

  nav.site-nav a:hover {
    background: var(--paper-shade);
    border-left-color: var(--rose);
    color: var(--rose-deep);
  }

  nav.site-nav a:hover::before { background: var(--rose); }
}

/* ---------- Sheet, breadcrumbs, footer ---------- */

.sheet {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.breadcrumbs {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--face-head);
  font-size: 0.9rem;
  line-height: 1.5;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--rule);
}

.breadcrumbs a { text-underline-offset: 0.2em; }

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

@media (min-width: 48rem) {
  .breadcrumbs { padding: 1.5rem 2.5rem 0; }
  .page { padding: 2rem 2.5rem 5rem; }
}

.site-footer {
  display: grid;
  gap: 0.35rem;
  padding: 2rem 1rem 2.25rem;
  border-top: 2px solid var(--rose);
  position: relative;
}

.footer-mark {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  width: 3.5rem;
  height: 0.7rem;
  background: var(--rose);
  border-radius: 3px 3px 0 0;
}

.site-footer p { margin: 0; }

.footer-name {
  font-family: var(--face-head);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-line { max-width: 36rem; }

.footer-client { margin-top: 0.5rem; }

.footer-client a { text-underline-offset: 0.2em; }

@media (min-width: 48rem) {
  .site-footer { padding: 2.25rem 2.5rem 2.5rem; }
  .footer-mark { left: 2.5rem; }
}

/* ---------- Shared type ---------- */

h1 {
  margin: 0;
  font-family: var(--face-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.35rem + 3vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.page h2,
.page h3 {
  font-family: var(--face-head);
  line-height: 1.15;
  text-wrap: balance;
}

.page h2 {
  position: relative;
  margin: 2.75rem 0 0.9rem;
  padding-left: 1rem;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
}

.page h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.12em;
  width: 0.3rem;
  background: var(--rose);
  border-radius: 0 2px 2px 0;
}

.page h3 {
  margin: 2rem 0 0.6rem;
  font-weight: 600;
  font-size: 1.3rem;
}

.page p,
.page ul,
.page ol { max-width: var(--measure); }

.page p { margin: 0 0 1.15rem; }

.page ul,
.page ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }

.page li { margin-bottom: 0.5rem; }

.page li::marker {
  color: var(--rose);
  font-family: var(--face-head);
  font-weight: 700;
}

.text-role-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.text-role-link:hover {
  color: var(--rose-deep);
  text-decoration-thickness: 2px;
}

.page strong { font-weight: 600; }

.accent-block {
  max-width: var(--measure);
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--rose);
  background: var(--paper);
}

.table-scroll { overflow-x: auto; margin: 1.5rem 0; max-width: 100%; }

.table-scroll table {
  border-collapse: collapse;
  min-width: 100%;
  background: var(--paper);
  font-size: 0.95rem;
}

.table-scroll th,
.table-scroll td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.table-scroll th { font-family: var(--face-head); font-weight: 600; }

.photo-hero,
.photo-inline {
  max-width: var(--measure);
  margin: 0 0 2rem;
  padding: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.photo-inline { margin-top: 1.5rem; }

.photo-hero img,
.photo-inline img { display: block; width: 100%; }

/* ---------- Diagram strokes (inline SVG) ---------- */

.diagram { display: block; width: 100%; height: auto; }

.ink-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ink-dash {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
}

.ink-dot { fill: var(--ink); }

.ink-ring { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }

.ink-faint { fill: none; stroke: var(--rule-soft); stroke-width: 1.5; }

.ink-faint-stroke { fill: none; stroke: var(--rule); stroke-width: 3; }

.tape { fill: var(--paper-shade); stroke: var(--ink); stroke-width: 2; }

.rose-fill { fill: var(--rose); }

.rose-line {
  fill: none;
  stroke: var(--rose);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.rose-wash { fill: var(--rose); opacity: 0.12; }

.rose-ring { fill: none; stroke: var(--rose); stroke-width: 4; stroke-dasharray: 7 4; }

.rose-check {
  fill: none;
  stroke: var(--rose);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ln { fill: none; stroke: var(--rule); stroke-width: 1.2; }

.card-sheet { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }

/* ---------- Home: cover, two-panel spread, ruled-margin notes ---------- */

.cover {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--rule);
}

.cover::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  width: 4.5rem;
  height: 0.75rem;
  background: var(--rose);
  border-radius: 3px 3px 0 0;
}

.cover-lines .display-line {
  margin: 0 0 1rem;
  max-width: 34rem;
  font-size: 1.12rem;
}

.cover-lines .display-line + .display-line {
  margin-bottom: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--rose);
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}

.spread {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.plate {
  margin: 0;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rose);
}

.plate-molecule .diagram { max-width: 22rem; margin: 0 auto; }

.note-column { max-width: 44rem; }

@media (min-width: 48rem) {
  .cover {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 2.5rem;
    padding: 2.5rem 2.25rem;
  }

  .cover::before { left: 2.25rem; }

  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

  .note-column {
    padding-left: 1.75rem;
    border-left: 2px solid var(--rose);
  }
}

/* ---------- Topic hub: stepped notebook index ---------- */

.hub-head {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.75rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--rule);
}

.hub-tab {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  width: 4.5rem;
  height: 0.75rem;
  background: var(--rose);
  border-radius: 3px 3px 0 0;
}

.hub-head h1 { max-width: 22ch; }

.hub-body { margin-top: 2rem; }

.hub-index {
  max-width: 44rem;
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--rose);
  background: var(--paper);
}

.hub-index ul {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}

.hub-index li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px dashed var(--rule-soft);
}

.hub-index li:last-child { border-bottom: 0; }

.hub-index li::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 1.4rem;
  background: var(--rose);
  border-radius: 0 2px 2px 0;
}

.hub-index li a {
  flex: 1 1 auto;
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
}

.hub-index li::after {
  content: "";
  flex: none;
  width: 1.6rem;
  height: 0.7rem;
  border: 1.5px solid var(--rose);
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--rose) 50%, transparent 50%);
}

.hub-index li:nth-child(3n + 2)::after {
  width: 1.05rem;
  height: 1.15rem;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle, var(--paper) 0 30%, var(--ink) 32%);
}

.hub-index li:nth-child(3n)::after {
  width: 0.85rem;
  height: 0.85rem;
  margin: 0 0.4rem;
  border: 0;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  background: var(--rose);
}

@media (min-width: 48rem) {
  .hub-head { padding: 2.25rem 2.25rem; }
  .hub-tab { left: 2.25rem; }
  .hub-body { margin-left: 2.5rem; }
  .hub-index { margin-left: 5rem; }
  .hub-index li:nth-child(2) { margin-left: 1.25rem; }
  .hub-index li:nth-child(3) { margin-left: 2.5rem; }
  .hub-index li:nth-child(4) { margin-left: 3.75rem; }
  .hub-index li:nth-child(n + 5) { margin-left: 5rem; }
}

/* ---------- Article: note column plus ruled margin ---------- */

.article-head {
  margin-top: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.article-head h1 {
  max-width: 26ch;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem);
}

.article-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.margin-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  align-content: start;
}

.margin-plate {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rose);
}

.margin-plate-ring .diagram { max-width: 7rem; margin: 0 auto; }

@media (min-width: 60rem) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 14rem;
    gap: 3rem;
  }

  .margin-col {
    grid-template-columns: 1fr;
    position: sticky;
    top: 5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--rose);
    background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px);
    background-size: 100% 1.7rem;
  }
}

@media (min-width: 64rem) {
  .margin-col { top: 1.5rem; }
}

/* ---------- About: split card stack ---------- */

.about-split {
  display: grid;
  gap: 2rem;
  margin-top: 0.5rem;
}

.card-stack {
  margin: 0;
  max-width: 20rem;
  justify-self: center;
  width: 100%;
}

.about-text {
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rose);
}

.about-title { margin-bottom: 1.5rem; }

.about-title h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem); }

@media (min-width: 56rem) {
  .about-split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 3rem;
  }

  .card-stack {
    position: sticky;
    top: 5.5rem;
    max-width: none;
    padding: 2rem 1rem;
  }

  .about-text { padding: 2.5rem 2.25rem; }
}

@media (min-width: 64rem) {
  .card-stack { top: 2rem; }
}

/* ---------- Contact: ruled intake sheet ---------- */

.page-contact { max-width: 50rem; }

.contact-head { margin-top: 0.5rem; }

.contact-body { margin-top: 1.5rem; }

.intake {
  position: relative;
  margin-top: 2.5rem;
  padding: 1.75rem 1.25rem 2rem;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--rose);
}

.intake-cal {
  display: block;
  width: 9rem;
  height: auto;
  margin: 0 0 1.5rem auto;
}

.intake-fields {
  display: grid;
  gap: 1.4rem 1.5rem;
}

.field { display: grid; gap: 0.35rem; }

.field-label {
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.1rem;
  border: 0;
  border-bottom: 2px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.7rem;
}

.field textarea {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--rule);
  background-image: linear-gradient(transparent calc(1.7rem - 1px), var(--rule-soft) calc(1.7rem - 1px));
  background-size: 100% 1.7rem;
  background-attachment: local;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-color: var(--rose);
}

.intake-submit {
  margin-top: 1.75rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 3px;
  background: var(--rose);
  color: var(--on-rose);
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

.intake-submit:hover { background: var(--rose-deep); }

@media (min-width: 36rem) {
  .intake { padding: 2.25rem 2.25rem 2.5rem; }
  .intake-cal { position: absolute; top: 1.5rem; right: 1.5rem; width: 8rem; margin: 0; }
  .intake-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 5.5rem;
  }
  .field-wide { grid-column: 1 / -1; }
}

/* ---------- Thank you: stamped card ---------- */

.page-thanks { max-width: 44rem; }

.thanks-card {
  margin-top: 1.5rem;
  padding: 2rem 1.25rem;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rose);
  background-image: linear-gradient(transparent calc(1.72em - 1px), var(--rule-soft) calc(1.72em - 1px));
  background-size: 100% 1.72em;
}

.stamp {
  display: block;
  width: 6rem;
  height: auto;
  margin-bottom: 1.25rem;
}

.thanks-title { margin-bottom: 1.25rem; }

.thanks-title h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }

@media (min-width: 48rem) {
  .thanks-card { padding: 2.5rem 2.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  nav.site-nav a,
  details.site-menu > summary,
  .intake-submit { transition: background-color 0.15s ease, color 0.15s ease; }
}
