/*
 * components.css -- Music with Max design-system layer (Session 2)
 * Every reusable piece, built in isolation and proven on /styleguide.html.
 * Loads AFTER base.css and tokens.css. base.css already seeds the foundation
 * (reset, type scale, grain, container) and the core button (.btn / .btn--primary,
 * focus ring, motion tokens); this file EXTENDS that -- it never restarts it.
 * Token-driven only: colors/space/motion come from CSS custom properties; the
 * lone literals are warm-ink shadows mixed from --ink (PRD 6: black is warm ink).
 * References design_prd.md sections in comments.
 */

/* ============================================================= *
 * 1. Buttons -- additional variants (PRD 12.1)
 *    Base .btn + .btn--primary live in base.css section 9. Here we
 *    add secondary, ghost/link, and the disabled state. All keep the
 *    >=44px target and the 3px focus ring inherited from base.
 * ============================================================= */

/* Secondary: transparent, 1px teal border, teal text; hover fills teal 12%. */
.btn--secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn--secondary:hover {
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
  border-color: var(--teal);
  transform: translateY(-1px);
}
.btn--secondary:active { transform: none; }

/* Ghost / link: teal text, no fill/border, underline grows from left (PRD 11.3).
   Minimal inline padding so the growing underline tracks the label width. */
.btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--teal);
  padding-inline: var(--space-2);
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 160ms var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--teal-deep);
  background-size: 100% 2px;
}

/* Disabled: dimmed, no lift, no pointer. Pairs with [disabled]/[aria-disabled]. */
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================= *
 * 2. Eyebrows & labels (PRD 7.2 / 17.5)
 *    Base .eyebrow (teal) lives in base.css. Add the ember variant
 *    and the "* REC" indicator -- a Loud-tier green dot paired with
 *    text so color is never the sole carrier of meaning (PRD 14).
 * ============================================================= */
.eyebrow--ember { color: var(--ember); }

.rec {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
}
.rec::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--loud-green);
  box-shadow: 0 0 6px color-mix(in srgb, var(--loud-green) 70%, transparent);
}

/* ============================================================= *
 * 3. Section title (PRD 7.1 / 8.1)
 *    Big Shoulders poster title. The --bleed modifier lets it over-run
 *    the left gutter like a printed poster (grid-breaking, PRD 8.1).
 * ============================================================= */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--bone);
  max-width: 18ch;
}
.section-title--bleed {
  margin-left: calc(-1 * clamp(8px, 3vw, 28px));
}

/* ============================================================= *
 * 4. Cards / "sleeves" (PRD 12.2 + depth-via-light PRD 9.6)
 *    Ink-2 surface, hairline, 14px radius, top-edge bone inner glow,
 *    long low warm-ink ambient shadow (depth via light, not a box).
 *    Hover: 1px lift + border tints toward teal (~30%).
 * ============================================================= */
.sleeve {
  position: relative;
  background: var(--ink-2);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow:
    inset 0 1px 0 0 color-mix(in srgb, var(--bone) 4%, transparent),
    0 18px 40px -24px color-mix(in srgb, var(--ink) 80%, transparent);
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.sleeve:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--ink-3));
  box-shadow:
    inset 0 1px 0 0 color-mix(in srgb, var(--bone) 6%, transparent),
    0 24px 48px -22px color-mix(in srgb, var(--ink) 85%, transparent);
}
.sleeve__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.15;
  color: var(--bone);
}
.sleeve__body {
  margin-top: var(--space-3);
  color: var(--bone-dim);
  max-width: 40ch;
}

/* Reusable depth-via-light utility (PRD 9.6) for any raised surface. */
.depth {
  box-shadow:
    inset 0 1px 0 0 color-mix(in srgb, var(--bone) 4%, transparent),
    0 18px 40px -24px color-mix(in srgb, var(--ink) 80%, transparent);
}

/* ============================================================= *
 * 5. Texture kit
 * ============================================================= */

/* 5.1 Halftone dots (PRD 9.2) -- subtle printer's-dot field BEHIND content.
   Apply to a container; the ::before paints a low-opacity dot pattern. */
.halftone {
  position: relative;
  isolation: isolate;
}
.halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--bone-dim) 1px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.05;
  pointer-events: none;
}

/* 5.2 Registration / mis-print hover (PRD 9.3) -- a CMYK channel offset on key
   headlines: teal pulls left, ember pulls right. Static offset on hover/focus,
   no keyframes -> reduced-motion safe (the transition collapses to instant). */
.misprint {
  transition: text-shadow var(--dur) var(--ease-out);
}
.misprint:hover,
.misprint:focus-visible {
  text-shadow:
    -1.5px 0 0 color-mix(in srgb, var(--teal) 80%, transparent),
     1.5px 0 0 color-mix(in srgb, var(--ember) 80%, transparent);
}

/* 5.3 Tape strip (PRD 9.5) -- a single slightly-rotated washi/gaffer strip used
   to "tape down" a card or photo. The lone place a Loud-tier color may appear.
   Soft-torn short edges via a mask gradient; faint diagonal sheen for realism. */
.tape {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 85%, transparent);
  background:
    linear-gradient(115deg,
      color-mix(in srgb, var(--bone) 22%, transparent) 0%,
      transparent 38%),
    color-mix(in srgb, var(--loud-yellow) 44%, transparent);
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--ink) 75%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0,
    #000 7px, #000 calc(100% - 7px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0,
    #000 7px, #000 calc(100% - 7px), transparent 100%);
}
/* Green variant -- the only other Loud color the tape may carry (PRD 9.5). */
.tape--green {
  background:
    linear-gradient(115deg,
      color-mix(in srgb, var(--bone) 22%, transparent) 0%,
      transparent 38%),
    color-mix(in srgb, var(--loud-green) 34%, transparent);
}

/* ============================================================= *
 * 6. Motion primitives (PRD 11.3)
 * ============================================================= */

/* 6.1 Scroll-reveal: fade + 16px rise, once. The hidden initial state is gated
   on .js, so with JavaScript disabled the content is visible (no-js fallback).
   js/main.js adds .is-visible via IntersectionObserver. Reduced motion below
   reveals instantly with no transform. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 6.2 Link underline-grow (PRD 11.3): teal underline grows from the left, 160ms.
   No layout shift -- the rule is painted as a sized background image. */
.link-underline {
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 2px;
  transition: background-size 160ms var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.link-underline:hover,
.link-underline:focus-visible {
  color: var(--teal-deep);
  background-size: 100% 2px;
}

/* ============================================================= *
 * 7. Reduced motion (PRD 11.4) -- component-level guarantees.
 *    tokens.css already neutralizes durations globally; this makes
 *    the intent explicit and ensures nothing can stick hidden.
 * ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sleeve:hover,
  .btn--secondary:hover { transform: none; }
}

/* ============================================================= *
 * 8. Layout Grids (PRD 8.1 / 13)
 *    Responsive layouts for What You Get and Showcase sections.
 * ============================================================= */
.what-you-get {
  padding-block: var(--section-y);
  border-bottom: var(--hairline);
}
.what-you-get__subline {
  margin-bottom: var(--space-7);
}
.what-you-get__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}

.showcase {
  padding-block: var(--section-y);
  border-bottom: var(--hairline);
}
.showcase__subline {
  margin-bottom: var(--space-7);
}
.showcase__layout {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}

@media (min-width: 641px) {
  .what-you-get__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .what-you-get__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .showcase__layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

/* ============================================================= *
 * 9. Vinyl Sleeves Gallery (PRD 10 / 11.3 / 13.3)
 *    3D hover-lift + rotating record slide-out effect.
 * ============================================================= */
.showcase__gallery-wrapper {
  width: 100%;
}
.showcase__gallery {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 480px) {
  .showcase__gallery {
    grid-template-columns: 1fr;
  }
}

.vinyl-sleeve {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.vinyl-sleeve__sleeve {
  position: relative;
  z-index: 2;
  width: 90%;
  height: 90%;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--ink-2);
  border: var(--hairline);
  box-shadow:
    0 12px 28px -12px color-mix(in srgb, var(--ink) 90%, transparent),
    inset 0 1px 0 0 color-mix(in srgb, var(--bone) 4%, transparent);
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.vinyl-sleeve__sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(12%) contrast(102%);
  display: block;
}

/* Vinyl disc sliding out */
.vinyl-sleeve__disc {
  position: absolute;
  z-index: 1;
  right: 5%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #050505 0%, #151515 20%, #050505 40%, #151515 60%, #050505 80%, #222 100%),
    repeating-radial-gradient(circle, transparent 0, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  border: 1px solid #111;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.8);
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Vinyl center label */
.vinyl-sleeve__disc::after {
  content: '';
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #111;
}

/* Special blue container shadow for Example Albums (PRD 10) */
.vinyl-sleeve--blue .vinyl-sleeve__sleeve {
  border-color: color-mix(in srgb, var(--loud-blue) 40%, var(--ink-3));
  box-shadow:
    0 16px 36px -12px color-mix(in srgb, var(--loud-blue) 35%, transparent),
    inset 0 1px 0 0 color-mix(in srgb, var(--bone) 6%, transparent);
}
.vinyl-sleeve--blue .vinyl-sleeve__disc::after {
  background: var(--loud-blue);
}

/* Hover effects */
.vinyl-sleeve:hover .vinyl-sleeve__sleeve {
  transform: translateY(-4px) rotateY(-8deg);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--ink-3));
  box-shadow:
    0 18px 36px -12px color-mix(in srgb, var(--ink) 95%, transparent),
    inset 0 1px 0 0 color-mix(in srgb, var(--bone) 6%, transparent);
}
.vinyl-sleeve:hover .vinyl-sleeve__disc {
  transform: translateX(20%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .vinyl-sleeve:hover .vinyl-sleeve__sleeve { transform: none; }
  .vinyl-sleeve:hover .vinyl-sleeve__disc { transform: none; }
}

/* ============================================================= *
 * 10. Now Playing Video (PRD 12.5 / 15)
 *     Custom lazy-load youtube player framed in ink-2.
 * ============================================================= */
.showcase__video-wrapper {
  width: 100%;
}
.now-playing {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.now-playing__header {
  margin-bottom: var(--space-4);
}
.now-playing__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--bone);
  text-transform: uppercase;
  margin-top: var(--space-1);
}
.now-playing__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-media);
  overflow: hidden;
  border: var(--hairline);
  background: var(--ink);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}
.now-playing__play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.now-playing__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.now-playing__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) brightness(82%);
  transition: transform var(--dur) var(--ease-out),
              filter var(--dur) var(--ease-out);
}
.now-playing__play-btn:hover .now-playing__poster img {
  transform: scale(1.02);
  filter: grayscale(0%) brightness(92%);
}
.now-playing__play-icon {
  position: relative;
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: background-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.now-playing__play-btn:hover .now-playing__play-icon {
  background: var(--ember-deep);
  transform: scale(1.08);
}
.now-playing__play-icon svg {
  margin-left: 4px; /* optical center */
}
.now-playing__footer {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.now-playing__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.now-playing__channel {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  color: var(--bone-dim);
}

/* ============================================================= *
 * 11. Tribute Section (PRD 12.7 / 13.5)
 *     Inverts color scheme to light-paper aesthetic.
 * ============================================================= */
.tribute {
  background-color: var(--paper);
  color: var(--paper-ink);
  padding-block: var(--section-y);
  position: relative;
}

.tribute ::selection {
  background-color: var(--teal);
  color: var(--paper-ink);
}

.tribute__title {
  color: var(--paper-ink);
  margin-bottom: var(--space-2);
}
.tribute__subtitle {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-lead);
  color: color-mix(in srgb, var(--paper-ink) 70%, transparent);
  margin-bottom: var(--space-7);
}

.tribute__content-layout {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .tribute__content-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

.tribute__portrait-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.tribute__portrait {
  display: block;
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--paper-ink) 50%, transparent);
}

.tribute__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.tribute__tape {
  top: -12px;
  left: 10%;
  transform: rotate(-6deg);
  z-index: 10;
}

.tribute__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-h2);
  line-height: 1.3;
  color: var(--ember-deep);
  margin-block: var(--space-6);
  border-left: 3px solid var(--teal);
  padding-left: var(--space-4);
  max-width: 320px;
  margin-inline: auto;
}

.tribute__body {
  max-width: 62ch;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.85;
}

.tribute__body p {
  margin-bottom: var(--space-5);
  color: color-mix(in srgb, var(--paper-ink) 88%, transparent);
}

.tribute__body p strong {
  font-weight: 700;
  color: var(--paper-ink);
}

.tribute__signature {
  margin-top: var(--space-7);
  border-top: 1px solid color-mix(in srgb, var(--paper-ink) 12%, transparent);
  padding-top: var(--space-5);
}

.tribute__written {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--paper-ink) 60%, transparent);
  margin-bottom: var(--space-1);
}

.tribute__author {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-h2);
  color: var(--paper-ink);
}

/* ============================================================= *
 * 12. Intake Section & Panel (PRD 12.4 / 13.4)
 *     Framing the Paperform aimusic embed in an ink-2 sleeve.
 * ============================================================= */
.intake {
  padding-block: var(--section-y);
  border-bottom: var(--hairline);
}

.intake__panel {
  position: relative;
  background: var(--ink-2);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: clamp(var(--space-5), 5vw, var(--space-8));
  box-shadow:
    inset 0 1px 0 0 color-mix(in srgb, var(--bone) 4%, transparent),
    0 24px 64px -32px color-mix(in srgb, var(--ink) 90%, transparent);
  max-width: 800px;
  margin-inline: auto;
  margin-top: var(--space-6);
}

.intake__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.intake__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--bone);
  text-transform: uppercase;
}

.intake__reassurance {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember);
  margin-top: var(--space-2);
}

.intake__tape {
  top: -16px;
  right: 8%;
  transform: rotate(3deg);
  z-index: 10;
}

/* Paperform iframe/embed styling constraints. */
.intake__embed-container {
  min-height: 500px;
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: var(--radius-media);
  border: 1px dashed var(--ink-3);
  padding: var(--space-4);
  position: relative;
}

/* Custom styled placeholder/loader inside the embed container */
.intake__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--bone-dim);
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out);
}

/* Spinner anim */
.intake__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink-3);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.paperform-loaded .intake__placeholder {
  opacity: 0;
}

/* ============================================================= *
 * 13. Nav & Header (PRD 12.3 / 13)
 * ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: color-mix(in srgb, var(--ink) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--hairline);
  padding-block: var(--space-3);
  transition: background-color var(--dur) var(--ease-out);
}

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

.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link--youtube {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn--nav {
  min-height: 38px;
  padding: var(--space-2) var(--space-5);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }
  .site-header__right {
    display: none;
  }
}

.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: var(--hairline);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.mobile-cta-bar__btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 641px) {
  .mobile-cta-bar {
    display: none;
  }
}

/* ============================================================= *
 * 14. Footer (PRD 12.6)
 * ============================================================= */
.site-footer {
  margin-top: var(--section-y);
  padding-block: var(--space-8) var(--space-7);
  border-top: var(--hairline);
  background: var(--ink-2);
  color: var(--bone-dim);
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6) var(--space-5);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
  border-bottom: var(--hairline);
}

@media (min-width: 641px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.site-footer__logo {
  margin-bottom: var(--space-2);
}

.site-footer__tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 32ch;
  color: var(--bone-dim);
}

.site-footer__email {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
}

.site-footer__links-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__title {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

.site-footer__links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__links-list a {
  color: var(--bone-dim);
  font-size: 0.9rem;
  display: inline-block;
}

.site-footer__links-list a:hover {
  color: var(--teal);
}

.site-footer__cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.site-footer__cta-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 35ch;
  margin-bottom: var(--space-2);
}

.site-footer__cta-hint {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember);
  margin-top: calc(-1 * var(--space-1));
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  color: color-mix(in srgb, var(--bone-dim) 50%, transparent);
}

.site-footer__made {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
}

.site-footer__copy {
  font-size: 0.75rem;
}

