/* ==========================================================================
   DateSpark stylesheet
   Direction: nocturne atelier. A couture ledger of nights: near-black
   espresso warmth, parchment ink, one ember accent, quiet champagne brass.
   Composition is off-axis and full-bleed; ideas run as numbered ledger rows
   beside a sticky typographic filter rail; the footer rolls like credits.
   Fonts: Fraunces (display), Outfit (body), Space Mono (numerals).
   All self-hosted woff2.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/outfit-400-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-mono-400.woff2") format("woff2");
}

/* ---- Tokens ---------------------------------------------------------------- */

:root {
  --bg: #120C09;             /* the dark room */
  --bg-deep: #0B0705;        /* deeper stage black */
  --surface: #1D140E;        /* burnt umber lift */
  --surface-2: #241910;      /* warmer lift for hovers */
  --ink: #F1E4D0;            /* candlelit parchment */
  --muted: #B5A38D;          /* warm undertone text, AA on all surfaces */
  --accent: #E98A57;         /* ember, text safe */
  --accent-soft: #F3B08A;    /* ember bloom */
  --ember-hot: #E4643A;      /* struck match, marks and large display only */
  --brass: #C9A76A;          /* quiet metallic */
  --champagne: #E8CF9E;      /* polished metallic, bright */
  --on-ember: #120C09;       /* dark type on ember or brass fills */

  --hairline: rgba(241, 228, 208, 0.10);
  --hairline-strong: rgba(241, 228, 208, 0.20);
  --brass-line: rgba(201, 167, 106, 0.42);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --frame: 1440px;
  --ease: cubic-bezier(0.22, 0.65, 0.28, 1);

  --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='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---- Reset and base -------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Candle in the room: one warm asymmetric glow, low and off to the left */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56rem 40rem at 8% 4%, rgba(228, 100, 58, 0.075), transparent 62%),
    radial-gradient(44rem 34rem at 96% 22%, rgba(201, 167, 106, 0.05), transparent 58%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 26rem);
}

/* Film grain over everything, held very quiet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.05;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(243, 176, 138, 0.35);
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

::selection {
  background: var(--champagne);
  color: var(--on-ember);
}

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

button {
  font: inherit;
}

main {
  display: block;
}

/* ---- Utilities --------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus-visible {
  position: fixed;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 100;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 0.75rem 1.4rem;
  background: var(--bg-deep);
  color: var(--champagne);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass);
}

/* ---- Header ---------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding: 1.15rem var(--pad) 1.05rem;
  border-bottom: 1px solid var(--hairline);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-header__brand img {
  height: 27px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 1.7rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.25rem;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--champagne);
}

.site-nav a[aria-current="page"]::after {
  background: var(--brass);
  transform: scaleX(1);
}

/* ---- Hero: off-axis title card ---------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 8vh, 6.5rem) var(--pad) 0;
  border-bottom: 1px solid var(--hairline);
}

.hero__stage {
  position: relative;
  max-width: var(--frame);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(17rem, 1fr);
  column-gap: clamp(2.5rem, 5vw, 6rem);
  align-items: end;
}

/* Ghost folio numeral, oversized, outlined in brass */
.hero__ghost {
  position: absolute;
  top: -0.28em;
  right: -0.06em;
  z-index: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(11rem, 26vw, 24rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 167, 106, 0.28);
  user-select: none;
}

@supports not (-webkit-text-stroke: 1px black) {
  .hero__ghost {
    color: rgba(201, 167, 106, 0.09);
  }
}

.hero__eyebrow {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0 0 clamp(2.2rem, 5vh, 4rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero__eyebrow::before {
  content: "";
  flex: 0 0 clamp(2rem, 6vw, 5.5rem);
  height: 1px;
  background: var(--brass-line);
}

.hero__display {
  position: relative;
  z-index: 1;
  grid-column: 1;
  margin: 0;
  font-size: clamp(2.7rem, 6.6vw, 6rem);
  line-height: 0.99;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero__lead {
  display: block;
  color: var(--ink);
}

/* The italic drift steps off the grid and crosses the brass rule */
.hero__drift {
  display: block;
  margin-left: clamp(1.5rem, 7vw, 7rem);
  margin-top: 0.06em;
  font-style: italic;
  font-weight: 400;
  color: var(--champagne);
  letter-spacing: -0.012em;
}

/* The rule the type breaks: runs from the page edge in behind the drift */
.hero__stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(-1 * var(--pad));
  width: min(58%, 46rem);
  bottom: clamp(4.2rem, 11vw, 8.4rem);
  height: 1px;
  background: linear-gradient(90deg,
      rgba(201, 167, 106, 0.55) 55%, transparent);
}

.hero__aside {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-self: end;
  padding-left: clamp(1.2rem, 2vw, 2rem);
  padding-bottom: 0.4rem;
  border-left: 1px solid var(--hairline-strong);
}

.hero__aside p {
  margin: 0 0 0.9em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 34ch;
}

.hero__aside .hero__hint {
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
}

.hero__cue {
  margin: 1.4rem 0 0;
}

.hero__enter {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__enter::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  transition: width 260ms var(--ease);
}

.hero__enter:hover {
  color: var(--champagne);
}

.hero__enter:hover::before {
  width: 2.6rem;
  background: var(--champagne);
}

/* Title-card strip along the hero's lower edge */
.hero__strip {
  position: relative;
  z-index: 1;
  max-width: var(--frame);
  margin: clamp(2.6rem, 6vh, 4.6rem) auto 0;
  padding: 1.05rem 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.hero__strip span:first-child {
  color: var(--accent);
}

/* ---- Atelier: sticky rail + ledger ------------------------------------------- */

.atelier {
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(2.4rem, 5vh, 4rem) var(--pad) 1rem;
  display: grid;
  grid-template-columns: minmax(14.5rem, 17.5rem) minmax(0, 1fr);
  column-gap: clamp(2.4rem, 4.5vw, 5.5rem);
  align-items: start;
}

.collection {
  min-width: 0;
  border-left: 1px solid var(--hairline);
  padding-left: clamp(1.4rem, 2.5vw, 3rem);
}

/* ---- Filter rail: typographic switches ---------------------------------------- */

.filters {
  position: sticky;
  top: 1.6rem;
  max-height: calc(100vh - 3.2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.2rem 0.75rem 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 167, 106, 0.35) transparent;
  scroll-margin-top: 1.6rem;
}

.filters__title {
  margin: 0 0 1.7rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
}

.filters__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 1.9rem;
}

.filters__caption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}

.filters__caption::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.32rem 0;
  margin: 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 180ms ease;
}

.filter-btn::before {
  content: "";
  flex: none;
  width: 0;
  height: 1px;
  background: var(--brass);
  opacity: 0;
  transition: width 240ms var(--ease), opacity 240ms ease, background-color 240ms ease;
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn:hover::before {
  width: 0.7rem;
  opacity: 0.6;
}

.filter-btn.is-active {
  color: var(--champagne);
  font-weight: 500;
}

.filter-btn.is-active::before {
  width: 1.35rem;
  opacity: 1;
  box-shadow: 0 0 8px rgba(201, 167, 106, 0.55);
}

/* ---- Surprise: strike a match -------------------------------------------------- */

.btn {
  cursor: pointer;
  text-decoration: none;
}

.btn--surprise {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.95rem 1rem;
  background: transparent;
  border: 1px solid rgba(228, 100, 58, 0.62);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease,
    background-color 220ms ease, box-shadow 220ms ease;
}

/* Corner ticks, like a register mark on a printed proof */
.btn--surprise::before,
.btn--surprise::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--brass);
  transition: border-color 220ms ease;
}

.btn--surprise::before {
  top: -5px;
  left: -5px;
  border-width: 1px 0 0 1px;
}

.btn--surprise::after {
  bottom: -5px;
  right: -5px;
  border-width: 0 1px 1px 0;
}

.btn--surprise:hover,
.btn--surprise:focus-visible {
  background: var(--ember-hot);
  border-color: var(--ember-hot);
  color: var(--on-ember);
  box-shadow: 0 6px 34px rgba(228, 100, 58, 0.38);
}

.btn--surprise:hover::before,
.btn--surprise:hover::after {
  border-color: var(--champagne);
}

.btn--surprise:active {
  box-shadow: 0 2px 14px rgba(228, 100, 58, 0.3);
}

.filters__count {
  margin: 1rem 0 0;
  min-height: 1.5em;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
}

.filters__count:empty {
  min-height: 0;
  margin: 0;
}

.card-hidden-note {
  margin: 1.1rem 0 0;
  padding-left: 0.9rem;
  border-left: 1px solid var(--brass-line);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---- The ledger ------------------------------------------------------------------ */

.idea-grid {
  display: block;
}

.idea-card {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) minmax(9.5rem, 12.5rem);
  column-gap: clamp(1.1rem, 2.2vw, 2.4rem);
  align-items: start;
  padding: 1.45rem 0.9rem 1.5rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 5rem;
}

.idea-card:first-child {
  border-top: 1px solid var(--hairline);
}

.idea-card[hidden] {
  display: none;
}

/* Ink bleed: a warm panel seeps in from the left rule on hover */
.idea-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
      rgba(228, 100, 58, 0.10),
      rgba(36, 25, 16, 0.62) 34%,
      rgba(36, 25, 16, 0) 88%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.idea-card:hover::before,
.idea-card:focus-within::before {
  transform: scaleX(1);
}

.idea-card__no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: var(--brass);
  padding-top: 0.5rem;
  transition: color 240ms ease;
}

/* Tier gauge under the entry number: the ledger's little brass meter */
.idea-card__no::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--brass-line);
  width: 0.4rem;
}

.idea-card[data-price="under-25"] .idea-card__no::after {
  width: 0.85rem;
}

.idea-card[data-price="25-100"] .idea-card__no::after {
  width: 1.3rem;
}

.idea-card[data-price="splurge"] .idea-card__no::after {
  width: 1.75rem;
  background: var(--champagne);
}

.idea-card:hover .idea-card__no,
.idea-card:focus-within .idea-card__no {
  color: var(--accent);
}

.idea-card__body {
  min-width: 0;
}

.idea-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.idea-card__category {
  color: var(--muted);
}

.idea-card__price {
  color: var(--brass);
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
}

.idea-card__price::before {
  content: "";
  align-self: center;
  width: 3px;
  height: 3px;
  background: var(--brass-line);
}

.idea-card__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  line-height: 1.14;
  letter-spacing: -0.008em;
  transition: color 240ms ease;
}

/* Splurge entries sit wider on the page, like a plate in a lookbook */
.idea-card[data-price="splurge"] {
  padding-block: 1.9rem 2rem;
}

.idea-card[data-price="splurge"] .idea-card__title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.idea-card[data-price="splurge"] .idea-card__title::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--brass-line);
}

.idea-card__blurb {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.idea-card__meta {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  text-align: right;
}

.idea-card__meta li {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.idea-card__meta li:first-child {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--champagne);
  margin-bottom: 0.35rem;
}

.idea-card__meta li:first-child::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1px;
  margin: 0.5rem 0 0.1rem auto;
  background: var(--hairline-strong);
}

/* ---- Spotlight: the candle finds one row ------------------------------------------ */

.is-spotlight {
  z-index: 1;
}

.is-spotlight::before {
  transform: scaleX(1);
}

.is-spotlight {
  animation: spotlight-bloom 2600ms var(--ease) both;
}

.is-spotlight .idea-card__no {
  color: var(--accent);
}

.is-spotlight .idea-card__title {
  color: var(--champagne);
}

@keyframes spotlight-bloom {
  0% {
    box-shadow:
      inset 0 0 0 0 rgba(201, 167, 106, 0),
      0 0 0 rgba(228, 100, 58, 0);
    background-color: transparent;
  }
  45% {
    box-shadow:
      inset 0 0 0 1px rgba(201, 167, 106, 0.55),
      0 0 70px 6px rgba(228, 100, 58, 0.34);
    background-color: rgba(228, 100, 58, 0.07);
  }
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(201, 167, 106, 0.4),
      0 0 44px 2px rgba(228, 100, 58, 0.2);
    background-color: rgba(228, 100, 58, 0.045);
  }
}

/* The rest of the room dims while the candle holds */
#idea-grid:has(.is-spotlight) .idea-card:not(.is-spotlight) {
  opacity: 0.32;
  transition: opacity 900ms ease;
}

#idea-grid .idea-card {
  transition: opacity 500ms ease;
}

/* ---- FAQ: house notes --------------------------------------------------------------- */

.faq {
  max-width: var(--frame);
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  padding: clamp(2.8rem, 6vh, 4.5rem) var(--pad) clamp(3rem, 7vh, 5rem);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(13rem, 20rem) minmax(0, 1fr);
  column-gap: clamp(2.4rem, 5vw, 6rem);
  align-items: start;
}

.faq h2 {
  position: sticky;
  top: 2rem;
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.12;
}

.faq h2::before {
  content: "House notes";
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}

.faq__list {
  min-width: 0;
}

.faq__item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 1.3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.faq__item:first-child {
  padding-top: 0.4rem;
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--brass);
  padding-top: 0.42rem;
}

.faq__q {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.faq__a {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Hub pages ------------------------------------------------------------------------ */

.hub-intro {
  position: relative;
  overflow: hidden;
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--pad) 0.5rem;
}

/* Entry-count ghost numeral, echoing the hero folio */
.hub-intro__ghost {
  position: absolute;
  top: 0.4rem;
  right: var(--pad);
  z-index: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(9rem, 20vw, 17rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 167, 106, 0.24);
  user-select: none;
  pointer-events: none;
}

@supports not (-webkit-text-stroke: 1px black) {
  .hub-intro__ghost {
    color: rgba(201, 167, 106, 0.08);
  }
}

.hub-intro__folio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.1rem;
  margin: 0 0 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}

.hub-intro__folio span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 1.1rem;
  vertical-align: middle;
  background: var(--brass-line);
}

.hub-intro h1 {
  max-width: 18ch;
  margin: 0 0 1.4rem;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.hub-intro h1::after {
  content: "";
  display: block;
  width: clamp(4rem, 9vw, 8rem);
  height: 1px;
  margin-top: 1.6rem;
  background: linear-gradient(90deg, var(--brass-line), transparent);
}

.hub-intro__body {
  max-width: 62ch;
}

.hub-intro__body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hub-intro__body p:first-child {
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.6;
}

.hub-ideas {
  max-width: var(--frame);
  margin-inline: auto;
  padding: 0 var(--pad);
}

.hub-ideas h2 {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: clamp(2rem, 5vh, 3.4rem) 0 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-ideas h2::before,
.hub-ideas h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.hub-ideas .idea-grid {
  padding-top: 0.6rem;
}

.hub-ideas .idea-card:first-child {
  border-top: 0;
}

.hub-back {
  max-width: var(--frame);
  margin: 2.6rem auto 4.5rem;
  padding: 0 var(--pad);
  text-align: center;
}

.hub-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.hub-back a::before,
.hub-back a::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--brass-line);
  transition: width 260ms var(--ease), background-color 260ms ease;
}

.hub-back a:hover {
  color: var(--champagne);
}

.hub-back a:hover::before,
.hub-back a:hover::after {
  width: 2.4rem;
  background: var(--champagne);
}

/* ---- Prose pages (about, privacy, 404) --------------------------------------------------- */

.prose {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2.6rem, 7vh, 4.5rem) var(--pad) 4.5rem;
}

.prose h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.prose h1::after {
  content: "";
  display: block;
  width: 5rem;
  height: 1px;
  margin-top: 1.4rem;
  background: linear-gradient(90deg, var(--brass-line), transparent);
}

.prose h2 {
  margin-top: 2.4em;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.9em;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1.01rem;
  line-height: 1.78;
}

.prose > p:first-of-type {
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.6;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--brass);
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 1px solid var(--brass);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.6em 0;
}

/* ---- Footer: end credits -------------------------------------------------------------------- */

.site-footer {
  margin-top: 3rem;
  padding: 0 var(--pad) 3.4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 30%);
  text-align: center;
}

.site-footer::before {
  content: "";
  display: block;
  max-width: var(--frame);
  margin: 0 auto 3.6rem;
  border-top: 1px solid var(--hairline-strong);
  padding-top: 3px;
  border-bottom: 1px solid var(--hairline);
}

.site-footer__masthead {
  margin-bottom: 2.6rem;
}

.site-footer__name {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-footer__tagline {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer__nav {
  display: grid;
  justify-items: center;
  gap: 1.6rem;
}

.credits__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.credits__role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
}

.credits__names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.6rem;
}

.credits__names a {
  color: var(--ink);
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 160ms ease;
}

.credits__names a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--accent);
}

.site-footer__fin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin: 3.2rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--brass);
}

.site-footer__fin::before,
.site-footer__fin::after {
  content: "";
  width: 3.4rem;
  height: 1px;
  background: var(--brass-line);
}

/* ---- Load reveal: one orchestrated sequence, home only ---------------------------------------- */

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-rise {
  from {
    opacity: 0;
    transform: translateY(0.32em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-home .hero__eyebrow {
  animation: settle 600ms var(--ease) 80ms backwards;
}

.page-home .hero__display {
  animation: title-rise 850ms var(--ease) 240ms backwards;
}

.page-home .hero__stage::before {
  transform-origin: left;
  animation: draw 900ms var(--ease) 560ms backwards;
}

.page-home .hero__ghost {
  animation: appear 1100ms ease 700ms backwards;
}

.page-home .hero__aside {
  animation: settle 700ms var(--ease) 640ms backwards;
}

.page-home .hero__strip {
  animation: appear 800ms ease 880ms backwards;
}

.page-home .filters {
  animation: appear 700ms ease 980ms backwards;
}

.page-home .idea-card:nth-child(-n + 7) {
  animation: settle 560ms var(--ease) backwards;
}

.page-home .idea-card:nth-child(1) { animation-delay: 1040ms; }
.page-home .idea-card:nth-child(2) { animation-delay: 1100ms; }
.page-home .idea-card:nth-child(3) { animation-delay: 1160ms; }
.page-home .idea-card:nth-child(4) { animation-delay: 1220ms; }
.page-home .idea-card:nth-child(5) { animation-delay: 1280ms; }
.page-home .idea-card:nth-child(6) { animation-delay: 1340ms; }
.page-home .idea-card:nth-child(7) { animation-delay: 1400ms; }

/* ---- Reduced motion ------------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .is-spotlight {
    animation: none;
    box-shadow:
      inset 0 0 0 1px rgba(201, 167, 106, 0.45),
      0 0 44px 2px rgba(228, 100, 58, 0.22);
    background-color: rgba(228, 100, 58, 0.05);
  }
}

/* ---- Tablet and below ------------------------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero__stage {
    grid-template-columns: 1fr;
  }

  .hero__aside {
    grid-column: 1;
    margin-top: 2.2rem;
    padding-left: 1.4rem;
  }

  .hero__aside p {
    max-width: 52ch;
  }

  .hero__stage::before {
    bottom: auto;
    top: 46%;
  }

  /* Rail becomes a strip above the ledger */
  .atelier {
    grid-template-columns: 1fr;
    row-gap: 2.2rem;
  }

  .filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 0 1.8rem;
    border-bottom: 1px solid var(--hairline);
  }

  .filters__group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 1.5rem;
    margin-bottom: 1.05rem;
  }

  .filters__caption {
    flex: 0 0 100%;
    margin-bottom: 0.4rem;
  }

  .filters__caption::after {
    display: none;
  }

  .filter-btn {
    padding: 0.3rem 0;
  }

  .btn--surprise {
    display: inline-block;
    width: auto;
    padding: 0.85rem 2.2rem;
    margin-top: 0.9rem;
  }

  .filters__count {
    display: inline-block;
    margin: 0 0 0 1.4rem;
    vertical-align: middle;
  }

  .collection {
    border-left: 0;
    padding-left: 0;
  }

  .faq {
    grid-template-columns: 1fr;
    row-gap: 1.8rem;
  }

  .faq h2 {
    position: static;
  }
}

/* ---- Phones ----------------------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
    gap: 0.1rem 1.15rem;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero__eyebrow {
    letter-spacing: 0.18em;
    gap: 1rem;
  }

  .hero__ghost {
    font-size: clamp(7.5rem, 34vw, 10rem);
    top: -0.14em;
    right: -0.06em;
  }

  .hero__display {
    font-size: clamp(2.1rem, 9.6vw, 3rem);
  }

  .hero__drift {
    margin-left: 0.9rem;
  }

  .hub-intro__ghost {
    font-size: clamp(6rem, 26vw, 8rem);
  }

  .hero__strip {
    justify-content: flex-start;
    gap: 0.35rem 1.6rem;
    font-size: 0.62rem;
  }

  .idea-card {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 1.25rem 0.2rem 1.35rem 0;
  }

  .idea-card__no {
    font-size: 0.68rem;
    padding-top: 0.42rem;
  }

  .idea-card__meta {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.2rem 1.1rem;
    padding-top: 0.7rem;
    text-align: left;
  }

  .idea-card__meta li:first-child {
    margin-bottom: 0;
  }

  .idea-card__meta li:first-child::after {
    display: none;
  }

  .idea-card[data-price="splurge"] {
    padding-block: 1.5rem 1.6rem;
  }

  .faq__item {
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.9rem;
  }

  .credits__names {
    gap: 0.3rem 1.1rem;
  }
}
