@font-face { font-family: 'Jura'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/jura-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jura-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jura-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/jura-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jura-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-dark-base: #0b1b20;
  --fg-dark-base-body: #e3f1f1;
  --fg-dark-base-heading: #e3f1f1;
  --fg-dark-base-muted: #96b2b5;
  --fg-dark-base-link: #46c8d2;
  --fg-dark-base-inverse: #e3f1f1;
  --bg-dark-card: #10262c;
  --fg-dark-card-body: #e3f1f1;
  --fg-dark-card-heading: #e3f1f1;
  --fg-dark-card-muted: #96b2b5;
  --fg-dark-card-link: #46c8d2;
  --fg-dark-card-inverse: #e3f1f1;
  --bg-dark-elevated: #163139;
  --fg-dark-elevated-body: #e3f1f1;
  --fg-dark-elevated-heading: #e3f1f1;
  --fg-dark-elevated-muted: #96b2b5;
  --fg-dark-elevated-link: #46c8d2;
  --fg-dark-elevated-inverse: #e3f1f1;
  --brand-dark-accent: #46c8d2;
  --brand-dark-accent-hover: #7fdbe2;
  --brand-dark-on-accent: #06181c;
  --focus-dark-ring: #46c8d2;
  --border-dark-default: #6d9196;
  --border-dark-subtle: #2b4a51;
}
.bg-surface-base { background: var(--bg-dark-base); --fg-body: var(--fg-dark-base-body); --fg-heading: var(--fg-dark-base-heading); --fg-muted: var(--fg-dark-base-muted); --fg-link: var(--fg-dark-base-link); --fg-inverse: var(--fg-dark-base-inverse); }
.bg-surface-card { background: var(--bg-dark-card); --fg-body: var(--fg-dark-card-body); --fg-heading: var(--fg-dark-card-heading); --fg-muted: var(--fg-dark-card-muted); --fg-link: var(--fg-dark-card-link); --fg-inverse: var(--fg-dark-card-inverse); }
.bg-surface-elevated { background: var(--bg-dark-elevated); --fg-body: var(--fg-dark-elevated-body); --fg-heading: var(--fg-dark-elevated-heading); --fg-muted: var(--fg-dark-elevated-muted); --fg-link: var(--fg-dark-elevated-link); --fg-inverse: var(--fg-dark-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; }
.text-role-link:hover { color: var(--brand-dark-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-dark-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-dark-ring); }

/* Passaic Leg Circulation Notes: circulation science notebook */
:root {
  --font-heading: 'Jura', 'Eurostile', 'Trebuchet MS', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --grid-line: rgba(70, 200, 210, 0.07);
  --grid-size: 1.5rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--fg-heading);
  text-wrap: balance;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-dark-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.5rem 1rem;
  background: var(--bg-dark-base);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header (static): masthead over an index strip ---------- */

.site-header {
  position: relative;
  z-index: 30;
  border-top: 4px solid var(--brand-dark-accent);
}

.masthead {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter) 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  max-width: 100%;
}
.brand .site-logo { width: 2.75rem; height: 2.75rem; display: block; flex-shrink: 0; }
.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  overflow-wrap: normal;
  word-break: normal;
}

.index-strip {
  border-top: 1px solid var(--brand-dark-accent);
  border-bottom: 1px solid var(--border-dark-subtle);
}
.strip-row {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Collapsed menu toggle at every width, full-height overlay of sections */
.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-heading);
  cursor: pointer;
  list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover { color: var(--brand-dark-accent); }
.menu-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--brand-dark-accent);
  border-radius: 50%;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 2px;
  background: var(--brand-dark-accent);
  transform: translate(-50%, -50%);
}
.menu-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.site-menu[open] > summary { color: var(--brand-dark-accent); }
.site-menu[open] .menu-icon { background: var(--brand-dark-accent); }
.site-menu[open] .menu-icon::before { background: var(--brand-dark-on-accent); }
.site-menu[open] .menu-icon::after { display: none; }

.site-menu > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-height: 100vh;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 4rem;
  list-style: none;
  background-color: var(--bg-dark-base);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  border-bottom: 1px solid var(--brand-dark-accent);
  display: grid;
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  align-content: start;
  counter-reset: section;
}
.site-menu > ul > li {
  counter-increment: section;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border-dark-default);
}
.site-menu > ul > li::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--brand-dark-accent);
}
.site-menu a {
  display: block;
  padding: 0.3rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  color: var(--fg-heading);
}
.site-menu a:hover { color: var(--brand-dark-accent); }
.site-menu ul ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0 0 0 0.9rem;
  border-left: 2px solid var(--brand-dark-accent);
}
.site-menu ul ul a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.35rem 0;
}

/* ---------- Frame ---------- */

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

.breadcrumbs { padding-top: 1.5rem; font-size: 0.92rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--fg-muted); }
.breadcrumbs a { text-underline-offset: 0.2em; }

.page { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 6rem); }

.page-head h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}

/* Diagram strokes */
.vessel { fill: none; stroke: currentColor; stroke-width: 2; }
.valve { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.flow { fill: none; stroke: var(--brand-dark-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow-back { stroke-dasharray: 4 4; }
.pool { fill: none; stroke: var(--brand-dark-accent); stroke-width: 1.6; stroke-linecap: round; opacity: 0.7; }
.grid-tick { fill: none; stroke: var(--border-dark-subtle); stroke-width: 1; }

/* ---------- Prose ---------- */

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2rem; }
.prose h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}
.prose h3 { margin: 2rem 0 0.6rem; font-size: 1.4rem; }
.prose a {
  color: var(--brand-dark-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.prose a:hover { color: var(--brand-dark-accent-hover); text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--brand-dark-accent); }
.prose strong { font-weight: 600; }

.photo-hero, .photo-inline { margin: 0 0 2.25rem; }
.photo-hero img, .photo-inline img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--fg-heading);
  border-radius: 0.25rem;
}

/* ---------- Home (stepped) ---------- */

.cover {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 2px solid var(--fg-heading);
}
.cover-title h1 {
  margin: 0;
  font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.75rem);
  line-height: 1.02;
  font-weight: 600;
  max-width: 15ch;
}
.cover-lines { margin-top: 1.5rem; max-width: 32rem; }
.display-line { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.55; }
.display-line + .display-line { color: var(--fg-muted); font-size: 1.05rem; }

.flow-plate {
  margin: 0;
  padding: 1.25rem 1.5rem 1rem;
  border: 1.5px solid var(--fg-heading);
  border-radius: 0.25rem;
  justify-self: start;
  width: min(100%, 22rem);
}
.flow-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.flow-col { text-align: center; color: var(--fg-heading); }
.flow-col svg { width: 100%; max-height: 14rem; }
.flow-col figcaption {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border-dark-default);
}

@media (min-width: 52rem) {
  .cover { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .flow-plate { justify-self: end; }
}

.entries {
  --step: 0;
  max-width: 44rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  counter-reset: entry;
}
.prose.entries > * {
  margin-left: calc(var(--step) * clamp(0.75rem, 3vw, 2.75rem));
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-dark-subtle);
}
.entries > .photo-hero { padding-left: 0; border-left: 0; }
.entries > h2 {
  counter-increment: entry;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 2.5rem;
  padding-bottom: 0.9rem;
  border-left-color: var(--brand-dark-accent);
}
.entries > h2::before {
  content: counter(entry, decimal-leading-zero);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brand-dark-accent);
}
.entries > p { margin-bottom: 0; padding-bottom: 1.2rem; }
.entries > h2:nth-of-type(1), .entries > h2:nth-of-type(1) ~ * { --step: 1; }
.entries > h2:nth-of-type(2), .entries > h2:nth-of-type(2) ~ * { --step: 2; }
.entries > h2:nth-of-type(3), .entries > h2:nth-of-type(3) ~ * { --step: 3; }
.entries > h2:nth-of-type(4), .entries > h2:nth-of-type(4) ~ * { --step: 4; }
.entries > h2:nth-of-type(5), .entries > h2:nth-of-type(5) ~ * { --step: 5; }

/* ---------- About (split) ---------- */

.about-split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.diagram-key {
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--fg-heading);
  border-radius: 0.25rem;
  max-width: 18rem;
}
.key-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.key-list li { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: 1.1rem; color: var(--fg-heading); }
.key-list svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.preface-prose > p:first-of-type { font-size: 1.3rem; line-height: 1.6; }

@media (min-width: 56rem) {
  .about-split { grid-template-columns: minmax(0, 22rem) minmax(0, var(--measure)); gap: 4rem; }
  .preface-side { position: sticky; top: 2rem; align-self: start; }
}

/* ---------- Article (two-column technical note) ---------- */

.note-head { display: flex; align-items: flex-start; gap: 1rem; }
.note-glyph { width: 3rem; height: 3rem; flex-shrink: 0; color: var(--fg-heading); margin-top: 0.35rem; }
.note-prose { margin-top: clamp(2rem, 5vw, 3rem); }

.note-prose > h2:last-of-type,
.note-prose > h2:last-of-type ~ * {
  background: var(--bg-dark-card);
  margin: 0;
  padding: 0 1.25rem 1rem;
  border-left: 1.5px solid var(--fg-heading);
  border-right: 1.5px solid var(--fg-heading);
}
.note-prose > h2:last-of-type {
  margin-top: 2.75rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--fg-heading);
}
.note-prose > h2:last-of-type ~ :last-child {
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--fg-heading);
}

@media (min-width: 60rem) {
  .note-prose {
    max-width: none;
    display: grid;
    grid-template-columns: 13rem minmax(0, var(--measure));
    column-gap: 2.5rem;
    align-items: start;
  }
  .note-prose > * { grid-column: 2; }
  .note-prose > .photo-hero { grid-column: 1 / -1; max-width: 51.5rem; }
  .note-prose > h2 {
    grid-column: 1;
    margin: 0.3rem 0 0;
    padding-top: 0.6rem;
    font-size: 1.35rem;
    line-height: 1.15;
    text-align: right;
    border-top: 2px solid var(--brand-dark-accent);
  }
  .note-prose > h2:last-of-type,
  .note-prose > h2:last-of-type ~ * { grid-column: 1 / -1; }
  .note-prose > h2:last-of-type {
    text-align: left;
    margin-top: 2rem;
    padding-top: 1.1rem;
    font-size: 1.6rem;
    border-top: 1.5px solid var(--fg-heading);
  }
  .note-prose > h2:last-of-type ~ * { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ---------- Topic hub (grid index) ---------- */

.hub-prose { margin-top: clamp(2rem, 5vw, 3rem); }
.note-index {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1.5px solid var(--fg-heading);
  border-radius: 0.25rem;
}
.note-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  counter-reset: tile;
}
.note-index li { counter-increment: tile; background: var(--bg-dark-base); border: 1px solid var(--border-dark-default); }
.note-index a {
  position: relative;
  display: block;
  height: 100%;
  min-height: 9rem;
  padding: 3.25rem 1.1rem 1.2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.15;
  text-decoration: none;
}
.note-index a::before {
  content: counter(tile, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-size: 1rem;
  color: var(--fg-muted);
}
.note-index a::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 0.9rem;
  height: 1.6rem;
  border-left: 2px solid var(--fg-heading);
  border-right: 2px solid var(--fg-heading);
  background:
    linear-gradient(var(--brand-dark-accent), var(--brand-dark-accent)) center / 2px 70% no-repeat;
}
.note-index li:nth-child(3n + 2) a::after { border-radius: 0 0 0.6rem 0.6rem; }
.note-index li:nth-child(3n) a::after { border-radius: 0.6rem 0.6rem 0 0; width: 1.2rem; }
.note-index a:hover { background: var(--bg-dark-card); color: var(--brand-dark-accent-hover); }

/* ---------- Contact (one-column log entry) ---------- */

.contact-prose { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.log-entry {
  max-width: 40rem;
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1.5px solid var(--fg-heading);
  border-radius: 0.25rem;
}
.log-fields { display: grid; gap: 1.25rem 1.25rem; }
@media (min-width: 36rem) {
  .log-fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-heading);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--fg-body);
  background-color: var(--bg-dark-base);
  border: 1px solid var(--border-dark-default);
  border-radius: 0.2rem;
  padding: 0.6rem 0.8rem;
}
.field textarea { resize: vertical; min-height: 11rem; line-height: 1.85rem; padding-top: 0.1rem; background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--border-dark-subtle) calc(100% - 1px)); background-size: 100% 1.85rem; background-position: 0 0.1rem; background-attachment: local; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--brand-dark-accent); outline-offset: 2px; border-color: var(--brand-dark-accent); }
.log-button {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.75rem;
  border: 0;
  border-radius: 0.2rem;
  cursor: pointer;
}
.log-button.text-role-inverse { color: var(--brand-dark-on-accent); background: var(--brand-dark-accent); }
.log-button.text-role-inverse:hover { background: var(--brand-dark-accent-hover); }

/* ---------- Thank you (one-column, arrow to next note) ---------- */

.next-arrow { display: block; width: 3.5rem; height: auto; margin: 1.5rem 0 1rem; }
.thanks-prose > h2 { margin-top: 2rem; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--brand-dark-accent); }
.footer-row {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.footer-row p { margin: 0; }
.footer-flow { width: 6rem; height: auto; color: var(--brand-dark-accent); }
.footer-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
