/* ============================================================================
   INTERNS NETWORK MOTIFS v1
   ----------------------------------------------------------------------------
   The signature recurring moves: dropcap, pull-quote, marginalia, interstitial,
   bench, whoa-hero, fleurons, scroll anchors, the ornament layer.
   Loaded after tokens.css + base.css + chrome.css.
   Authored by Calm. 2026-05-16.
   ============================================================================ */

/* ============================================================
   1. THE WHOA HERO
   ----------------------------------------------------------------
   Every page opens with one. The layered combination is:
   - hand-drawn ornament SVG (top-left or bottom-right), 40% opacity
   - serif H1 at clamp(48px, 6.4vw, 96px), 2-3 lines, balanced
   - italic mono subhead, 16px, soft ink, says-something-adjacent
   - optional kicker (mono italic allcaps) above the H1
   - optional small seal (a circular SVG in --accent) bottom-right
   ============================================================ */

.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-9);
  overflow: visible;
  isolation: isolate;
}

.hero__ornament {
  position: absolute;
  top: var(--s-6);
  left: -2vw;
  width: clamp(180px, 22vw, 320px);
  height: auto;
  opacity: 0.32;
  pointer-events: none;
  color: var(--accent);
  z-index: -1;
  /* a faint parallax via transform translation set by a sticky var,
     or static if no JS; either works */
  transform: translateY(calc(var(--scroll-y, 0px) * -0.18));
  transition: transform 80ms linear;
}

.hero__ornament svg {
  width: 100%;
  height: auto;
  fill: currentColor;
  stroke: currentColor;
}

.hero__ornament--bottom-right {
  top: auto;
  left: auto;
  bottom: var(--s-6);
  right: -2vw;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  letter-spacing: var(--tracking-allcaps);
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.hero__kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--type-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
  margin: 0 0 var(--s-5) 0;
  /* a soft hand-drawn underline on a key word can be added via .hero__title-flourish */
}

.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--accent-deep);
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-small);
  line-height: 1.5;
  letter-spacing: var(--tracking-mono);
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 var(--s-6) 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.hero__seal {
  position: absolute;
  bottom: var(--s-6);
  right: var(--pad-page);
  width: 80px;
  height: 80px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-tiny);
  color: var(--accent-deep);
  text-align: center;
  line-height: 1.2;
  letter-spacing: var(--tracking-stamp);
  text-transform: lowercase;
  background: var(--paper);
  padding: var(--s-2);
  /* a subtle hand-stamp rotation */
  transform: rotate(-5deg);
}

/* an alternative hero where the title runs to the bleed */
.hero--wide .hero__title {
  max-width: 22ch;
  font-size: clamp(56px, 8vw, 128px);
}

/* the "ceremonial" hero — for chapter openers + the Book */
.hero--ceremonial {
  text-align: center;
  padding: var(--s-11) 0 var(--s-10);
}

.hero--ceremonial .hero__title {
  margin-left: auto;
  margin-right: auto;
  max-width: 22ch;
}

.hero--ceremonial .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero--ceremonial::before {
  content: "·  ·  ·";
  display: block;
  font-family: var(--font-display);
  font-size: var(--type-title);
  color: var(--accent);
  letter-spacing: 0.6em;
  margin-bottom: var(--s-6);
  text-align: center;
}

/* ============================================================
   2. THE DROPCAP
   ----------------------------------------------------------------
   Used on the opening paragraph of essays, chapters, MISSION pages.
   Big serif, --accent fill, hangs into the margin.
   ============================================================ */

.dropcap {
  /* the wrapper paragraph gets this class */
}

.dropcap::first-letter,
.dropcap > p:first-of-type::first-letter,
.dropcap-letter {
  font-family: var(--font-display);
  font-weight: var(--weight-display-bold);
  font-size: 5em;
  line-height: 0.84;
  float: left;
  color: var(--accent);
  padding: 0.04em var(--s-2) 0 0;
  margin-top: 0.1em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  /* the dropcap gets a tiny optical alignment */
  text-indent: 0;
}

/* a fancier dropcap with a tiny ornament behind it */
.dropcap--framed::first-letter,
.dropcap--framed > p:first-of-type::first-letter {
  background-image: radial-gradient(circle at 50% 50%, var(--accent-soft) 0%, transparent 65%);
  background-size: 90% 90%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   3. PULL QUOTES
   ----------------------------------------------------------------
   The breakout quote. Sits in the wide column, larger than body,
   with a vertical rule on the left in --accent.
   ============================================================ */

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.30;
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: var(--s-2) var(--s-5);
  margin: var(--s-7) auto;
  max-width: var(--w-wide);
  font-variation-settings: "opsz" 48, "SOFT" 70;
  text-wrap: balance;
  position: relative;
}

.pullquote::before {
  content: "“";
  position: absolute;
  top: -0.2em;
  left: 0.2em;
  font-size: 3em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
  font-family: var(--font-display);
  pointer-events: none;
}

.pullquote__attribution {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--ink-soft);
  font-weight: var(--weight-body);
  letter-spacing: var(--tracking-mono);
  font-variation-settings: normal;
}

.pullquote__attribution::before {
  content: "— ";
}

/* an extra-dramatic version, used once per page max */
.pullquote--display {
  font-size: clamp(32px, 4vw, 56px);
  border-left: none;
  text-align: center;
  padding: var(--s-5) var(--s-5);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin: var(--s-9) auto;
}

.pullquote--display::before {
  display: none;
}

/* ============================================================
   4. MARGINALIA
   ----------------------------------------------------------------
   Side-notes in the right gutter on desktop, inline below on mobile.
   ============================================================ */

.marginalia {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  line-height: 1.5;
  letter-spacing: var(--tracking-mono);
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  padding: var(--s-1) var(--s-3);
  margin: var(--s-3) 0;
  max-width: 36ch;
}

@media (min-width: 1100px) {
  .marginalia {
    float: right;
    width: var(--w-aside);
    margin-right: calc(-1 * var(--w-aside) - var(--s-4));
    margin-top: 0.4em;
    margin-left: var(--s-4);
    padding-left: var(--s-3);
    border-left: 2px solid var(--accent);
    background: transparent;
  }
}

.marginalia__label {
  display: block;
  font-style: normal;
  text-transform: uppercase;
  font-size: var(--type-tiny);
  letter-spacing: var(--tracking-allcaps);
  color: var(--accent-deep);
  margin-bottom: var(--s-1);
}

/* a paired aside — used when the marginalia *replies to* the paragraph */
.marginalia--reply::before {
  content: "↩ ";
  color: var(--accent);
  font-style: normal;
}

/* ============================================================
   5. INTERSTITIAL CARDS — "check out this"
   ----------------------------------------------------------------
   Mid-scroll cross-promo. Every 600-900 words.
   ============================================================ */

.interstitial {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s-3) var(--s-4);
  margin: var(--s-7) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  position: relative;
  max-width: var(--w-content);
  text-decoration: none;
  color: inherit;
  transition: transform var(--motion-base) var(--ease-default),
              box-shadow var(--motion-base) var(--ease-default);
}

@media (min-width: 700px) {
  .interstitial {
    grid-template-columns: 80px 1fr auto;
    align-items: center;
  }
}

a.interstitial:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}

.interstitial::before {
  /* a small corner stamp */
  content: "check this";
  position: absolute;
  top: -10px;
  left: var(--s-4);
  background: var(--paper);
  padding: 0 var(--s-2);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-tiny);
  letter-spacing: var(--tracking-allcaps);
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
}

.interstitial__icon {
  width: 60px;
  height: 60px;
  color: var(--accent);
  align-self: start;
}

.interstitial__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: currentColor;
}

.interstitial__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.interstitial__kicker {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-tiny);
  letter-spacing: var(--tracking-allcaps);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.interstitial__title {
  font-family: var(--font-display);
  font-size: var(--type-title);
  line-height: 1.15;
  letter-spacing: var(--tracking-snug);
  font-weight: var(--weight-display);
  font-variation-settings: "opsz" 32, "SOFT" 50;
  color: var(--ink);
}

.interstitial__sub {
  font-family: var(--font-serif);
  font-size: var(--type-small);
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: var(--s-1);
}

.interstitial__cta {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--accent-deep);
  letter-spacing: var(--tracking-mono);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.18em;
  align-self: center;
}

.interstitial__cta::after { content: " →"; }

/* a quieter variant — used inline in the middle of a paragraph */
.interstitial--quiet {
  background: transparent;
  border: 1px dashed var(--rule);
  padding: var(--s-3) var(--s-4);
}

/* a louder variant — used once per page max */
.interstitial--loud {
  background: var(--accent-soft);
  border-color: var(--accent);
  grid-template-columns: 80px 1fr;
}

.interstitial--loud .interstitial__title {
  color: var(--accent-deep);
}

/* a Cohab-flavored variant (used to promote the house) */
.interstitial--cohab {
  background: var(--bee-cream);
  border-color: var(--bee-honey);
}

/* a Book-flavored variant */
.interstitial--book {
  background: var(--folktale-parch);
  border-color: var(--folktale-story);
}

.interstitial--book .interstitial__title {
  color: var(--folktale-story);
}

/* ============================================================
   6. THE BENCH
   ----------------------------------------------------------------
   A Berry-tribute callout: a wooden-bench shape in SVG, with a
   short essayistic line set across the slats. Used as a quiet
   resting place mid-page. Two per long essay max.
   ============================================================ */

.bench {
  position: relative;
  max-width: var(--w-wide);
  margin: var(--s-8) auto;
  padding: var(--s-7) var(--s-6) var(--s-6);
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.bench__icon {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 60px;
  background: var(--paper);
  padding: 0 var(--s-3);
  color: var(--accent);
}

.bench__icon svg {
  width: 100%;
  height: 100%;
}

.bench__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  font-variation-settings: "opsz" 32, "SOFT" 60;
  max-width: 48ch;
  margin: 0 auto var(--s-3);
  text-wrap: balance;
}

.bench__attrib {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--ink-soft);
  letter-spacing: var(--tracking-mono);
}

.bench__attrib::before { content: "— "; }

/* ============================================================
   7. THE LIST CARDS — Le Guin's inventories
   ----------------------------------------------------------------
   A small grid for naming-things: "the four winds", "the seven
   organisms", "the twelve rooms". Each card is a name + 1-line
   description. No icons unless absolutely necessary.
   ============================================================ */

.inventory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3) var(--s-4);
  margin: var(--s-6) 0;
  padding: 0;
  list-style: none;
  max-width: var(--w-wide);
}

.inventory__item {
  margin: 0;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  border-left: 2px solid var(--accent);
  position: relative;
}

.inventory__item::before { content: none; }

.inventory__name {
  font-family: var(--font-display);
  font-size: var(--type-subtitle);
  font-weight: var(--weight-display);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  color: var(--ink);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--s-1);
  display: block;
}

.inventory__name-small {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-tiny);
  color: var(--ink-soft);
  letter-spacing: var(--tracking-mono);
  margin-left: var(--s-1);
}

.inventory__desc {
  font-family: var(--font-serif);
  font-size: var(--type-small);
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ============================================================
   8. THE NUMBERED MANIFESTO LIST — for the MISSION pages
   ============================================================ */

.manifesto-list {
  counter-reset: manifesto;
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0;
  max-width: var(--w-content);
}

.manifesto-list__item {
  counter-increment: manifesto;
  position: relative;
  padding: var(--s-3) 0 var(--s-3) var(--s-7);
  border-bottom: var(--b-hair-soft);
}

.manifesto-list__item::before {
  content: counter(manifesto, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--s-3);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--accent);
  letter-spacing: var(--tracking-mono);
}

.manifesto-list__item:last-child {
  border-bottom: none;
}

.manifesto-list__title {
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: var(--weight-display);
  margin-bottom: var(--s-1);
  font-variation-settings: "opsz" 32, "SOFT" 50;
}

.manifesto-list__body {
  font-family: var(--font-serif);
  font-size: var(--type-body);
  color: var(--ink);
  line-height: var(--lh-body);
}

/* ============================================================
   9. SCROLL-REVEAL — the slow blink
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--motion-slow) var(--ease-default),
    transform var(--motion-slow) var(--ease-default);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* a slower reveal for the hero */
.reveal--slow {
  transition:
    opacity 800ms var(--ease-default),
    transform 800ms var(--ease-default);
}

/* stagger children by setting a --i index */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--motion-slow) var(--ease-default),
    transform var(--motion-slow) var(--ease-default);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   10. THE SEAL — a small circular hand-stamp
   ----------------------------------------------------------------
   Used for "5% pact", "calm certified", "since 2026", etc.
   ============================================================ */

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--accent);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-tiny);
  color: var(--accent-deep);
  text-align: center;
  line-height: 1.15;
  letter-spacing: var(--tracking-stamp);
  text-transform: lowercase;
  background: var(--paper);
  padding: var(--s-1);
  transform: rotate(-5deg);
  position: relative;
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  opacity: 0.4;
  pointer-events: none;
}

.seal::after {
  inset: 7px;
  opacity: 0.2;
}

.seal--large {
  width: 96px;
  height: 96px;
  font-size: var(--type-mono);
}

.seal--ink {
  border-color: var(--ink);
  color: var(--ink);
}

.seal--ink::before, .seal--ink::after {
  border-color: var(--ink);
}

/* ============================================================
   11. THE TICKET — for events / RSVP / "take a seat"
   ============================================================ */

.ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--paper);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  position: relative;
  max-width: var(--w-card-lg);
  margin: var(--s-5) auto;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: var(--tracking-mono);
}

.ticket::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--paper-warm);
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
}

.ticket::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--paper-warm);
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
}

.ticket__number {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--type-headline);
  font-weight: var(--weight-display-bold);
  color: var(--accent);
  line-height: 1;
  font-variation-settings: "opsz" 60, "SOFT" 60;
}

.ticket__body {
  display: flex;
  flex-direction: column;
}

.ticket__title {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--type-subtitle);
  color: var(--ink);
  letter-spacing: var(--tracking-snug);
  font-weight: var(--weight-display);
}

.ticket__sub {
  font-size: var(--type-mono);
  color: var(--ink-soft);
}

.ticket__cta {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--accent-deep);
  white-space: nowrap;
}

/* ============================================================
   12. THE CHAPTER OPENER — for The Book + long essays
   ============================================================ */

.chapter-opener {
  text-align: center;
  padding: var(--s-10) 0 var(--s-8);
  max-width: var(--w-wide);
  margin: 0 auto;
}

.chapter-opener__number {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  letter-spacing: var(--tracking-allcaps);
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s-4);
}

.chapter-opener__ornament {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-5);
  color: var(--accent);
}

.chapter-opener__ornament svg {
  width: 100%;
  height: 100%;
}

.chapter-opener__title {
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: var(--weight-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: 0 auto var(--s-4);
  max-width: 16ch;
  text-wrap: balance;
}

.chapter-opener__epigraph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--type-subtitle);
  font-variation-settings: "opsz" 32, "SOFT" 70;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: var(--s-5) auto 0;
  line-height: 1.5;
  text-wrap: balance;
}

.chapter-opener__epigraph::before {
  content: "·  ·  ·";
  display: block;
  margin-bottom: var(--s-3);
  color: var(--accent);
  letter-spacing: 0.6em;
  font-size: var(--type-title);
  font-style: normal;
}

.chapter-opener__attrib {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--ink-soft);
  font-variation-settings: normal;
  letter-spacing: var(--tracking-mono);
}

.chapter-opener__attrib::before { content: "— "; }

/* ============================================================
   13. THE FLOURISH — small inline ornaments
   ----------------------------------------------------------------
   A handful of unicode + SVG fragments used to mark sections,
   replace bullets, anchor moments.
   ============================================================ */

.flourish {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--type-headline);
  color: var(--accent);
  letter-spacing: 0.6em;
  line-height: 1;
  margin: var(--s-7) auto;
}

.flourish--dots::before { content: "·  ·  ·"; }
.flourish--asterism::before { content: "✶  ✶  ✶"; }
.flourish--bee::before { content: "✿  ✿  ✿"; }
.flourish--shell::before { content: "❦  ❦  ❦"; }

/* a tiny inline flourish, used in body */
.flourish-inline {
  display: inline-block;
  margin: 0 0.4em;
  color: var(--accent);
}

/* ============================================================
   14. THE WHISPER — a tiny mono italic note that floats
   ----------------------------------------------------------------
   Used for "p.s." notes, late-page asides, the "we noticed" pattern.
   ============================================================ */

.whisper {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--ink-soft);
  line-height: 1.55;
  letter-spacing: var(--tracking-mono);
  max-width: 56ch;
  padding-left: var(--s-3);
  border-left: 1px solid var(--rule);
  margin: var(--s-4) 0;
}

.whisper::before {
  content: "p.s.  ";
  color: var(--accent);
  font-style: normal;
  font-weight: var(--weight-strong);
}

.whisper--ps2::before { content: "p.p.s.  "; }
.whisper--note::before { content: "note.  "; }
.whisper--aside::before { content: "aside.  "; }

/* ============================================================
   15. THE HAND-DRAWN UNDERLINE
   ----------------------------------------------------------------
   For drawing attention to a single word in a headline.
   Uses an inline SVG as background-image.
   ============================================================ */

.underline-hand {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2,9 Q40,2 80,7 T160,8 T198,5' stroke='currentColor' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 100% 0.4em;
  padding-bottom: 0.12em;
  color: var(--accent);
}

/* ============================================================
   16. THE CARD — generic
   ============================================================ */

.card {
  background: var(--paper);
  border: var(--b-hair);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  max-width: var(--w-card-lg);
}

.card--warm {
  background: var(--paper-warm);
}

.card--accent {
  border-left: 4px solid var(--accent);
}

.card__header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}

.card__icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-variation-settings: "opsz" 32, "SOFT" 50;
  color: var(--ink);
  margin: 0;
}

/* ============================================================
   17. THE TWO-COLUMN — for moments that need it
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-7);
  }
}

.two-col--wide {
  max-width: var(--w-wide);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   18. ASIDE-RAIL — a vertical mono note column
   ----------------------------------------------------------------
   For the cohab landing's "one-line per resident" pattern.
   ============================================================ */

.aside-rail {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  color: var(--ink-soft);
  letter-spacing: var(--tracking-mono);
  border-left: 2px solid var(--rule);
  padding: 0 var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.aside-rail__line {
  position: relative;
}

.aside-rail__line::before {
  content: "·";
  position: absolute;
  left: calc(-1 * var(--s-3) - 5px);
  color: var(--accent);
}

/* ============================================================
   19. THE FOOTNOTES BLOCK
   ============================================================ */

.footnotes {
  margin-top: var(--s-9);
  padding-top: var(--s-5);
  border-top: 2px solid var(--rule);
  font-family: var(--font-serif);
  font-size: var(--type-small);
  color: var(--ink-soft);
  max-width: var(--w-content);
}

.footnotes__title {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-allcaps);
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}

.footnotes ol {
  counter-reset: notes;
  padding-left: var(--s-5);
}

.footnotes ol li {
  margin-bottom: var(--s-2);
}

.footnotes ol li::before {
  content: counter(notes);
  counter-increment: notes;
}

/* ============================================================
   20. THE STAMP-ROW — small footers under sections
   ============================================================ */

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: var(--type-tiny);
  color: var(--ink-softer);
  letter-spacing: var(--tracking-stamp);
}

.stamp-row .seal {
  width: 56px;
  height: 56px;
}

/* end motifs.css */
