/* ============================================================
   Lunaire — Today’s Sky
   Shared editorial shell with the Daily Horoscope prototype:
   ruled ivory paper, quiet watercolor, fine gold linework, and
   a generous reading-first composition rather than a dashboard.
   ============================================================ */

:root {
  --paper-ivory: #faf7f1;
  --warm-cream: #f7f3ea;
  --powder-blue: #dceaf4;
  --misty-sky: #b7d4e8;
  --washed-indigo: #6b83a6;
  --nav-indigo: #5a6f90;
  --midnight-ink: #1f2a44;
  --sea-glass: #a7cfc9;
  --blush-cloud: #f6d7d5;
  --antique-starlight: #e9cfa3;
  --gold-deep: #b7925f;
  --rose: #9e526a;
  --retrograde-rose: #9c496b;
  --ink-dim: rgba(31, 42, 68, 0.66);
  --border-blue: rgba(107, 131, 166, 0.24);
  --border-gold: rgba(183, 146, 95, 0.42);
  --font-display: "Cormorant Garamond", Cormorant, Baskerville,
    "Iowan Old Style", "Times New Roman", serif;
  --font-body: "IBM Plex Mono", "Azeret Mono", "Courier New", monospace;
  --page-width: 1120px;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper-ivory);
  color: var(--midnight-ink);
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  background: var(--paper-ivory);
  color: var(--midnight-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 18px));
  transition: transform 160ms ease;
}

.skip-link:focus {
  outline: 2px solid var(--nav-indigo);
  outline-offset: 3px;
  transform: translateY(0);
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.lunaire-page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  isolation: isolate;
  background:
    linear-gradient(rgba(31, 42, 68, 0.018) 1px, transparent 1px),
    var(--paper-ivory);
  background-size: 100% 32px;
}

.lunaire-page::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

.lunaire-page > header,
.lunaire-page > main,
.lunaire-page > footer {
  position: relative;
  z-index: 2;
}

.bg-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.wash-a {
  top: 280px;
  right: -18vw;
  width: min(62vw, 820px);
  height: min(52vw, 680px);
  background:
    radial-gradient(ellipse at 42% 40%, rgba(183, 212, 232, 0.48), transparent 50%),
    radial-gradient(ellipse at 65% 68%, rgba(107, 131, 166, 0.13), transparent 57%);
  opacity: 0.68;
  transform: rotate(-9deg);
}

.wash-b {
  top: 1280px;
  left: -22vw;
  width: min(68vw, 920px);
  height: min(48vw, 640px);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(167, 207, 201, 0.2), transparent 48%),
    radial-gradient(ellipse at 64% 60%, rgba(183, 212, 232, 0.4), transparent 60%);
  opacity: 0.62;
  transform: rotate(14deg);
}

.corner-art {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.corner-art-top-left {
  top: 0;
  left: 0;
  width: clamp(220px, 32vw, 420px);
}

.corner-art-bottom-right {
  right: 0;
  bottom: 0;
  width: clamp(170px, 26vw, 340px);
}

/* ---------- Shared site header ---------- */

.site-header {
  position: relative;
  width: min(calc(100% - 64px), 1100px);
  margin: 0 auto;
  padding: 34px 0 0;
  text-align: center;
}

.instagram-link {
  position: absolute;
  top: 28px;
  right: 0;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.instagram-icon {
  width: 29px;
  height: 29px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 180ms ease;
}

.instagram-link:hover {
  background: rgba(220, 234, 244, 0.46);
  transform: translateY(-2px);
}

.instagram-link:hover .instagram-icon {
  opacity: 1;
}

.brand-link {
  display: block;
  width: min(270px, 56vw);
  margin: 0 auto;
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: grid;
  width: 100%;
  margin: -18px auto 0;
  padding: 6px 0 15px;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  white-space: nowrap;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: relative;
  color: var(--nav-indigo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-item[aria-disabled="true"] {
  cursor: default;
}

.nav-item.is-current::after {
  position: absolute;
  right: 18%;
  bottom: -7px;
  left: 18%;
  height: 1px;
  background: rgba(183, 146, 95, 0.62);
  content: "";
}

.nav-separator {
  color: var(--gold-deep);
  font-size: 0.55rem;
  opacity: 0.78;
}

.nav-rule {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  color: var(--gold-deep);
  font-size: 0.54rem;
  opacity: 0.72;
}

.nav-rule::before,
.nav-rule::after {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 146, 95, 0.62) 18%,
    rgba(183, 146, 95, 0.62) 82%,
    transparent
  );
  content: "";
  flex: 1;
}

.nav-rule::after {
  transform: scaleX(-1);
}

.instagram-link:focus-visible,
.brand-link:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--nav-indigo);
  outline-offset: 4px;
}

/* ---------- Editorial stage ---------- */

main {
  width: 100%;
}

.sky-stage {
  width: min(calc(100% - 64px), var(--page-width));
  margin: 58px auto 0;
  text-align: center;
  animation: stage-arrival 600ms ease both;
}

@keyframes stage-arrival {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 34px;
  color: var(--washed-indigo);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sky-timestamp {
  margin: 0 auto 34px;
  color: var(--washed-indigo);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.65rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.1;
  text-align: center;
}

.sky-timestamp__time {
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Live zodiac wheel ---------- */

.wheel-wrap {
  position: relative;
  display: block;
  width: min(calc(100% + 26px), 620px);
  margin: 0;
  margin-left: max(-13px, calc((100% - 620px) / 2));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wheel-wrap::after {
  content: none;
}

.wheel-wash-art {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 108%;
  max-width: none;
  height: 108%;
  object-fit: contain;
  opacity: 0.53;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(
    circle closest-side at center,
    #000 0 86%,
    rgba(0, 0, 0, 0.92) 90%,
    rgba(0, 0, 0, 0.55) 95%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle closest-side at center,
    #000 0 86%,
    rgba(0, 0, 0, 0.92) 90%,
    rgba(0, 0, 0, 0.55) 95%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
  transform: translate(-50%, -50%);
  user-select: none;
}

.zodiac-wheel {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.zodiac-wheel text {
  font-family: var(--font-body);
  font-variant-emoji: text;
}

.wheel-frame-art {
  filter: drop-shadow(0 1px 1px rgba(31, 42, 68, 0.06));
}

.wheel-sign-label {
  pointer-events: none;
}

.wheel-sign-swash {
  mix-blend-mode: multiply;
}

.wheel-sign-glyph {
  font-family: var(--font-body) !important;
  font-size: 24px;
  font-weight: 500;
}

.wheel-sign-name {
  font-family: var(--font-display) !important;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.body-marker {
  cursor: pointer;
}

.body-marker:focus {
  outline: none;
}

.body-orb-art {
  filter: drop-shadow(0 1.5px 2px rgba(31, 42, 68, 0.18));
  transition: filter 180ms ease, opacity 180ms ease;
}

.body-retrograde-ring {
  stroke: var(--retrograde-rose);
  stroke-opacity: 0.72;
}

.body-marker:hover .body-orb-art,
.body-marker:focus-visible .body-orb-art,
.body-marker.is-pinned .body-orb-art {
  filter: drop-shadow(0 3px 5px rgba(31, 42, 68, 0.26));
}

.body-marker:focus-visible .body-retrograde-ring,
.body-marker:hover .body-retrograde-ring,
.body-marker.is-pinned .body-retrograde-ring {
  filter: drop-shadow(0 0 4px rgba(156, 73, 107, 0.18));
}

.wheel-tooltip,
.tile-tooltip {
  z-index: 10;
  border: 1px solid rgba(183, 146, 95, 0.58);
  border-radius: 2px;
  background: rgba(220, 234, 244, 0.97);
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.14);
  color: var(--midnight-ink);
  font-family: var(--font-body);
  pointer-events: none;
  transition: opacity 120ms ease;
}

.wheel-tooltip {
  position: absolute;
  padding: 9px 13px;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: nowrap;
  transform: translate(-50%, -100%);
}

.wheel-tooltip::after,
.tile-tooltip::after {
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  width: 11px;
  height: 11px;
  background: var(--powder-blue);
  content: "";
}

.wheel-tooltip::after {
  bottom: -6px;
  border-right: 1px solid rgba(183, 146, 95, 0.58);
  border-bottom: 1px solid rgba(183, 146, 95, 0.58);
  transform: translateX(-50%) rotate(45deg);
}

.wheel-tooltip strong {
  color: var(--nav-indigo);
  font-weight: 600;
  text-transform: capitalize;
}

.wheel-tooltip .retro {
  color: var(--retrograde-rose);
}

.wheel-hint {
  margin: 20px 0 0;
  color: var(--ink-dim);
  font-size: 0.69rem;
  font-weight: 300;
  letter-spacing: 0.035em;
  transition: opacity 400ms ease;
}

.wheel-hint.is-faded {
  opacity: 0;
}

/* ---------- Illustrated transitions ---------- */

.section-divider {
  display: grid;
  height: clamp(86px, 9vw, 112px);
  place-items: center;
  pointer-events: none;
}

.section-divider img {
  width: min(282px, 44vw);
  height: auto;
  opacity: 0.86;
}

/* ---------- Live data bookplates ---------- */

.tiles-wrap {
  position: relative;
  width: 100%;
}

.sky-tiles {
  display: flex;
  width: 100%;
  margin: 0;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.tile-row {
  display: flex;
  width: 100%;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: nowrap;
  justify-content: center;
}

.tile {
  position: relative;
  display: flex;
  min-width: 78px;
  max-width: 168px;
  min-height: 174px;
  padding: 18px 12px 16px;
  align-items: center;
  border: 1px solid rgba(183, 146, 95, 0.4);
  border-radius: 2px;
  background: rgba(250, 247, 241, 0.79);
  box-shadow:
    0 12px 28px rgba(31, 42, 68, 0.055),
    inset 0 0 25px rgba(183, 212, 232, 0.09);
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  appearance: none;
  flex: 1 1 132px;
  flex-direction: column;
  transition:
    border-color 180ms ease,
    box-shadow 200ms ease,
    transform 220ms ease;
}

.tile::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(183, 146, 95, 0.16);
  content: "";
  pointer-events: none;
}

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

.tile:focus {
  outline: none;
}

.tile:hover,
.tile.is-pinned {
  border-color: rgba(183, 146, 95, 0.68);
  box-shadow:
    0 16px 34px rgba(31, 42, 68, 0.095),
    inset 0 0 28px rgba(183, 212, 232, 0.14);
  transform: translateY(-3px);
}

.tile:focus-visible {
  outline: 2px solid var(--midnight-ink);
  outline-offset: 4px;
}

.tile-icon {
  display: grid;
  width: 100%;
  min-height: 78px;
  place-items: center;
  line-height: 0;
}

.tile-badge {
  display: block;
  width: 84px;
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.tile-badge text {
  font-family: var(--font-body);
  font-variant-emoji: text;
}

.tile-sign-glyph {
  font-weight: 600;
}

/* The artwork below is embedded as <image> geometry inside each inline SVG.
   Its live x/y/width/height attributes carry the composition, so CSS must not
   override those child dimensions; only the root .tile-badge scales. */
.tile-orb-art,
.tile-motif-art,
.tile-aspect-art {
  pointer-events: none;
}

.tile-orb-art {
  filter: drop-shadow(0 1.5px 2px rgba(31, 42, 68, 0.18));
}

/* The Moon is assembled from two texture layers and a live phase mask. Shadow
   the finished badge once so that treatment does not double around its edge. */
.tile-badge-moon {
  filter: drop-shadow(0 1.5px 2px rgba(31, 42, 68, 0.16));
}

.tile-label {
  margin: 9px 0 0;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
}

.tile-sub {
  margin: 7px 0 0;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: clamp(0.56rem, 0.75vw, 0.65rem);
  font-weight: 300;
  letter-spacing: 0.015em;
  line-height: 1.42;
}

.tile-tooltip {
  position: absolute;
  width: min(320px, calc(100vw - 40px));
  padding: 12px 15px;
  font-size: 0.75rem;
  line-height: 1.58;
  text-align: left;
  white-space: normal;
  transform: translate(-50%, 0);
}

.tile-tooltip::after {
  top: -6px;
  border-top: 1px solid rgba(183, 146, 95, 0.58);
  border-left: 1px solid rgba(183, 146, 95, 0.58);
  transform: translateX(-50%) rotate(45deg);
}

.tile-tooltip.flip-up {
  transform: translate(-50%, -100%);
}

.tile-tooltip.flip-up::after {
  top: auto;
  bottom: -6px;
  border-top: 0;
  border-right: 1px solid rgba(183, 146, 95, 0.58);
  border-bottom: 1px solid rgba(183, 146, 95, 0.58);
  border-left: 0;
}

/* ---------- Generated reading ---------- */

.reading-column {
  width: min(100%, 720px);
  margin: 0 auto;
}

.reading-column:focus {
  outline: none;
}

.sky-heading {
  margin: 0;
  color: var(--washed-indigo);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.sky-copy {
  margin-top: 30px;
  text-align: left;
}

.sky-copy p {
  margin: 0 0 20px;
  color: var(--midnight-ink);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.82;
}

.sky-copy p:last-child {
  margin-bottom: 0;
}

.sky-error {
  margin: 30px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(180, 103, 122, 0.24);
  background: rgba(246, 215, 213, 0.22);
  color: var(--rose);
  font-size: 0.82rem;
  line-height: 1.6;
}

.sky-file-help {
  border-color: var(--border-blue);
  background: rgba(220, 234, 244, 0.35);
  color: var(--midnight-ink);
}

.sky-file-help a {
  color: var(--nav-indigo);
  font-weight: 500;
  text-underline-offset: 0.22em;
}

.sky-file-help a:hover,
.sky-file-help a:focus-visible {
  color: var(--midnight-ink);
}

/* ---------- Disclaimer and monogram ---------- */

.site-footer {
  width: min(calc(100% - 56px), 720px);
  margin: 50px auto 0;
  padding: 0 0 56px;
  color: var(--ink-dim);
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.65;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer .site-footer-method {
  margin: 0 auto 50px;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.site-footer-method a {
  color: var(--nav-indigo);
  text-decoration-color: rgba(183, 146, 95, 0.68);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.site-footer-method a:hover {
  color: var(--midnight-ink);
  text-decoration-color: var(--gold-deep);
}

.site-footer-method a:focus-visible {
  border-radius: 1px;
  outline: 2px solid var(--nav-indigo);
  outline-offset: 4px;
}

.site-footer-method__arrow {
  display: inline-block;
  margin-left: 0.38em;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  transform: translateY(-0.03em);
  transition: transform 160ms ease;
}

.site-footer-method a:hover .site-footer-method__arrow,
.site-footer-method a:focus-visible .site-footer-method__arrow {
  transform: translate(0.14em, -0.03em);
}

.footer-mark {
  width: min(96px, 22vw);
  height: auto;
  margin: 26px auto 0;
  opacity: 0.85;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  body {
    font-size: 14px;
    line-height: 1.65;
  }

  .site-header {
    width: 100%;
    padding-top: 18px;
  }

  .instagram-link {
    top: 4px;
    right: 8px;
  }

  .instagram-icon {
    width: 30px;
    height: 30px;
  }

  .corner-art-top-left {
    left: -10px;
    width: clamp(110px, 42vw, 156px);
  }

  .corner-art-bottom-right {
    right: -4px;
    width: clamp(78px, 30vw, 112px);
  }

  .primary-nav {
    margin-top: -14px;
    padding: 6px 18px 14px;
    grid-auto-flow: row;
    grid-template-columns: max-content max-content max-content;
    grid-template-rows: repeat(2, auto);
    column-gap: 13px;
    row-gap: 7px;
    justify-content: center;
    overflow: visible;
  }

  .nav-item {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    justify-self: center;
  }

  .primary-nav > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .primary-nav > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav > :nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .primary-nav > :nth-child(4) {
    display: none;
  }

  .primary-nav > :nth-child(5) {
    grid-column: 1;
    grid-row: 2;
  }

  .primary-nav > :nth-child(6) {
    grid-column: 2;
    grid-row: 2;
  }

  .primary-nav > :nth-child(7) {
    grid-column: 3;
    grid-row: 2;
  }

  /* Five public destinations: two links above, three below on phones. */
  .primary-nav--tarot {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0;
  }

  .primary-nav--tarot > :nth-child(4) {
    display: block;
    flex-basis: 100%;
    height: 0;
    overflow: hidden;
  }

  .primary-nav--tarot .nav-item {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-rule {
    width: calc(100% - 34px);
    margin: 0 auto;
  }

  .sky-stage {
    width: min(calc(100% - 34px), var(--page-width));
    margin-top: 44px;
  }

  .sky-timestamp {
    margin-bottom: 30px;
    font-size: clamp(1.9rem, 9vw, 2.2rem);
  }

  .eyebrow {
    margin-bottom: 28px;
    font-size: 0.68rem;
  }

  .wheel-sign-name {
    font-size: 16px;
  }

  .wheel-hint {
    margin-top: 16px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .section-divider {
    height: 76px;
  }

  .section-divider img {
    width: min(230px, 70vw);
  }

  .sky-heading {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .sky-copy {
    margin-top: 24px;
  }

  .sky-copy p {
    font-size: 0.96rem;
    line-height: 1.76;
  }

  .site-footer {
    width: min(calc(100% - 40px), 720px);
    margin-top: 50px;
    padding-bottom: 34px;
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .sky-tiles {
    gap: 18px;
  }

  .tile-row {
    width: 100%;
    gap: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 4px 12px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .tile-row::-webkit-scrollbar {
    display: none;
  }

  .tile {
    min-width: 0;
    max-width: none;
    min-height: 156px;
    padding: 14px 8px 13px;
    flex: 0 0 clamp(96px, 27vw, 108px);
    scroll-snap-align: start;
  }

  .tile:hover,
  .tile.is-pinned {
    transform: translateY(-2px);
  }

  .tile-icon {
    min-height: 67px;
  }

  .tile-badge {
    width: 74px;
    height: auto;
  }

  .tile-label {
    margin-top: 7px;
    font-size: 0.96rem;
    line-height: 1.04;
  }

  .tile-sub {
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .tile-tooltip {
    width: min(280px, calc(100vw - 36px));
    padding: 10px 13px;
    font-size: 0.78rem;
    line-height: 1.52;
  }

  .wheel-tooltip {
    max-width: 200px;
    padding: 8px 11px;
    font-size: 0.78rem;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .sky-timestamp {
    font-size: clamp(1.7rem, 8vw, 1.95rem);
    line-height: 1.05;
  }
}

@media (max-width: 360px) {
  .nav-item {
    font-size: 0.78rem;
    letter-spacing: 0.095em;
  }

  .primary-nav {
    column-gap: 10px;
  }

  .sky-stage {
    margin-top: 42px;
  }

  .tile {
    flex-basis: 96px;
  }

  .sky-heading {
    font-size: 2rem;
  }
}

@media (hover: none) {
  .tile:hover {
    transform: none;
  }
}

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

  .sky-stage {
    animation: none;
  }

  .body-orb-art,
  .tile,
  .wheel-hint,
  .wheel-tooltip,
  .tile-tooltip,
  .site-footer-method a,
  .site-footer-method__arrow {
    transition-duration: 1ms;
  }

  .tile:hover,
  .tile.is-pinned {
    transform: none;
  }
}
