/* ==========================================================================
   Everyday I Use AI — resource hub
   Concept: the index card library. Wearing the allinaivibes.com brand.
   ========================================================================== */

/* Palette and type taken from the live allinaivibes.com, so the two sites read
   as one company. The index card library concept is unchanged: this is still a
   paper-first page, it just wears the main brand's colours and typefaces now.

   The token NAMES are kept from the old everydayiuseai.com scheme so nothing
   downstream had to be rewritten. --signal was blue and is now the hot orange,
   because it is the lead accent in 32 places and repointing it flips all of
   them at once. */
:root {
  --ink: #0a0b0f;
  --ink-2: #12141a;
  --ink-soft: #56585f;
  --paper: #f1efe7;
  --paper-cool: #dedbd1;

  --signal: #e5652e;   /* the lead accent, "hot" on allinaivibes.com */
  --pine: #c14e1f;     /* pressed / hover state of the lead accent */
  --clay: #a33a12;     /* deep rust, used where a second warm is needed on paper */
  --glow: #e5652e;
  --acid: #d9ff63;     /* dark surfaces only, it disappears on cream */
  --electric: #86a8ff;

  --rule: rgba(10, 11, 15, 0.18);
  --rule-faint: rgba(10, 11, 15, 0.09);
  --rule-light: rgba(241, 239, 231, 0.22);

  --sans: "DM Sans", Arial, sans-serif;
  --display: "DM Sans", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --head-h: 76px;

  --orbit-x: 0px;
  --orbit-y: 0px;
  --orbit-rotate: 0deg;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 40px, 1280px); margin-inline: auto; }

/* ---------- shared bits ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow--clay { color: var(--clay); }
.eyebrow--ink { color: var(--ink-soft); }

/* ---------- accent contrast: warm on paper, hot on ink ----------
   The hot orange is the brand's lead accent but it only measures 2.9:1 on
   cream, which is under the bar for small type. So paper surfaces use the
   deep rust (5.7:1) and dark surfaces use the hot orange (5.6:1 on ink),
   where the rust would go muddy. Same accent family, legible on both.
------------------------------------------------------------------- */
.eyebrow { color: var(--clay); }

.hero .eyebrow,
.libhero .eyebrow,
.rail .eyebrow,
.article__cta .eyebrow,
.foot .eyebrow { color: var(--signal); }

/* on a dark block the product line takes the acid instead, which is the lime
   allinaivibes.com uses to break up long stretches of ink */
.rail .eyebrow--clay,
.article__cta .eyebrow--clay { color: var(--acid); }

.textlink:hover { color: var(--clay); }

.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}

/* The house headline move, taken from allinaivibes.com: a heavy sans line in
   caps, then a serif italic line under it in sentence case. Every <em> inside
   a display heading gets it, so "I use this stuff / every single day." reads
   the same way "Big Business Energy. / Main Street Prices." does over there.
   text-transform has to be undone here, the italic line is never caps. */
.display em,
.article h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--signal);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--pine); border-color: var(--pine); box-shadow: 0 10px 24px rgba(229, 101, 46, 0.28); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn--onink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--onink:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn--ghost-onink { background: transparent; color: var(--paper); border-color: var(--rule-light); }
.btn--ghost-onink:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }

.textlink {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--signal);
  padding-bottom: 3px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
/* hover colour is set in the accent-contrast block above: rust on paper */
.hero .textlink:hover,
.rail .textlink:hover,
.article__cta .textlink:hover,
.foot .textlink:hover { color: var(--signal); }

/* ---------- header ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--head-h);
  background: var(--ink);
  border-bottom: 1px solid rgba(229, 101, 46, 0.25);
}
.head__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.head__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.05;
}
.head__brand span { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--signal); font-weight: 400; }
.head__nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.head__nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 160ms var(--ease), color 160ms var(--ease);
}
.head__nav a:hover { opacity: 1; color: var(--signal); }
.head__nav .btn { padding: 11px 18px; }
/* `.head__nav a` (0,1,1) outranks `.btn--onink` (0,1,0), so without this the
   header button renders paper text on a paper background and disappears. */
.head__nav a.btn--onink { color: var(--ink); opacity: 1; }
.head__nav a.btn--onink:hover { color: var(--paper); }
.head__toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 239, 231, 0.05) 1px, transparent 1px);
  background-size: 100% 34px;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  color: var(--paper);
  transform: translateY(var(--hero-shift, 0px)) scale(var(--hero-scale, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}
/* inherits the serif italic from .display em above, on purpose */
.hero__title em { color: var(--signal); }
.hero__lede {
  width: min(620px, 100%);
  margin: 30px 0 0;
  font-size: 1.12rem;
  color: rgba(241, 239, 231, 0.78);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 62px;
  border-top: 1px solid var(--rule-light);
}
.hero__stat {
  flex: 1 1 180px;
  padding: 22px 24px 0 0;
  border-right: 1px solid var(--rule-light);
}

/* ---------- hero: on-load entrance + ambient drift ----------
   Each hero child gets [data-reveal] and a --delay custom property set
   inline. JS flips .is-ready on the hero once fonts/layout are settled,
   which releases the fade-and-rise. The dot grid behind the copy drifts
   forever on its own, slow enough to read as alive, not busy. Everything
   here backs off completely under prefers-reduced-motion, further down.
------------------------------------------------------------------- */
.hero [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.hero.is-ready [data-reveal] { opacity: 1; transform: translateY(0); }

.hero::after {
  animation: hero-drift 26s linear infinite;
}
@keyframes hero-drift {
  from { background-position: 0 0; }
  to { background-position: 0 340px; }
}

/* ---------- hero: the ambient layer ----------
   Motion that is running before anyone touches the page. Pure CSS on purpose.
   A background tab never fires requestAnimationFrame, so a canvas particle
   field would sit frozen until the tab came forward; keyframes do not have
   that problem. Burnt orange (--glow) is the accent through all of it.
------------------------------------------------------------------------ */

/* The breathing ember behind the headline.

   This is on .hero::before, not on a <div>, deliberately. A browser holding a
   cached copy of index.html from before the ambient layer was added would have
   no <div class="hero__ember"> in it and the glow would silently vanish. A
   pseudo-element cannot go missing: if the stylesheet loaded, the glow is
   there. .hero__ember is kept as a selector too so either markup works. */
.hero::before,
.hero__ember {
  content: "";
  position: absolute;
  z-index: 1;
  top: -18%;
  left: -10%;
  width: 78%;
  height: 150%;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 32% 38%, rgba(229, 101, 46, 0.58), transparent 68%),
    radial-gradient(30% 34% at 58% 62%, rgba(229, 101, 46, 0.34), transparent 70%),
    radial-gradient(26% 30% at 12% 74%, rgba(217, 255, 99, 0.20), transparent 72%);
  filter: blur(14px);
  animation: ember-breathe 15s ease-in-out infinite alternate;
}
@keyframes ember-breathe {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.12); opacity: 1; }
  to   { transform: translate3d(-2%, 3%, 0) scale(1.05); opacity: 0.8; }
}

/* dust in the light beam */
.hero__motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__motes i {
  position: absolute;
  bottom: -30px;
  width: var(--size, 5px);
  height: var(--size, 5px);
  border-radius: 50%;
  background: var(--tint, rgba(229, 101, 46, 0.95));
  /* the hero went from navy to near-black with the retheme, which ate the
     smaller motes, so the halo is wider and brighter than it started */
  box-shadow: 0 0 18px var(--tint, rgba(229, 101, 46, 0.95)),
              0 0 34px var(--tint, rgba(229, 101, 46, 0.95));
  opacity: 0;
  animation: mote-rise var(--dur, 20s) linear var(--wait, 0s) infinite;
}
@keyframes mote-rise {
  0%   { opacity: 0; transform: translate3d(0, 0, 0); }
  12%  { opacity: var(--peak, 0.8); }
  50%  { transform: translate3d(var(--sway, 26px), -52vh, 0); }
  88%  { opacity: var(--peak, 0.8); }
  100% { opacity: 0; transform: translate3d(0, -104vh, 0); }
}

/* Each mote gets its own lane, size, tint and clock so the field never
   visibly loops. Burnt orange dominates, blue and paper fill in behind it. */
.hero__motes i:nth-child(1)  { left:  4%; --size: 6px; --dur: 21s; --wait: 0s;    --sway:  30px; }
.hero__motes i:nth-child(2)  { left: 11%; --size: 3px; --dur: 28s; --wait: -6s;   --sway: -22px; --tint: rgba(241, 239, 231,.55); --peak:.5; }
.hero__motes i:nth-child(3)  { left: 18%; --size: 5px; --dur: 24s; --wait: -13s;  --sway:  18px; }
.hero__motes i:nth-child(4)  { left: 24%; --size: 4px; --dur: 32s; --wait: -3s;   --sway: -34px; --tint: rgba(217,255,99,.75); }
.hero__motes i:nth-child(5)  { left: 31%; --size: 7px; --dur: 19s; --wait: -17s;  --sway:  24px; }
.hero__motes i:nth-child(6)  { left: 37%; --size: 3px; --dur: 30s; --wait: -9s;   --sway: -16px; --tint: rgba(241, 239, 231,.45); --peak:.45; }
.hero__motes i:nth-child(7)  { left: 44%; --size: 5px; --dur: 23s; --wait: -21s;  --sway:  36px; }
.hero__motes i:nth-child(8)  { left: 50%; --size: 4px; --dur: 27s; --wait: -1s;   --sway: -28px; --tint: rgba(229,101,46,.85); }
.hero__motes i:nth-child(9)  { left: 56%; --size: 6px; --dur: 20s; --wait: -11s;  --sway:  20px; }
.hero__motes i:nth-child(10) { left: 62%; --size: 3px; --dur: 34s; --wait: -24s;  --sway: -38px; --tint: rgba(134,168,255,.6); --peak:.6; }
.hero__motes i:nth-child(11) { left: 68%; --size: 5px; --dur: 22s; --wait: -5s;   --sway:  26px; }
.hero__motes i:nth-child(12) { left: 73%; --size: 4px; --dur: 29s; --wait: -15s;  --sway: -20px; --tint: rgba(241, 239, 231,.5); --peak:.5; }
.hero__motes i:nth-child(13) { left: 79%; --size: 7px; --dur: 18s; --wait: -8s;   --sway:  32px; }
.hero__motes i:nth-child(14) { left: 84%; --size: 3px; --dur: 31s; --wait: -19s;  --sway: -24px; --tint: rgba(217,255,99,.65); }
.hero__motes i:nth-child(15) { left: 89%; --size: 5px; --dur: 25s; --wait: -2s;   --sway:  16px; }
.hero__motes i:nth-child(16) { left: 93%; --size: 4px; --dur: 33s; --wait: -27s;  --sway: -30px; --tint: rgba(217,255,99,.5); --peak:.55; }
.hero__motes i:nth-child(17) { left: 97%; --size: 6px; --dur: 26s; --wait: -12s;  --sway:  22px; }
.hero__motes i:nth-child(18) { left:  8%; --size: 4px; --dur: 35s; --wait: -30s;  --sway: -18px; --tint: rgba(241, 239, 231,.4); --peak:.4; }

/* The accent word: blue into burnt orange, with the light moving across it.
   Gated behind @supports on purpose. color:transparent with no working
   background-clip would render the word invisible, so a browser that cannot
   do this keeps the plain blue instead of losing the headline. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title em {
    background: linear-gradient(100deg,
      var(--signal) 0%, var(--signal) 26%,
      var(--acid) 50%, var(--signal) 74%,
      var(--signal) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: accent-sweep 9s ease-in-out infinite;
  }
}
@keyframes accent-sweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* burnt orange picked back up on the rule above the stat row */
.hero__stats {
  border-top: 0;
  background-image: linear-gradient(90deg,
    var(--glow) 0%, rgba(229, 101, 46, 0.35) 34%, var(--rule-light) 72%, var(--rule-light) 100%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 0;
}

.hero__stat b { position: relative; }
.hero__stat b[data-count] { font-variant-numeric: tabular-nums; }
.hero__stat:last-child { border-right: 0; }
.hero__stat b {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--signal);
  line-height: 1;
}
.hero__stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 239, 231, 0.6);
}

/* ---------- manifesto: the scroll and turn ---------- */

.manifesto {
  position: relative;
  height: 1560px;
  overflow: clip;
  background: var(--paper);
  border-top: 1px solid var(--rule-faint);
}
.manifesto__sticky {
  position: sticky;
  top: var(--head-h);
  height: calc(100svh - var(--head-h));
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 60px 24px;
  z-index: 3;
}
.manifesto__copy { width: min(760px, 78vw); text-align: center; }
.manifesto__title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.manifesto__title em {
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--signal);
}
.manifesto__body { width: min(600px, 100%); margin: 26px auto 0; color: var(--ink-soft); }
.manifesto__body p { margin: 0 0 14px; }
.manifesto__signoff {
  margin: 26px auto 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--clay);
}

/* the orbiting mini index cards */
.orbit {
  position: absolute;
  z-index: 6;
  width: 132px;
  padding: 12px 12px 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 18px 42px rgba(10, 11, 15, 0.12);
  text-align: left;
  transform: translate3d(var(--orbit-x), var(--orbit-y), 0) rotate(var(--orbit-rotate));
  will-change: transform;
}
.orbit b {
  display: block;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.orbit span {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--rule-faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.orbit--1 { left: 5%;  top: 27%; }
.orbit--2 { right: 6%; top: 31%; }
.orbit--3 { left: 7%;  top: 66%; }
.orbit--4 { right: 5%; top: 71%; }

/* ---------- the free thing (flagship band) ---------- */

/* This band was built when the lead accent was blue, so it ran white text on
   it. White on the hot orange is only 3.4:1. allinaivibes.com solves the same
   problem the same way its pricing cards do: solid orange panel, dark text.
   Ink on the hot measures 5.7:1. */
.flagship {
  background: var(--signal);
  color: var(--ink);
  padding: 92px 0;
  border-top: 1px solid var(--rule-faint);
}
.flagship__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.flagship .eyebrow { color: rgba(10, 11, 15, 0.72); }
.flagship__title { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.flagship p { font-size: 1.08rem; color: rgba(10, 11, 15, 0.82); }
.flagship .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flagship .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
/* the cream card sitting inside the orange band keeps the paper accent */
.flagship__card .eyebrow { color: var(--clay); }
.flagship__note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 11, 15, 0.7);
}

/* the sample index card sitting in the flagship band */
.flagship__card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(10, 11, 15, 0.3);
  border-radius: 3px;
  padding: 26px;
  box-shadow: 0 26px 60px rgba(10, 11, 15, 0.28);
  transform: rotate(-1.4deg);
}
.flagship__card h4 { font-family: var(--display); font-size: 1.4rem; margin: 12px 0 10px; text-transform: uppercase; letter-spacing: -0.02em; }
.flagship__card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.flagship__card li { margin-bottom: 6px; }

/* ---------- pick your next move ---------- */

/* ---------- pick your next move ----------
   This block sits directly under the hero and it is the only place on the
   homepage that asks for money, so it is built to interrupt: a dark band
   against a cream page, with the paid door carrying the brand orange.
   Cream cards on a warm grey band read as filler and got scrolled past.
---------------------------------------------------------------------- */

.paths {
  background: var(--ink);
  color: var(--paper);
  padding: 104px 0 112px;
  position: relative;
  overflow: hidden;
}
/* a lit corner so the band is not a flat black rectangle */
.paths::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 150%;
  pointer-events: none;
  background: radial-gradient(42% 40% at 70% 40%, rgba(229, 101, 46, 0.30), transparent 70%);
  filter: blur(20px);
  animation: ember-breathe 19s ease-in-out infinite alternate;
}
.paths .wrap { position: relative; z-index: 2; }
.paths__head { max-width: 720px; margin-bottom: 56px; }
.paths__title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); color: var(--paper); }
.paths .eyebrow { color: var(--acid); }
.paths__head p { color: rgba(241, 239, 231, 0.74) !important; }
.paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.path {
  background: var(--ink-2);
  border: 1px solid rgba(241, 239, 231, 0.16);
  border-radius: 3px;
  padding: 32px 30px 30px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--paper);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              border-color 220ms var(--ease), background 220ms var(--ease);
}
.path:hover {
  transform: translateY(-7px);
  border-color: var(--signal);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.path__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--signal);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(241, 239, 231, 0.16);
}
.path h3 { font-family: var(--display); font-size: 1.62rem; text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.05; }
.path p { margin: 0 0 22px; color: rgba(241, 239, 231, 0.74); font-size: 0.98rem; }
.path__go {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid);
}
.path__price { display: block; margin-top: 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: rgba(241, 239, 231, 0.55); }

/* Door 01 is the one that takes money, so it is the one that is solid orange.
   Ink text on the hot measures 5.7:1, the same call as the checkup band. */
.path:first-child {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.path:first-child .path__num { color: rgba(10, 11, 15, 0.72); border-bottom-color: rgba(10, 11, 15, 0.22); }
.path:first-child p { color: rgba(10, 11, 15, 0.82); }
.path:first-child .path__go { color: var(--ink); }
.path:first-child .path__price { color: rgba(10, 11, 15, 0.66); }
.path:first-child:hover { background: var(--pine); border-color: var(--pine); }

/* ---------- the index cards (the library) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0 0 22px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card::before {
  /* the ruled paper */
  content: "";
  position: absolute;
  inset: 52px 0 0;
  background-image: linear-gradient(rgba(10, 11, 15, 0.055) 1px, transparent 1px);
  background-size: 100% 30px;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--signal); box-shadow: 0 20px 44px rgba(10, 11, 15, 0.14); }
.card__tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(229, 101, 46, 0.06);
}
.card__tool { color: var(--clay); font-weight: 500; }
.card__num { margin-left: auto; color: rgba(10, 11, 15, 0.4); }
.card__body { position: relative; z-index: 2; padding: 24px 22px 0; flex: 1; }
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }
.card__foot {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  padding: 16px 22px 0;
  border-top: 1px solid var(--rule-faint);
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);   /* small type on cream, so the rust not the hot */
}
.card__for { margin-left: auto; color: rgba(10, 11, 15, 0.42); }

.card--draft { background: #f4f2ec; }
.card--draft:hover { transform: none; border-color: var(--rule); box-shadow: none; }
.card--draft .card__foot { color: rgba(10, 11, 15, 0.38); }
.card__stamp {
  position: absolute;
  top: 62px;
  right: 16px;
  z-index: 3;
  padding: 4px 9px;
  border: 1px solid rgba(255, 91, 53, 0.5);
  border-radius: 2px;
  transform: rotate(-8deg);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.card__ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  z-index: 3;
  width: 150px;
  padding: 3px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  transform: rotate(38deg);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(10, 11, 15, 0.2);
}

/* ---------- recent guides block ---------- */

.recent { padding: 100px 0 110px; background: var(--paper); }
.recent__head { display: flex; align-items: flex-end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.recent__title { font-size: clamp(2.6rem, 7vw, 6rem); }
.recent__head p { margin: 0; max-width: 420px; color: var(--ink-soft); }
.recent__foot { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- library page ---------- */

.libhero { background: var(--ink); color: var(--paper); padding: 76px 0 68px; }
.libhero__title { font-size: clamp(2.8rem, 8vw, 6.5rem); color: var(--paper); }
.libhero__title em { font-style: normal; color: var(--signal); }
.libhero p { width: min(560px, 100%); margin: 22px 0 0; color: rgba(241, 239, 231, 0.75); }

.filters { background: var(--paper); border-bottom: 1px solid var(--rule-faint); padding: 34px 0 30px; position: sticky; top: var(--head-h); z-index: 700; }
.filterrow { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.filterrow__label {
  flex: 0 0 92px;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 11, 15, 0.45);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: all 160ms var(--ease);
}
.chip:hover { border-color: var(--signal); color: var(--signal); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.findrow { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.findrow .filterrow__label { flex: 0 0 92px; }
.search {
  flex: 1 1 320px;
  padding: 11px 15px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.search:focus { outline: 2px solid var(--signal); outline-offset: -1px; }
.sort {
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.count {
  padding: 26px 0 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.count b { color: var(--clay); font-weight: 500; }

.libgrid { padding-bottom: 90px; }
.empty {
  padding: 70px 0 100px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* the money rail that drops into the library every 9 cards */
.rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px 34px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
}
.rail h3 { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; letter-spacing: -0.02em; margin: 10px 0 8px; line-height: 1.05; }
.rail p { margin: 0; color: rgba(241, 239, 231, 0.72); font-size: 0.98rem; }


/* ---------- footer ---------- */

.foot { background: var(--ink); color: var(--paper); padding: 84px 0 30px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; border-bottom: 1px solid var(--rule-light); }
.foot__title { font-family: var(--display); font-size: 2rem; text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1; }
.foot__grid p { color: rgba(241, 239, 231, 0.65); margin: 0 0 20px; max-width: 340px; font-size: 0.95rem; }
.foot h5 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); margin: 0 0 16px; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot li a { color: rgba(241, 239, 231, 0.78); text-decoration: none; font-size: 0.92rem; }
.foot li a:hover { color: var(--signal); }
.foot__bar {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 239, 231, 0.45);
}

/* ---------- guide article page ---------- */

.article { padding: 70px 0 90px; background: var(--paper); }
.article__wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
.article__tab {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.article h1 { font-family: var(--display); font-size: clamp(2.2rem, 5.5vw, 3.6rem); text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.02; margin: 26px 0 18px; }
.article__lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 40px; }
.article h2 { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: -0.02em; margin: 44px 0 14px; }
.article p { margin: 0 0 18px; }
.article ol, .article ul { margin: 0 0 20px; padding-left: 22px; }
.article li { margin-bottom: 10px; }
.copybox {
  margin: 26px 0 34px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.copybox__label { display: block; margin-bottom: 12px; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); }
.article__cta { margin-top: 54px; padding: 30px; background: var(--ink); color: var(--paper); border-radius: 3px; }
.article__cta h3 { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.02em; margin: 8px 0 10px; }
.article__cta p { color: rgba(241, 239, 231, 0.72); }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .cards, .paths__grid { grid-template-columns: repeat(2, 1fr); }
  .flagship__grid { grid-template-columns: 1fr; gap: 40px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .head__nav {
    display: none;
    position: absolute;
    top: var(--head-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 20px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-light);
  }
  .head[data-open="true"] .head__nav { display: flex; }
  .head__nav a { padding: 10px 0; }
  .head__toggle { display: block; }
  .manifesto { height: auto; padding: 80px 0 90px; }
  .manifesto__sticky { position: static; height: auto; min-height: 0; padding: 0 20px; }
  .manifesto__copy { width: 100%; }
  .orbit { display: none; }
  .cards, .paths__grid { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filterrow { flex-direction: column; gap: 10px; }
  .filterrow__label { padding-top: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .hero__stats { margin-top: 44px; }
  .hero__stat {
    flex: 1 1 100%;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .hero__stat:last-child { border-bottom: 0; }
  .hero__stat b { font-size: 1.8rem; }
  .hero__stat span { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title, .orbit { transform: none !important; }
  .card:hover, .path:hover { transform: none; }
  .hero::after { animation: none; }
  .hero [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero__ember { animation: none; opacity: 0.8; }
  .hero__motes { display: none; }
  .hero__title em {
    animation: none;
    background: none;
    color: var(--signal);
    -webkit-text-fill-color: var(--signal);
  }
}
