/* ==========================================================================
   dehaven.css — the DeHaven design system
   Mystical Western: desert & frontier iconography, celestial motifs,
   earthy tones, leather and parchment texture, card-format layouts.

   Loaded by BOTH the Divi 5 child theme and every hand-built static page,
   so the whole site reads as one site. Deployed to /assets/dehaven.css.

   FONTS ARE NOT LOADED HERE. Each page loads them itself so this file stays
   cacheable and free of a blocking @import. Until Phase 3 self-hosts them:
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rye
     &family=Cinzel:wght@400..700&family=EB+Garamond:ital,wght@0,400..700;1,400
     &family=JetBrains+Mono:wght@400;600&display=swap">
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* --- Palette. Warm night desert, not the old cold #0d1117 blue-black. --- */
  --ink:        #171310;  /* page ground */
  --ink-raised: #1F1915;  /* panels sitting on the ground */
  --ink-high:   #2A211B;  /* the topmost surface, hover states */
  --leather:    #6B4A32;  /* saddle brown — card backs, worn edges */
  --bone:       #EDE3D2;  /* parchment / primary text */
  --clay:       #B4553A;  /* desert rust — primary accent, links */
  --brass:      #C8963E;  /* sun, rules, ornament, card frames */
  --turquoise:  #4E8C8A;  /* Southwest silver-and-turquoise — secondary */
  --sage:       #7C8B6B;  /* cactus green — success, "running" */
  --dusk:       #4A3B5C;  /* twilight violet — celestial gradients */

  /* --- Derived text tones --- */
  --text:       var(--bone);
  --text-dim:   rgba(237, 227, 210, .68);
  --text-faint: rgba(237, 227, 210, .44);

  /* --- Lines. Brass at low alpha reads as tarnished metal, not grey. --- */
  --hair:        rgba(200, 150, 62, .28);
  --hair-soft:   rgba(200, 150, 62, .14);
  --hair-strong: rgba(200, 150, 62, .55);

  /* --- Type --- */
  --font-display: "Rye", "Bitter", Georgia, serif;               /* wordmark only */
  --font-head:    "Cinzel", "Trajan Pro", Georgia, serif;        /* headings */
  --font-body:    "EB Garamond", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Fluid scale. Divi 5 number variables accept clamp() directly, so these
     port across to the builder one-for-one. */
  --step--2: clamp(.72rem, .70rem + .10vw, .78rem);
  --step--1: clamp(.84rem, .81rem + .15vw, .92rem);
  --step-0:  clamp(1.06rem, 1.01rem + .24vw, 1.20rem);
  --step-1:  clamp(1.28rem, 1.18rem + .50vw, 1.60rem);
  --step-2:  clamp(1.56rem, 1.36rem + 1.00vw, 2.20rem);
  --step-3:  clamp(1.95rem, 1.55rem + 2.00vw, 3.05rem);
  --step-4:  clamp(2.40rem, 1.70rem + 3.50vw, 4.40rem);

  --tracking-caps: .18em;   /* small-caps labels ride wide */
  --tracking-head: .04em;

  /* --- Space & shape --- */
  --gap:         clamp(1rem, .7rem + 1.5vw, 1.75rem);
  --bleed:       clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --measure:     68ch;
  --page:        1120px;
  --page-narrow: 780px;

  --radius:      14px;   /* card corners — soft, like rounded card stock */
  --radius-sm:   8px;
  --radius-pill: 999px;

  --shadow:      0 22px 60px rgba(0, 0, 0, .55);
  --shadow-lift: 0 30px 70px rgba(0, 0, 0, .62);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* --- Texture. Both are inline data URIs: no extra requests. --- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M1 12V4a3 3 0 0 1 3-3h8'/%3E%3Cpath d='M6 14V9a3 3 0 0 1 3-3h5' opacity='.55'/%3E%3Ccircle cx='16.5' cy='16.5' r='1.6' fill='%23000' stroke='none' opacity='.8'/%3E%3C/svg%3E");
}

/* --- Parchment surface -------------------------------------------------
   Long technical documentation (arcology, siggen) is a hard read as light
   serif on near-black. Any container marked data-surface="parchment" flips
   to aged paper while keeping the same palette family, so a project page can
   run night-sky chrome above a readable paper body. */

[data-surface="parchment"] {
  --ink:         #E7DBC5;
  --ink-raised:  #F0E7D6;
  --ink-high:    #FAF4E8;
  --bone:        #2A211B;
  --text:        #2A211B;
  --text-dim:    rgba(42, 33, 27, .72);
  --text-faint:  rgba(42, 33, 27, .48);
  --clay:        #9A4227;
  --brass:       #8A6520;
  --turquoise:   #2F6260;
  --hair:        rgba(107, 74, 50, .30);
  --hair-soft:   rgba(107, 74, 50, .16);
  --hair-strong: rgba(107, 74, 50, .55);
  --shadow:      0 18px 44px rgba(74, 52, 34, .22);
  --shadow-lift: 0 26px 56px rgba(74, 52, 34, .28);

  background-color: var(--ink);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: overflow-x:hidden on <html> breaks the sticky header.
     This contains the celestial glow, which bleeds past the right edge. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ink);
  /* Sun low on the horizon at right, twilight bleeding in from the left. */
  background-image:
    radial-gradient(120% 80% at 88% -10%, rgba(200, 150, 62, .16), transparent 55%),
    radial-gradient(100% 70% at 6% 0%, rgba(74, 59, 92, .22), transparent 60%),
    radial-gradient(140% 100% at 50% 120%, rgba(107, 74, 50, .18), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Grain sits over the whole page at very low opacity. It is what stops the
   flat gradients from reading as a generic dark theme. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .16;
  mix-blend-mode: overlay;
}

body > * { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(200, 150, 62, .28); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--tracking-head);
  color: var(--bone);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); letter-spacing: .08em; text-transform: uppercase; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--clay);
  text-decoration-color: var(--hair-strong);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  transition: color .18s var(--ease);
}
a:hover { color: var(--brass); }

strong { color: var(--bone); font-weight: 600; }
em { font-style: italic; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: .88em;
}

code {
  background: rgba(200, 150, 62, .10);
  border: 1px solid var(--hair-soft);
  border-radius: 4px;
  padding: .1em .38em;
  color: var(--brass);
  word-break: break-word;
}

pre {
  background: var(--ink-raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.6;
  box-shadow: var(--shadow);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

blockquote {
  margin: 1.6em 0;
  padding: .2em 0 .2em 1.4em;
  border-left: 2px solid var(--hair-strong);
  color: var(--text-dim);
  font-style: italic;
}

/* The wordmark. Rye is heavy wood-type, so it is rationed to this one use. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--bone);
  text-decoration: none;
  line-height: 1;
}

/* Small-caps label plate — the recurring card-title device. */
.label {
  font-family: var(--font-head);
  font-size: var(--step--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--brass);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-dim);
  border: 1px solid var(--hair);
  border-radius: var(--radius-pill);
  padding: .4rem .9rem;
  background: rgba(200, 150, 62, .06);
}
.eyebrow .orn { width: 1em; height: 1em; color: var(--brass); }

/* Long-form reading. Used on the project documentation bodies. */
.prose { max-width: var(--measure); font-size: var(--step-0); line-height: 1.78; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brass); }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.page   { width: min(var(--page), calc(100% - var(--bleed) * 2)); margin-inline: auto; }
.narrow { width: min(var(--page-narrow), calc(100% - var(--bleed) * 2)); margin-inline: auto; }

.section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
/* Four section cards across at full width; drops to 2-up, then 1-up. */
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.stack > * + * { margin-top: var(--gap); }

/* --------------------------------------------------------------------------
   5. ORNAMENT
   -------------------------------------------------------------------------- */

.orn {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  color: var(--brass);
  flex: none;
}
.orn--lg { width: 2.75rem; height: 2.75rem; }

/* Ornamental divider — brass rule with a centre diamond. */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--brass);
  margin-block: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 12rem;
  background: linear-gradient(90deg, transparent, var(--hair-strong));
}
.rule::after { background: linear-gradient(90deg, var(--hair-strong), transparent); }
.rule .orn { width: 1.1rem; height: 1.1rem; opacity: .9; }

/* Moon-phase divider, for section breaks that want more ceremony. */
.rule--phases .orn { width: 7.5rem; height: .9rem; }

/* --------------------------------------------------------------------------
   6. THE CARD
   The core component: a tarot-card FORMAT — double brass frame, corner
   flourishes, medallion, label plate, optional Roman numeral index — with
   none of the tarot iconography.
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px;                       /* the gap between outer and inner rule */
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, var(--ink-high), var(--ink-raised) 62%),
    var(--ink-raised);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease);
}

/* Worn leather sheen along the top edge. */
.card__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(237, 227, 210, .07), transparent 40%);
}

.card__frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  border: 1px solid var(--hair-soft);
  border-radius: calc(var(--radius) - 5px);
}

/* Four corner flourishes with almost no extra markup: two pseudo-elements on
   the card, two on the frame. Masked so they take the brass colour. */
.card::before,
.card__frame::before,
.card__frame::after,
.card > .card__corner {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: var(--brass);
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: var(--corner);
          mask-image: var(--corner);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: opacity .22s var(--ease);
}
.card::before          { top: 11px;   left: 11px;                             }  /* TL */
.card__frame::before   { top: 5px;    right: 5px;   transform: scaleX(-1);    }  /* TR */
.card__frame::after    { bottom: 5px; left: 5px;    transform: scaleY(-1);    }  /* BL */
.card > .card__corner  { bottom: 11px; right: 11px; transform: scale(-1);     }  /* BR */

.card__medallion {
  display: grid;
  place-items: center;
  width: 3.9rem;
  height: 3.9rem;
  border: 1px solid var(--hair);
  border-radius: 50%;
  color: var(--brass);
  background: radial-gradient(circle at 50% 30%, rgba(200, 150, 62, .18), transparent 70%);
  box-shadow: inset 0 0 22px rgba(200, 150, 62, .12);
  margin-bottom: .25rem;
}
.card__medallion .orn { width: 2rem; height: 2rem; }

/* Roman numeral index, top-right, the way a card is numbered. */
.card__index {
  position: absolute;
  top: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  right: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  font-family: var(--font-head);
  font-size: var(--step--1);
  letter-spacing: .12em;
  color: var(--text-faint);
}

.card__title { margin: 0; font-size: var(--step-1); }
.card__body  { color: var(--text-dim); margin: 0; }

/* Bottom label plate — sits on a hairline, like the name band on a card. */
.card__plate {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--hair-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card__go {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clay);
}
.card__go .orn {
  width: 1.1rem;
  height: 1.1rem;
  color: currentColor;
  transition: transform .22s var(--ease);
}

/* Hover — the card lifts and the brass warms. */
a.card:hover,
.card--link:hover {
  transform: translateY(-4px);
  border-color: var(--hair-strong);
  box-shadow: var(--shadow-lift);
}
a.card:hover .card__go,
.card--link:hover .card__go { color: var(--brass); }
a.card:hover .card__go .orn,
.card--link:hover .card__go .orn { transform: translateX(4px); }
a.card:hover::before,
a.card:hover .card__frame::before,
a.card:hover .card__frame::after,
a.card:hover > .card__corner { opacity: .95; }

/* --- Card variants --- */

/* Portrait: the true card proportion. For section/nav cards on the home page. */
.card--portrait { text-align: center; }
.card--portrait .card__frame { min-height: 22rem; align-items: center; }
.card--portrait .card__plate { justify-content: center; width: 100%; }
.card--portrait .card__body { max-width: 32ch; }

/* Feature: wider, left-aligned, for project and update listings. */
.card--feature .card__title { font-size: var(--step-2); }

/* Quiet: no frame ornament, no lift — for dense lists. */
.card--quiet { box-shadow: none; background: var(--ink-raised); }
.card--quiet::before,
.card--quiet .card__frame::before,
.card--quiet .card__frame::after,
.card--quiet > .card__corner { display: none; }
.card--quiet .card__frame { border: 0; }

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair-strong);
  color: var(--bone);
  background: linear-gradient(180deg, rgba(200, 150, 62, .18), rgba(200, 150, 62, .06));
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), color .2s var(--ease);
}
.btn:hover {
  background: linear-gradient(180deg, rgba(200, 150, 62, .30), rgba(200, 150, 62, .12));
  border-color: var(--brass);
  color: var(--bone);
  transform: translateY(-2px);
}
.btn .orn { width: 1.1rem; height: 1.1rem; color: var(--brass); }

.btn--solid {
  background: linear-gradient(180deg, var(--clay), #8F3F2A);
  border-color: transparent;
  color: #FBF4E8;
}
.btn--solid:hover { background: linear-gradient(180deg, #C4623F, var(--clay)); }
.btn--solid .orn { color: currentColor; }

.btn--ghost { background: none; border-color: var(--hair); }
.btn--ghost:hover { background: rgba(200, 150, 62, .08); }

/* --------------------------------------------------------------------------
   8. HEADER & NAV
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: .9rem;
  background: rgba(23, 19, 16, .86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--hair-soft);
}
/* Brass hairline under the header — the horizon line. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-strong) 22%,
                                     var(--hair-strong) 78%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  color: var(--brass);
  background: radial-gradient(circle at 50% 30%, rgba(200, 150, 62, .20), transparent 70%);
}
.brand__mark .orn { width: 1.4rem; height: 1.4rem; }
.brand__name { font-family: var(--font-display); font-size: var(--step-0); color: var(--bone); }

.site-nav { display: flex; align-items: center; gap: clamp(.9rem, .4rem + 1.4vw, 2rem); }
.site-nav a {
  font-family: var(--font-head);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--text-dim);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--brass); }

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.hero__title { font-size: var(--step-4); margin-block: .5em .35em; }
.hero__lede { font-size: var(--step-1); color: var(--text-dim); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Optional celestial arc behind a hero. */
.hero--celestial { position: relative; }
.hero--celestial::before {
  content: "";
  position: absolute;
  top: -12%; right: -8%;
  width: min(34rem, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 62, .16), transparent 62%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. SMALL PARTS
   -------------------------------------------------------------------------- */

/* Status pill — "Running", "Archived", "In progress". */
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: .13em;
  padding: .34rem .8rem;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  color: var(--sage);
  background: rgba(124, 139, 107, .10);
}
.status__dot { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.status--warn { color: var(--brass); background: rgba(200, 150, 62, .10); }
.status--off  { color: var(--text-faint); background: rgba(237, 227, 210, .05); }

/* Key/value strip — server addresses, ports, build numbers. */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, .6rem + 1.6vw, 2.2rem);
  padding-top: 1rem;
  border-top: 1px solid var(--hair-soft);
}
.meta__k {
  font-family: var(--font-head);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-faint);
}
.meta__v {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--bone);
  margin-top: .18rem;
  word-break: break-all;
}

/* Aside note — dashed frame, for "more coming" / caveats. */
.note {
  border: 1px dashed var(--hair);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  color: var(--text-dim);
  background: rgba(200, 150, 62, .04);
}
.note strong { color: var(--bone); }

/* Numbered steps, for the join guides. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 1.8rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.1em;
  display: grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--hair);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: var(--step--1);
  color: var(--brass);
  background: rgba(200, 150, 62, .07);
}

/* Callout — an aside that interrupts the reading, with a weight.
   info (default) = context, warn = read this twice, stop = you will lose work. */
.callout {
  display: flex;
  gap: .95rem;
  align-items: flex-start;
  margin-block: 1.6rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--hair-soft);
  border-left: 3px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: rgba(78, 140, 138, .08);
  color: var(--text-dim);
}
.callout > .orn { width: 1.35rem; height: 1.35rem; margin-top: .18rem; color: var(--turquoise); }
.callout p { margin: 0; max-width: none; }
.callout p + p { margin-top: .6rem; }
.callout strong { color: var(--bone); }

.callout--warn { border-left-color: var(--brass); background: rgba(200, 150, 62, .09); }
.callout--warn > .orn { color: var(--brass); }

.callout--stop { border-left-color: var(--clay); background: rgba(180, 85, 58, .11); }
.callout--stop > .orn { color: var(--clay); }

/* Accordion — troubleshooting and FAQ blocks. */
.faq details {
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius-sm);
  background: var(--ink-raised);
  margin-bottom: .65rem;
  padding-inline: 1.15rem;
}
.faq details[open] { background: var(--ink-high); border-color: var(--hair); }

.faq summary {
  cursor: pointer;
  padding-block: .95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-head);
  font-size: var(--step-0);
  color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--brass);
  font-size: 1.1em;
  line-height: 1;
  width: 1ch;
}
.faq details[open] summary::before { content: "2"; }
.faq summary:hover { color: var(--brass); }

.faq .answer { padding: 0 0 1.1rem 1.7rem; color: var(--text-dim); }
.faq .answer p { margin: 0 0 .65rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Section title — heading with a kicker beside it. */
.section-title {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.section-title h2 { margin: 0; }
.section-title .kicker {
  font-family: var(--font-head);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--hair-soft);
  color: var(--text-faint);
  font-size: var(--step--1);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--brass); }

/* --------------------------------------------------------------------------
   12. RESPONSIVE & PREFERENCES
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .site-header__inner { flex-wrap: wrap; row-gap: .7rem; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .card--portrait .card__frame { min-height: 0; }
  .card__index { position: static; align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  a.card:hover, .card--link:hover, .btn:hover { transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .hero--celestial::before { display: none; }
  .card { box-shadow: none; border-color: #999; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}
