/* ==========================================================================
   FlirtAtlas.ai — Coming Soon page
   Figma file: 64Py7EqOYyVKRMA6g1vw2a
   Target frames (each treated as an explicit target):
     mobile-coming-soon .............. 390px   (1:3465)
     tablet-coming-soon .............. 1000px  (1:12371)
     coming-soon-page ................ 1440px  (1:3372)
     wide-screen-coming-soon-page .... 3165px  (8:32613)  -> content capped 1600
   Approach: mobile-first, min-width media queries at 768 / 1025 / 1441.
   Every colour, size, radius and spacing value is taken from the Figma file
   (design tokens / node properties), not estimated.
   ========================================================================== */


/* ==========================================================================
   1. Reset / normalize
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }

img, svg, picture, video, canvas {
  display: block;
  max-width: 100%;
}

img { border-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

a { color: inherit; text-decoration: none; }

/* Safari/iOS: stop long affiliate URLs and mono strings blowing out layout */
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }


/* ==========================================================================
   2. Design tokens  (Figma local variables)
   ========================================================================== */

:root {
  /* Colour ---------------------------------------------------------------- */
  --bg:              #08090D;   /* Background/Default, Backgrounds/Background */
  --surface:         #0F1117;   /* Background/Surface                         */
  --surface-raised:  #161822;   /* Background/Surface Raised                  */
  --border:          #1E2030;   /* Border/Default                            */
  --hero-bg:         #0B0D1A;   /* hero-section-background fill (8:12018)     */

  --text-primary:    #F0F0F5;   /* Text/Primary    */
  --text-secondary:  #9498AD;   /* Text/Secondary  */
  --text-tertiary:   #6B6F85;   /* Text/Tertiary   */

  --amber:           #F5A623;   /* Brand/Amber   */
  --amber-10:        rgba(245, 166, 35, 0.1);   /* Brand/Amber 10% */
  --violet:          #8B5CF6;   /* Brand/Violet  */

  /* Radius ---------------------------------------------------------------- */
  --radius-6:    6px;      /* radius/6    */
  --radius-10:   10px;     /* radius/10   */
  --radius-full: 9999px;   /* radius/full */

  /* Type ------------------------------------------------------------------ */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
               Consolas, monospace;

  /* Fluid type. Endpoints are exact Figma values; the middle interpolates.
     h1:   28px @390 (mobile Heading/H2) -> 56px @768+ (Display/Large)
     lede: 14px @390 (Body/Small)        -> 18px @768+ (Body/Large)
     h2:   24px @390 (Heading/H3)        -> 28px @768+ (Heading/H2)
     h3:   20px @390 (Heading/H5)        -> 22px @768+ (Heading/H4)          */
  --fs-h1:   clamp(28px, calc(-0.89px + 7.4074vw), 56px);
  --fs-lede: clamp(14px, calc(9.873px + 1.0582vw), 18px);
  --fs-h2:   clamp(24px, calc(19.873px + 1.0582vw), 28px);
  --fs-h3:   clamp(20px, calc(17.937px + 0.5291vw), 22px);

  /* Layout ---------------------------------------------------------------- */
  --content-max:       1600px;   /* max-width on hero/features/partners inner */
  --gutter:            16px;     /* mobile "scroll-content" padding-inline    */
  --section-gap:       36px;     /* mobile "scroll-content" itemSpacing       */
  --card-gap:          12px;     /* mobile "platforms-grid" itemSpacing       */
  --partner-card-min:  134.4px;  /* mobile "platform-card" width (3:18208)    */
}

/* The sponsor card minimum steps up at 600px rather than 768px. Holding it at
   the mobile 134.4px all the way to 768 leaves a 752-767px band where the row
   happens to fit again, so the carousel would flip back to a flat row and then
   straight back to a carousel at 768 -- mode churn on resize. Stepping early
   makes the flat/carousel decision monotonic: carousel below 1000px, flat at
   1000px and above, which is exactly where the Figma frames put it. */
@media (min-width: 600px) {
  :root { --partner-card-min: 155.2px; }   /* tablet "platform-card" (1:12422) */
}

@media (min-width: 768px) {
  :root {
    --gutter:   64px;
    --card-gap: 24px;
  }
}


/* ==========================================================================
   3. Base
   ========================================================================== */

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;                     /* 16px base for rem math */
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;                  /* iOS Safari viewport fix (vh fallback above) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global focus treatment — Brand/Amber, visible on every dark surface */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 10;
  transform: translateY(-150%);
  padding: 12px 16px;                  /* keeps the tap target >= 44px */
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-6);
  color: var(--text-primary);
  font-size: 14px;
  transition: transform 120ms ease-out;
}
.skip-link:focus { transform: translateY(12px); }

/* Shared: 48px mascot + 125x20 wordmark, 3px gap (Figma "logo" 1:3459) */
.logo { display: inline-flex; }
.logo img {
  width: 176px;
  height: 48px;
}


/* ==========================================================================
   4. Navbar   (Figma: "Navbar" 1:3373 / "mobile-nav" 1:8989)
   Height 64px desktop, 56px mobile. The "navbar-offset-spacer" (1:3374, 64px;
   tablet 1:12373, 24px) is expressed as the header's bottom padding.
   ========================================================================== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  .navbar {
    height: 64px;
    box-sizing: content-box;
    padding-bottom: 24px;              /* navbar-offset-spacer, tablet */
  }
}

/* 1302px is the width at which the desktop frame's own discover-section
   geometry fits: 780 (text) + 60 (gap) + 334 (illustration) = 1174 of inner
   width, + 2 x 64 padding. Below it the tablet frame is the correct target, so
   the whole desktop frame -- navbar offset, illustration and nebula glow --
   switches at the same point rather than splitting into a hybrid. */
@media (min-width: 1302px) {
  .navbar { padding-bottom: 64px; }    /* navbar-offset-spacer, desktop */
}


/* ==========================================================================
   5. Page shell
   Mobile mirrors "scroll-content" (1:8994): 24/16/40 padding, 36px gap.
   From 768px each section owns its padding and the hero goes full-bleed.
   ========================================================================== */

main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: 24px var(--gutter) 40px;
}

@media (min-width: 768px) {
  main {
    display: block;
    padding: 0;
  }
}


/* ==========================================================================
   6. Hero   (Figma: "hero-section-background" 8:12018 > "hero-section" 1:3375)
   ========================================================================== */

.hero { background-color: var(--hero-bg); }

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

/* "hero-left" 1:3376 / mobile "hero-text-block" 1:8996 */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 20px 36px;
}

/* "hero-text" 1:3379 */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* "spec-badge" 1:3377 — Mono SemiBold/Small, Brand/Amber 10% on Brand/Amber */
.spec-badge {
  align-self: flex-start;
  padding: 4px 10px;
  background-color: var(--amber-10);
  border: 1px solid var(--amber);
  border-radius: var(--radius-full);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  line-height: normal;
  letter-spacing: 0.5px;
}

.hero__title {
  font-weight: 800;                    /* Display/Large — ExtraBold */
  font-size: var(--fs-h1);
  line-height: 1.2;                    /* mobile Heading/H2 */
  letter-spacing: 0;
  text-transform: capitalize;
  color: var(--text-primary);
}

.hero__lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* "FlirtAtlas Hero - Clean" 1:3384 / mobile "hero-image" 1:9004.
   The image is absolutely positioned (as in Figma: inset-0 + object-cover) so
   its 1:1 intrinsic ratio cannot drive the hero's height. */
.hero__media {
  position: relative;
  height: 460px;                       /* Figma mobile value; also the pre-aspect-ratio fallback */
}

/* The source art is square (1024x1024) with the subject's head in the top
   ~27%. With a fixed 460px height the box turns landscape as soon as it is
   wider than 460px (viewport >= ~492px) and `cover` then crops vertically from
   both edges, decapitating her between ~492px and 767px. Tracking the image's
   own 1:1 ratio in the single-column range removes the vertical crop entirely;
   min-height keeps the 390px frame at its exact 460px, and max-height stops the
   hero growing without bound as it approaches the tablet layout. */
@supports (aspect-ratio: 1 / 1) {
  .hero__media {
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 460px;
    max-height: 700px;
  }
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Belt-and-braces: any residual vertical crop is taken off the bottom, so
     the head can never be cut at an in-between width. */
  object-position: 50% 0;
}

@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: var(--content-max);
    margin-inline: auto;
    overflow: hidden;                  /* hero-section clipsContent: true */
  }

  /* A 50% basis (not 0) is required: with box-sizing:border-box a zero basis
     is floored at the element's own padding, which skews the split by 120px.
     50% + the min/max clamps reproduce Figma exactly — 500/500 at 1000px,
     680/600 at 1440px and at 1600px+ — and stay fluid in between. */
  .hero__content {
    flex: 1 1 50%;
    min-width: 500px;
    max-width: 680px;
    gap: 40px;
    padding: 120px 80px 120px 40px;
  }

  .hero__text { gap: 20px; }

  .hero__title {
    line-height: 1.05;                 /* Display/Large */
    letter-spacing: -2px;
  }

  /* Two-column hero: the media column is sized by the flex line, so the
     single-column ratio clamps are released and the Figma crop restored. */
  .hero__media {
    flex: 1 1 50%;
    min-width: 0;
    max-width: 600px;
    align-self: stretch;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
  }
  .hero__media img { object-position: 50% 50%; }
}


/* ==========================================================================
   7. Section header   (Figma: "section-header" 17:78945 / 8:14866)
   ========================================================================== */

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;                            /* mobile "Frame" 1:9006 */
}

/* "eyebrow" 17:78946 — Mono SemiBold/Default */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  line-height: normal;
}
.eyebrow__num   { color: var(--amber); }
.eyebrow__label { color: var(--violet); }
.eyebrow__rule {
  flex: 0 0 auto;
  width: 16px;
  height: 1px;
  background-color: var(--amber);      /* "Line" 17:78948 stroke */
}

.section-header__title {
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.2;
  text-transform: capitalize;
  color: var(--text-primary);
}

.section-header__sub {
  font-size: 14px;                     /* Body/Small */
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 1px rule below the header ("Line" 17:78951 / 8:14873, Border/Default).
   Absent from the mobile features header, present everywhere else. */
.partners .section-header,
.features .section-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.features .section-header {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (min-width: 768px) {
  .section-header { gap: 8px; }
  .features .section-header {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
}


/* ==========================================================================
   8. Features   (Figma: "features-section-background" 17:78943
                        > "features-section" 17:78944)
   ========================================================================== */

.features__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;                           /* mobile "features" 1:9005 */
  position: relative;
  isolation: isolate;                  /* keeps the nebula glow behind content */
}

/* "features-grid" 17:78952 / mobile "features-list" 1:9012 */
.features__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

/* "feature-card" 17:78953 */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-10);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-6);
}
.feature-card__icon img { width: 16px; height: 16px; }

.feature-card__title {
  font-weight: 700;                    /* Label Bold/Large */
  font-size: 16px;
  line-height: normal;
  color: var(--text-primary);
}

.feature-card__body {
  font-size: 13px;                     /* Body/XSmall */
  line-height: 1.4;
  color: var(--text-secondary);
}

/* "discover-section" 17:78968 */
.discover {
  display: flex;
  flex-direction: column;
}
.discover__text {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 780px;
}
.discover__title {
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  text-transform: capitalize;
  color: var(--text-primary);
}
.discover__text p {
  font-size: 14px;                     /* Body/Small */
  line-height: 1.5;
  color: var(--text-secondary);
}
/* Figma uses an empty line between the two paragraphs (14px * 1.5) */
.discover__text p + p { margin-top: 21px; }

/* "connection-illustration" 17:78972 — decorative, desktop frame only.
   Declared inside the 1025px query so the PNG is never fetched on
   mobile/tablet. The exported bitmap is larger than the 334x334 node because
   glows and hairlines spill outside it; absoluteRenderBounds gives the exact
   offset (dx -226.28, 632.67 x 429.48). */
.discover__illustration { display: none; }

@media (min-width: 768px) {
  .features { padding: 40px var(--gutter); }
  .features__inner {
    gap: 24px;
    max-width: var(--content-max);
    margin-inline: auto;
    align-items: center;
  }
  .features__inner > * { width: 100%; }

  .features__grid {
    flex-direction: row;
    gap: 24px;
  }
  .feature-card {
    flex: 1 1 0;
    min-width: 0;
  }

  .discover { align-items: center; }
  .discover__text { width: 100%; }
}

/* 768px-1301px: the body column tracks 90% of its container rather than the
   design's fixed 780px. The 780px cap has to be released as well, otherwise it
   would clamp the result for any container wider than ~867px and the 90% would
   never take effect. The upper bound is 1301.98px so it butts exactly against
   the 1302px desktop query with no fractional-width gap between them. */
@media (min-width: 768px) and (max-width: 1301.98px) {
  .discover__text {
    width: 90%;
    max-width: none;
  }
}

/* Desktop frame only — see the 1302px note above. Gating this at 1025px made
   the illustration appear before there was room for it, shrinking the body
   column from its designed 780px to ~510px at ~1030px wide. */
@media (min-width: 1302px) {
  .discover {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
  }
  .discover__text {
    flex: 1 1 0;
    min-width: 0;
  }

  .discover__illustration {
    display: block;
    position: relative;
    flex: 0 0 auto;
    width: 334px;
    height: 334px;
    /* Figma bakes the page background (#08090D) into the export, so the
       bitmap is opaque. Clipping to the node box keeps it from covering the
       body copy; because the baked backdrop is exactly --bg the edge is
       invisible. Cost: the faint hairlines that spill outside the frame. */
    overflow: hidden;
  }
  .discover__illustration::before {
    content: "";
    position: absolute;
    left: -226.28px;
    top: 0;
    width: 632.67px;
    height: 429.48px;
    background: url("assets/connection-illustration.png") no-repeat 0 0 / 100% 100%;
    pointer-events: none;
  }

  /* "purple-nebula-glow" 17:79028 — radial gradient + 18.47px layer blur */
  .features__inner::before {
    content: "";
    position: absolute;
    left: -283.5px;
    top: 344px;
    z-index: -1;
    width: 438.72px;
    height: 438.72px;
    border-radius: 50%;
    background: radial-gradient(circle,
                  rgba(139, 92, 246, 0.165) 0%,
                  rgba(59, 130, 246, 0.082) 50%,
                  rgba(0, 0, 0, 0) 100%);
    filter: blur(18.47px);
    pointer-events: none;
  }
}


/* ==========================================================================
   9. Partners   (Figma: "partners-section-background" 1:3412
                        > "partners-section" 8:14865)
   The "star-background" instance (1:3413) is a decorative starfield bitmap
   exported with its 4px layer blur baked in.
   ========================================================================== */

/* The starfield is full-bleed in every frame (on mobile the instance is 1440px
   wide at x=-525), so the section breaks out of the page gutter while its
   content stays inset by it. */
.partners {
  margin-inline: calc(var(--gutter) * -1);
  padding: 20px var(--gutter);         /* mobile "partners-section" 1:9031 */
  background: url("assets/star-background.png") no-repeat center center / cover;
}

.partners__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .partners {
    margin-inline: 0;                  /* main has no gutter to break out of */
    padding: 40px var(--gutter) 60px;
  }
  .partners__inner {
    max-width: var(--content-max);
    margin-inline: auto;
  }
}


/* --------------------------------------------------------------------------
   9a. Sponsor carousel
   Default (and no-JS) state is a scroll-snapping row: each card is held at
   --partner-card-min so the track genuinely overflows when the items do not
   fit. script.js measures that overflow and adds .is-flat (all items on one
   line, cards stretch to fill) or .is-carousel (paged, with arrows).
   -------------------------------------------------------------------------- */

.carousel { position: relative; }

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;               /* Firefox */
  -ms-overflow-style: none;            /* legacy Edge */
}
.carousel__viewport::-webkit-scrollbar { display: none; }  /* Chrome/Safari */

/* "platforms-grid" 8:14874 / 3:18207 */
.carousel__track {
  display: flex;
  gap: var(--card-gap);
  margin: 0;
}

/* "platform-card" 3:18208 (mobile) / 8:14875 (desktop).
   An explicit flex-basis is required: with `auto` the card would be sized by
   the logo's intrinsic bitmap width (up to 762px), which would report a false
   overflow and force the carousel on at every width. */
.platform-card {
  flex: 0 0 var(--partner-card-min);
  min-width: 0;
  scroll-snap-align: start;
}

.platform-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 10px;
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 5px;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}

.platform-card__logo {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
/* "secrets-logo" 8:14907 fills the card height rather than its width */
.platform-card__logo--secrets {
  width: auto;
  height: 100%;
}

/* Not specified in Figma (no interactive variants in the file) — kept to the
   existing token palette. */
.platform-card__link:hover,
.platform-card__link:focus-visible {
  border-color: var(--violet);
  background-color: var(--surface-raised);
}

/* Flat row: every sponsor fits on one line, cards share the width equally */
.carousel.is-flat .carousel__viewport {
  overflow-x: hidden;
  scroll-snap-type: none;
}
.carousel.is-flat .platform-card { flex: 1 1 0; }

/* Carousel controls */
.carousel__nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;                         /* >= 44x44 tap target */
  height: 44px;
  place-items: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-10);
  color: var(--text-secondary);
  transition: color 140ms ease-out, border-color 140ms ease-out;
}
.carousel__nav svg { width: 20px; height: 20px; }
.carousel__nav--prev { left: 0; }
.carousel__nav--next { right: 0; }

.carousel__nav:hover {
  color: var(--text-primary);
  border-color: var(--violet);
}
.carousel__nav:active { background-color: var(--surface-raised); }
.carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
  color: var(--text-tertiary);
  border-color: var(--border);
}

/* Arrows only where there is a fine pointer; touch relies on swiping.
   They are overlaid rather than given reserved space, so the track keeps the
   exact same box in both modes -- switching between flat row and carousel
   causes no layout shift at all, and the row stays flush with the section
   edges as in the design. */
@media (hover: hover) and (pointer: fine) {
  .carousel.is-carousel .carousel__nav { display: grid; }
}

/* From 768px the section has a 64px gutter, so the arrows can sit half
   outside the track instead of covering a logo. */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .carousel__nav--prev { left: -22px; }
  .carousel__nav--next { right: -22px; }
}

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

@media (min-width: 768px) {
  .platform-card__link {
    height: 120px;
    padding: 20px;
    border-width: 1px;
    border-radius: var(--radius-10);
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-card__link,
  .carousel__nav,
  .skip-link { transition: none; }
}


/* ==========================================================================
   10. Footer   (Figma: "footer" 1:3457 > "section" 1:3458)
   ========================================================================== */

.footer {
  padding: 30px var(--gutter);
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;                     /* prevents the overlap the 390px frame has */
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: var(--content-max);
  margin-inline: auto;
}

/* "links" 1:3460 */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 150px;
}
.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.footer__links-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;                     /* Mono SemiBold/Default */
  line-height: normal;
  color: var(--text-tertiary);         /* Text/Tertiary — see build notes */
}

/* Body/XSmall. The metrics sit on the <li> so the list item's own line box
   cannot inflate the 18px row height inherited from the body strut. */
.footer__links li {
  font-size: 13px;
  line-height: 1.4;
}
.footer__links a {
  display: block;
  color: var(--text-secondary);
  transition: color 140ms ease-out;
}
.footer__links a:hover { color: var(--text-primary); }

/* Comfortable touch targets (~44px) without changing the visual rhythm */
@media (pointer: coarse) {
  .footer__links a {
    padding-block: 13px;
    margin-block: -13px;
  }
}
