/* Self-hosted fonts */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/league-gothic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/league-gothic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Meyer reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Design tokens */
:root {
  --bg-deep: #070b14;
  --surface: rgba(12, 18, 32, 0.72);
  --surface-raised: rgba(18, 26, 44, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #f4f6fb;
  --text-secondary: rgba(244, 246, 251, 0.68);
  --text-muted: rgba(244, 246, 251, 0.45);
  --accent: #6b9fff;
  --accent-hover: #8ab4ff;
  --accent-glow: rgba(107, 159, 255, 0.35);
  --gold: #e8c872;
  --gold-glow: rgba(232, 200, 114, 0.35);
  --gold-soft: rgba(232, 200, 114, 0.12);
  --success: #5dd9a8;
  --success-bg: rgba(93, 217, 168, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "League Gothic", sans-serif;
  --font-heading: "Outfit", system-ui, sans-serif;
  --site-header-offset: 96px;
  --site-header-gap: 16px;
  --site-header-max-width: 1400px;
  --scrollbar-size: 7px;
  --scrollbar-track: rgba(255, 255, 255, 0.03);
  --scrollbar-thumb: rgba(107, 159, 255, 0.38);
  --scrollbar-thumb-hover: rgba(232, 200, 114, 0.72);
}

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

html {
  scroll-behavior: auto !important;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  background-color: var(--bg-deep);
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--text-primary);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

/* Starfield - shared (preloader + site) */
.mw-stars {
  pointer-events: none;
  overflow: hidden;
}

.site-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
}

body.is-loading .site-stars {
  visibility: hidden;
}

.mw-stars::before,
.mw-stars::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: transparent;
  will-change: opacity;
}

.mw-stars::before {
  box-shadow:
    11vw 18vh 0 0 rgba(255, 255, 255, 0.85),
    24vw 9vh 0 0 rgba(255, 255, 255, 0.6),
    38vw 72vh 0 0 rgba(200, 220, 255, 0.75),
    52vw 28vh 0 0 rgba(255, 255, 255, 0.55),
    67vw 14vh 0 0 rgba(255, 255, 255, 0.7),
    79vw 58vh 0 0 rgba(232, 200, 114, 0.5),
    88vw 82vh 0 0 rgba(255, 255, 255, 0.5),
    7vw 63vh 0 0 rgba(255, 255, 255, 0.65),
    31vw 44vh 0 0 rgba(200, 220, 255, 0.55),
    61vw 91vh 0 0 rgba(255, 255, 255, 0.45),
    93vw 36vh 0 0 rgba(255, 255, 255, 0.6),
    46vw 6vh 0 0 rgba(255, 255, 255, 0.5);
  animation: preloader-twinkle 3.2s ease-in-out infinite alternate;
}

.mw-stars::after {
  width: 1px;
  height: 1px;
  box-shadow:
    5vw 12vh 0 0 rgba(255, 255, 255, 0.7),
    16vw 31vh 0 0 rgba(255, 255, 255, 0.45),
    19vw 78vh 0 0 rgba(255, 255, 255, 0.4),
    28vw 52vh 0 0 rgba(200, 220, 255, 0.5),
    34vw 19vh 0 0 rgba(255, 255, 255, 0.35),
    41vw 66vh 0 0 rgba(255, 255, 255, 0.55),
    49vw 41vh 0 0 rgba(255, 255, 255, 0.3),
    55vw 8vh 0 0 rgba(232, 200, 114, 0.4),
    58vw 87vh 0 0 rgba(255, 255, 255, 0.38),
    63vw 24vh 0 0 rgba(255, 255, 255, 0.42),
    72vw 49vh 0 0 rgba(255, 255, 255, 0.32),
    76vw 71vh 0 0 rgba(200, 220, 255, 0.45),
    82vw 16vh 0 0 rgba(255, 255, 255, 0.5),
    86vw 94vh 0 0 rgba(255, 255, 255, 0.35),
    91vw 54vh 0 0 rgba(255, 255, 255, 0.4),
    9vw 47vh 0 0 rgba(255, 255, 255, 0.38),
    14vw 89vh 0 0 rgba(255, 255, 255, 0.3),
    22vw 6vh 0 0 rgba(255, 255, 255, 0.55),
    44vw 33vh 0 0 rgba(255, 255, 255, 0.28),
    69vw 38vh 0 0 rgba(255, 255, 255, 0.36);
  animation: preloader-twinkle-slow 5.5s ease-in-out infinite alternate-reverse;
}

@media (prefers-reduced-motion: reduce) {
  .mw-stars::before,
  .mw-stars::after {
    animation: none;
    opacity: 0.65;
  }
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .scroll-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/* Scrollbar */
html::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(107, 159, 255, 0.55) 0%,
    rgba(232, 200, 114, 0.42) 100%
  );
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(138, 180, 255, 0.85) 0%,
    var(--scrollbar-thumb-hover) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 14px rgba(107, 159, 255, 0.22);
}

html::-webkit-scrollbar-corner {
  background: transparent;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(107, 159, 255, 0.1), transparent 65%),
    var(--bg-deep);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.exit-fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Exit / enter handoff - stars + gradient only */
.preloader.is-minimal .preloader-inner {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: preloader-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.solar-system-orbit,
.preloader-orbit {
  position: relative;
  width: 108px;
  height: 108px;
}

.solar-system-orbit--large {
  width: 144px;
  height: 144px;
}

.solar-system-orbit--large .orbit-track-2 {
  inset: 19px;
}

.solar-system-orbit--large .orbit-track-3 {
  inset: 37px;
}

.solar-system-orbit--large .orbit-dot {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  top: -4px;
}

.solar-system-orbit--large .orbit-track-2 .orbit-dot {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  top: -3px;
}

.solar-system-orbit--large .orbit-track-3 .orbit-dot {
  width: 4px;
  height: 4px;
  margin-left: -2px;
  top: -2px;
}

.solar-system-orbit--large .orbit-core {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
}

.orbit-track {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(107, 159, 255, 0.18);
  border-radius: 50%;
  animation: preloader-spin linear infinite;
}

.orbit-track-1 {
  animation-duration: 5s;
}

.orbit-track-2 {
  inset: 14px;
  border-color: rgba(232, 200, 114, 0.15);
  animation-duration: 7s;
  animation-direction: reverse;
}

.orbit-track-3 {
  inset: 28px;
  animation-duration: 9s;
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 200, 114, 0.7);
}

.orbit-track-2 .orbit-dot {
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  top: -3px;
  background: var(--accent-hover);
  box-shadow: 0 0 10px var(--accent-glow);
}

.orbit-track-3 .orbit-dot {
  width: 4px;
  height: 4px;
  margin-left: -2px;
  top: -2px;
  background: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9ec0ff, var(--accent) 55%, #3a65cc);
  box-shadow: 0 0 24px var(--accent-glow);
  animation: preloader-core-pulse 2.2s ease-in-out infinite;
}

.preloader-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: preloader-tagline-pulse 2s ease-in-out infinite;
}

.preloader-progress {
  width: 160px;
  height: 2px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  transition: opacity 0.18s ease;
}

.preloader-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 12px var(--accent-glow);
  animation: preloader-progress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes preloader-core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

@keyframes preloader-twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@keyframes preloader-twinkle-slow {
  from { opacity: 0.3; }
  to { opacity: 0.75; }
}

@keyframes preloader-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-tagline-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes preloader-progress {
  0% { width: 0; }
  70% { width: 82%; }
  100% { width: 100%; }
}

/* 404 - lost in orbit */
body.error-404-page main {
  padding-top: 0;
}

.error-404 {
  position: relative;
  padding: 32px 24px 72px;
  overflow: visible;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(107, 159, 255, 0.12), transparent 62%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(232, 200, 114, 0.06), transparent 55%),
    var(--bg-deep);
}

.error-404-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 68% 12%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 52% 62%, rgba(200, 220, 255, 0.65), transparent),
    radial-gradient(1px 1px at 22% 72%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 88% 48%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 40% 38%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 78% 88%, rgba(232, 200, 114, 0.4), transparent);
  opacity: 0.55;
  animation: preloader-twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.error-404-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: min(100%, 640px);
  margin-inline: auto;
  text-align: center;
}

.error-404-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  flex-shrink: 0;
  overflow: visible;
}

.error-404-code {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(9rem, 28vw, 14rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.055);
  text-shadow: 0 0 60px rgba(107, 159, 255, 0.12);
  user-select: none;
  pointer-events: none;
}

.error-404-orbit {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 28px rgba(107, 159, 255, 0.18));
}

.error-404-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 36rem;
}

.error-404-content .eyebrow {
  margin: 0;
  font-size: 0.8125rem;
}

.error-404-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4vw + 1rem, 4rem);
  line-height: 1.06;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c8d2de;
  text-shadow: 0 0 48px rgba(107, 159, 255, 0.14);
}

.error-404-lead {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.error-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.error-404-btn--primary {
  color: var(--bg-deep);
  background: linear-gradient(180deg, #f0d88a, var(--gold));
  border: 1px solid rgba(232, 200, 114, 0.5);
  box-shadow: 0 0 24px rgba(232, 200, 114, 0.2);
}

.error-404-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(232, 200, 114, 0.35);
}

.error-404-btn--ghost {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-404-btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 159, 255, 0.28);
}

.error-404-search {
  width: 100%;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.error-404-search-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.error-404-search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.error-404-search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.error-404-search-input::placeholder {
  color: var(--text-muted);
}

.error-404-search-input:focus {
  border-color: rgba(107, 159, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(107, 159, 255, 0.12);
}

.error-404-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(107, 159, 255, 0.22), rgba(107, 159, 255, 0.1));
  border: 1px solid rgba(107, 159, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.error-404-search-submit:hover {
  border-color: rgba(107, 159, 255, 0.55);
  background: linear-gradient(180deg, rgba(107, 159, 255, 0.32), rgba(107, 159, 255, 0.16));
}

@media (min-width: 900px) {
  .error-404 {
    padding-inline: 48px;
  }

  .error-404-inner {
    width: min(100%, 640px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-404-stars {
    animation: none;
  }
}

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

/* Typography */
h1,
.league-gothic {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

h2, h3, h4, h5, h6,
.eyebrow,
.logo-text,
.visibility-heading,
.status-value {
  font-family: var(--font-heading);
}

body > header nav a,
.logo-tagline,
.btn-ghost,
.header-search-input,
.preloader-tagline,
.short-description,
.proof-text,
.rating-value,
.finder-subtitle,
.field-label,
.status-label,
.status-rating,
.visibility-window,
.visibility-peak,
.input-wrap input,
#milky-way-finder .body button,
.latest-articles-intro,
.dark-sky-map-intro,
.map-attribution,
.article-excerpt,
.article-meta,
.article-category,
.articles-view-all,
.article-deck,
.article-byline-meta,
.article-breadcrumb,
.article-prose,
.article-tag,
.article-author-card p {
  font-family: var(--font-body);
}

.article-card-body h3,
.article-related-header h2,
.article-author-card h3,
.article-toc h2,
.article-share h2 {
  font-family: var(--font-heading);
}

.site-footer-tagline,
.site-footer-col a,
.site-footer-copy,
.site-footer-note,
.site-footer-legal a,
.site-footer-newsletter-copy p,
.site-footer-newsletter-form input,
.site-footer-newsletter-form button {
  font-family: var(--font-body);
}

.site-footer-col h3,
.site-footer-newsletter-copy h3 {
  font-family: var(--font-heading);
}

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

/* Site header */
body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px clamp(16px, 2vw, 40px) 0;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

body > header.is-scrolled {
  padding: 8px clamp(16px, 2vw, 40px) 8px;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 32px rgba(0, 0, 0, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body > header.is-scrolled #wrapper {
  padding: 6px 14px 6px 18px;
}

body > header.is-scrolled nav ul {
  padding-bottom: 10px;
}

#wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 28px);
  max-width: var(--site-header-max-width);
  margin: 0 auto;
  padding: 12px 14px 12px 18px;
  transition: padding 0.35s ease;
}

/* Logo */
#logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.logo-mark .logo-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: filter 0.25s ease;
}

#logo:hover .logo-mark .logo-img,
.site-footer-logo:hover .logo-mark .logo-img {
  filter: drop-shadow(0 0 6px rgba(232, 200, 114, 0.55)) drop-shadow(0 0 14px rgba(232, 200, 114, 0.25));
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-text--compact {
  display: none;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav - stellar rail */
body > header nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

body > header nav ul {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 14px;
  transition: padding 0.35s ease;
}

body > header nav ul::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12) 15%,
    rgba(255, 255, 255, 0.12) 85%,
    transparent
  );
}

body > header nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.78125rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

body > header nav a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.nav-indicator-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  filter: drop-shadow(0 0 8px rgba(232, 200, 114, 0.65));
}

.nav-indicator-track::before,
.nav-indicator-track::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: calc(50% - 11px);
  height: 2px;
}

.nav-indicator-track::before {
  left: 0;
  background: linear-gradient(90deg, rgba(232, 200, 114, 0.2), var(--gold));
  clip-path: polygon(
    0 50%,
    14px 0,
    100% 0,
    100% 100%,
    14px 100%
  );
}

.nav-indicator-track::after {
  right: 0;
  background: linear-gradient(90deg, var(--gold), rgba(232, 200, 114, 0.2));
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 50%,
    calc(100% - 14px) 100%,
    0 100%
  );
}

.nav-indicator-icon {
  position: absolute;
  left: 50%;
  bottom: -3px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--gold);
  transform: translateX(-50%);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.nav-indicator-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.25;
  filter: drop-shadow(0 0 8px rgba(232, 200, 114, 0.75));
}

.nav-indicator-icon.is-morphing {
  transform: translateX(-50%) scale(0.45);
  opacity: 0;
}

body > header nav a:hover {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 200, 114, 0.3);
}

body > header nav a:hover svg {
  opacity: 1;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(232, 200, 114, 0.45));
}

body > header nav a.active {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 200, 114, 0.3);
}

body > header nav a.active svg {
  opacity: 1;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(232, 200, 114, 0.45));
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-ghost {
  padding: 9px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 114, 0.5), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.header-search:hover::before,
.header-search:focus-within::before {
  opacity: 1;
}

.header-search-icon {
  position: absolute;
  right: 12px;
  left: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.25s ease, filter 0.25s ease;
}

.header-search-input {
  width: 11.25rem;
  padding: 9px 34px 9px 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    rgba(12, 18, 32, 0.62);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition:
    width 0.25s ease,
    padding 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.header-search-input::placeholder {
  color: var(--text-muted);
  transition: color 0.25s ease, opacity 0.2s ease;
}

.header-search:hover .header-search-input {
  border-color: rgba(232, 200, 114, 0.22);
  background:
    linear-gradient(180deg, rgba(232, 200, 114, 0.05) 0%, transparent 32%),
    rgba(12, 18, 32, 0.78);
}

.header-search:hover .header-search-icon {
  color: rgba(232, 200, 114, 0.75);
}

.header-search-input:focus {
  border-color: rgba(232, 200, 114, 0.48);
  background:
    linear-gradient(180deg, rgba(232, 200, 114, 0.08) 0%, transparent 36%),
    rgba(12, 18, 32, 0.88);
  box-shadow:
    0 0 0 3px var(--gold-soft),
    0 0 20px rgba(232, 200, 114, 0.1);
}

.header-search-input:focus::placeholder {
  color: rgba(232, 200, 114, 0.42);
}

.header-search:focus-within .header-search-icon {
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(232, 200, 114, 0.45));
}

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-btn svg {
  display: block;
}

/* Hero */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 100vh;
  padding: 120px 24px 64px;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107, 159, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232, 200, 114, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(7, 11, 20, 0.68) 55%, rgba(7, 11, 20, 0.84) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-rev-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-rev-slider .rev_slider_wrapper,
.hero-rev-slider rs-module-wrap,
.hero-rev-slider rs-module,
.hero-rev-slider .slotholder,
.hero-rev-slider .tp-bgimg,
.hero-rev-slider .rev-slidebg {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 75% at 50% 45%,
    transparent 42%,
    rgba(7, 11, 20, 0.22) 72%,
    rgba(7, 11, 20, 0.5) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content,
#milky-way-finder {
  position: relative;
  z-index: 2;
  width: 100%;
}

#milky-way-finder {
  max-width: 680px;
}

.hero-content {
  max-width: 100%;
  padding-inline: 24px;
  text-align: center;
}

body:not(.is-loaded) .hero-content,
body:not(.is-loaded) #milky-way-finder,
body:not(.is-loaded) .scroll-indicator {
  opacity: 0;
}

body:not(.is-loaded) .hero-content,
body:not(.is-loaded) #milky-way-finder {
  transform: translateY(24px);
}

body:not(.is-loaded) .scroll-indicator {
  transform: translate(-50%, 24px);
}

body.is-loaded .hero-content {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-loaded #milky-way-finder {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  flex-shrink: 0;
}

.eyebrow::before {
  background: linear-gradient(90deg, transparent, rgba(232, 200, 114, 0.85));
}

.eyebrow::after {
  background: linear-gradient(90deg, rgba(232, 200, 114, 0.85), transparent);
}

#hero h1 {
  white-space: nowrap;
  font-size: clamp(1.5rem, 5vw + 1rem, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c8d2de;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 -1px 0 rgba(70, 90, 110, 0.45),
    1px 0 0 rgba(255, 255, 255, 0.12),
    -1px 0 0 rgba(60, 80, 100, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.hero-subkeyword {
  max-width: 700px;
  margin: 14px auto 0;
  font-size: clamp(0.9375rem, 1.2vw + 0.65rem, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--gold);
}

#hero .short-description {
  max-width: 730px;
  margin: 14px auto 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stars-row {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.proof-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
}

.proof-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.proof-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Finder card */
#milky-way-finder {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  background: rgba(12, 18, 32, 0.2);
  backdrop-filter: blur(4px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

#milky-way-finder .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

#milky-way-finder .header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  min-width: 0;
}

.finder-subtitle {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

#milky-way-finder .body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#hero.is-places-open {
  overflow: visible;
}

.input-wrap:focus-within {
  border-color: rgba(107, 159, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-wrap svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.input-wrap input {
  flex: 1;
  height: 48px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
}

.input-wrap input::placeholder {
  color: var(--text-muted);
}

.input-wrap input.is-detecting::placeholder {
  color: var(--text-secondary);
}

/* Google Places autocomplete dropdown - positioned in mw-app.js */
.pac-container {
  margin-top: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  background: rgba(9, 13, 24, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.pac-container::after {
  display: none;
}

.pac-item {
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.pac-item:first-child {
  border-top: 0;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(107, 159, 255, 0.1);
  color: var(--text-primary);
}

.pac-item-query {
  color: var(--text-primary);
  font-size: 0.875rem;
}

.pac-matched {
  color: var(--gold);
  font-weight: 600;
}

.pac-icon {
  display: none;
}

.pac-logo::after {
  filter: invert(0.85);
  opacity: 0.5;
}

.status.is-loading .status-card {
  opacity: 0.72;
}

.status.is-loading .status-value,
.status.is-loading .visibility-window strong,
.status.is-loading .visibility-peak strong {
  opacity: 0.72;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
}

/* Status row */
.status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.status-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: visible;
  cursor: help;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-primary);
}

.status-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-height: 3.375rem;
  overflow: visible;
}

.status-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(12, 16, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  z-index: 20;
}

.status-card:hover .status-tooltip {
  opacity: 1;
  visibility: visible;
}

.status-card.bortle .status-tooltip {
  left: auto;
  right: 0;
  transform: none;
}

.status-value {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  min-height: 1.5rem;
  line-height: 1.5;
}

.status-rating {
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 1.125rem;
  line-height: 1.5;
}

.status-rating:empty {
  visibility: hidden;
}

.status-rating--excellent {
  color: #4ade80;
}

.status-rating--good {
  color: #86efac;
}

.status-rating--fair {
  color: #fbbf24;
}

.status-rating--poor {
  color: #f87171;
}

.status-visibility {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.status-visibility[hidden] {
  display: none;
}

.status-visibility-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.visibility-heading {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: #4ade80;
}

.visibility-window,
.visibility-peak {
  margin-top: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.visibility-window strong,
.visibility-peak strong {
  display: inline;
  min-width: 0;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
}

.visibility-chart {
  flex: 0 1 320px;
  width: min(100%, 320px);
  min-width: 200px;
}

.visibility-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.visibility-chart__horizon {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.visibility-chart__fill {
  fill: url(#mw-chart-gradient);
}

.visibility-chart__stroke {
  fill: none;
  stroke: rgba(74, 222, 128, 0.75);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visibility-chart__peak-star {
  fill: var(--gold);
  stroke: rgba(12, 18, 32, 0.9);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px rgba(232, 200, 114, 0.65));
}

.visibility-chart__milestones {
  position: relative;
  height: 2.25rem;
  margin-top: 0;
}

.visibility-chart__milestone {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.visibility-chart__milestone--start {
  align-items: flex-start;
  text-align: left;
  transform: translateX(0);
}

.visibility-chart__milestone--peak {
  align-items: center;
  text-align: center;
  transform: translateX(-50%);
  color: var(--gold);
}

.visibility-chart__milestone--end {
  align-items: flex-end;
  text-align: right;
  transform: translateX(-100%);
}

.visibility-chart__milestone-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.visibility-chart__milestone--peak .visibility-chart__milestone-label {
  color: rgba(232, 200, 114, 0.85);
}

.visibility-chart__milestone-time {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.visibility-chart__milestone--peak .visibility-chart__milestone-time {
  color: var(--gold);
}

.status.is-loading .visibility-chart {
  opacity: 0.45;
}

/* CTA */
#milky-way-finder .body button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #4a7ae8 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

#milky-way-finder .body button svg {
  transition: transform 0.2s ease;
}

#milky-way-finder .body button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px var(--accent-glow);
}

#milky-way-finder .body button:hover svg {
  transform: translateX(3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

body.is-loaded .scroll-indicator {
  animation: rise-centered 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes rise-centered {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.scroll-indicator:hover {
  color: var(--text-primary);
}

.scroll-indicator svg {
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold);
  background:
    radial-gradient(circle at 30% 25%, rgba(107, 159, 255, 0.16), transparent 55%),
    rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(107, 159, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.82);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s,
    box-shadow 0.3s ease,
    color 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 114, 0.18);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.scroll-top:hover {
  color: #fff7df;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(232, 200, 114, 0.22);
}

.scroll-top:hover::after {
  opacity: 1;
  transform: scale(1);
}

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

.scroll-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.scroll-top-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 2;
}

.scroll-top-progress {
  fill: none;
  stroke: url(#scroll-top-gradient);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
  filter: drop-shadow(0 0 4px rgba(232, 200, 114, 0.45));
}

.scroll-top-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-top-icon svg {
  width: 18px;
  height: 18px;
}

.scroll-top:hover .scroll-top-icon {
  transform: translateY(-2px);
}

.scroll-top:active .scroll-top-icon {
  transform: translateY(0) scale(0.92);
}

/* Dark sky map */
#map {
  padding: 88px 0 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(232, 200, 114, 0.04), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.07), transparent 65%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
}

.dark-sky-map-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.dark-sky-map-header {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 80px;
  text-align: center;
}

.dark-sky-map-header .eyebrow {
  margin-bottom: 14px;
}

.dark-sky-map-header h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.dark-sky-map-intro {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.map-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 520px;
  max-height: 600px;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  border-block: 1px solid var(--border-strong);
  background: rgba(8, 12, 22, 0.92);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #070b14;
}

.map-attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.map-attribution a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.map-attribution a:hover {
  color: var(--text-primary);
}

/* Astrophotography */
#astro {
  padding: 88px 24px 32px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.06), transparent 65%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
}

.astro-content {
  max-width: 1200px;
  margin: 0 auto;
}

.astro-header {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 40px;
  text-align: center;
}

.astro-header .eyebrow {
  margin-bottom: 14px;
}

.astro-header h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.astro-intro {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.astro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.astro-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    rgba(12, 18, 32, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.astro-card-link:hover {
  border-color: rgba(232, 200, 114, 0.22);
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(232, 200, 114, 0.08),
    0 0 32px rgba(107, 159, 255, 0.08);
}

.astro-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.astro-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.92);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
}

.astro-card-link:hover .astro-card-media img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

.astro-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}

.astro-category {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.astro-card-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.astro-excerpt {
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.astro-card-action {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.astro-card-link:hover .astro-card-action {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateX(2px);
}

.astro-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 32px auto 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hover);
  transition: gap 0.2s ease, color 0.2s ease;
}

.astro-view-all:hover {
  gap: 12px;
  color: white;
}

.astro-view-all svg {
  transition: transform 0.2s ease;
}

.astro-view-all:hover svg {
  transform: translateX(2px);
}

@media (max-width: 860px) {
  #astro {
    padding: 64px 16px 32px;
  }

  .astro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

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

/* Gallery preview */
#gallery-preview {
  padding: 0;
  border-top: 1px solid var(--border);
}

.gallery-preview-embed {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  background: #0a0a0a;
}

/* Front page Milky Way guide - starfield shows through */
#milky-way-from-earth {
  padding-bottom: 32px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.06), transparent 65%);
  border-top: 1px solid var(--border);
}

#milky-way-from-earth .article-hero {
  padding-top: 0;
}

#milky-way-from-earth .article-hero::before {
  display: none;
}

#milky-way-from-earth .front-guide-article {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 88px;
}

#milky-way-from-earth .article-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  padding-top: 24px;
}

/* Latest articles */
#latest-articles {
  padding: 88px 24px 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.06), transparent 65%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
}

/* Blog / category / archive listings - starfield + soft dark wash */
#latest-articles.blog-archive {
  padding: 112px 24px 96px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.06), transparent 65%),
    color-mix(in srgb, var(--bg-deep) 78%, transparent);
}

.latest-articles-content {
  max-width: 1200px;
  margin: 0 auto;
}

.latest-articles-header {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 40px;
  text-align: center;
}

.latest-articles-header .eyebrow {
  margin-bottom: 14px;
}

.latest-articles-header h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.latest-articles-intro {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}

.article-card {
  height: 100%;
}

.article-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    rgba(12, 18, 32, 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 40px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.article-card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 114, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card-link:hover {
  border-color: rgba(232, 200, 114, 0.22);
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(232, 200, 114, 0.08),
    0 0 32px rgba(107, 159, 255, 0.08);
}

.article-card-link:hover::before {
  opacity: 1;
}

.article-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.92);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
}

.article-card-link:hover .article-card-media img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

.article-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.08) 0%, rgba(7, 11, 20, 0.35) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.article-card-link:hover .article-card-media::after {
  opacity: 0.65;
}

.article-category {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}

.article-card-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.article-card-link:hover .article-card-body h3 {
  color: #f8efd8;
}

.article-excerpt {
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.article-read-more {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.article-card-link:hover .article-read-more {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateX(2px);
}

.articles-view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 32px;
  margin-inline: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hover);
  transition: gap 0.2s ease, color 0.2s ease;
}

.articles-view-all:hover {
  gap: 12px;
  color: white;
}

.articles-view-all svg {
  transition: transform 0.2s ease;
}

.articles-view-all:hover svg {
  transform: translateX(2px);
}

/* Single article & pages - let site starfield show through */
body.single-article-page,
body.single-page {
  background: transparent;
}

.single-page main {
  padding-top: 0;
}

/* Static pages - document layout, no sidebar */
.page-hero {
  position: relative;
  padding: 32px 32px 72px;
  background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(107, 159, 255, 0.07), transparent 58%);
}

.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 16px;
  text-align: center;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 44rem;
  margin-inline: auto;
}

.page-eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 3.6vw + 1rem, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c8d2de;
  text-shadow: 0 0 40px rgba(107, 159, 255, 0.1);
}

.page-deck {
  margin: 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-featured {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  border-top: 1px solid var(--border);
}

.page-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.page-prose > * + * {
  margin-top: 1.35em;
}

.page-prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.2vw + 0.95rem, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

.page-prose h3 {
  margin-top: 1.8em;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

.page-prose p {
  color: var(--text-secondary);
}

.page-prose strong {
  font-weight: 600;
  color: var(--text-primary);
}

.page-prose a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-color: rgba(107, 159, 255, 0.35);
  text-underline-offset: 3px;
}

.page-prose a:hover {
  color: white;
}

.page-prose ul,
.page-prose ol {
  padding-left: 1.35em;
  list-style: revert;
}

.page-prose li + li {
  margin-top: 0.5em;
}

.page-prose blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: rgba(107, 159, 255, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@media (max-width: 720px) {
  .page-hero {
    padding: 24px 20px 56px;
  }

  .page-hero-inner {
    padding-top: 8px;
  }

  .page-hero-content {
    gap: 24px;
  }

  .page-deck {
    font-size: 1.0625rem;
  }

  .page-featured,
  .page-body {
    padding-inline: 20px;
  }

  .page-body {
    padding-top: 40px;
  }
}

/* Single article */
.single-article-page main {
  padding-top: 0;
}

.article-hero {
  position: relative;
  padding: 48px 24px 0;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(107, 159, 255, 0.1), transparent 65%);
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 0px;
}

.article-hero-content {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.article-breadcrumb {
  display: block;
  flex: none;
  margin-bottom: 28px;
}

.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.article-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.article-breadcrumb li + li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(232, 200, 114, 0.45);
  flex-shrink: 0;
}

.article-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
  color: var(--accent-hover);
}

.article-breadcrumb [aria-current="page"] {
  color: var(--gold);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-hero .article-category {
  display: inline-block;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c8d2de;
  text-shadow: 0 0 40px rgba(107, 159, 255, 0.12);
}

.article-deck {
  margin-top: 18px;
  font-size: clamp(1rem, 1vw + 0.85rem, 1.1875rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-inline: auto;
}

.article-author-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-byline-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.article-featured {
  max-width: 1080px;
  margin: 40px auto 0;
  padding-inline: 24px;
}

/* Figures with captions - featured card treatment */
.article-featured figure,
.page-featured figure,
.article-prose figure:has(figcaption),
.page-prose figure:has(figcaption) {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.article-prose figure:has(figcaption),
.page-prose figure:has(figcaption) {
  margin: 2em 0;
}

.article-featured figure img,
.page-featured figure img,
.article-prose figure:has(figcaption) img,
.page-prose figure:has(figcaption) img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.94);
}

.article-featured figure img,
.page-featured figure img {
  aspect-ratio: 21 / 9;
}

.article-prose figure:has(figcaption) img,
.page-prose figure:has(figcaption) img {
  aspect-ratio: auto;
  height: auto;
}

.article-featured figcaption,
.page-featured figcaption,
.article-prose figure:has(figcaption) figcaption,
.page-prose figure:has(figcaption) figcaption {
  padding: 14px 20px;
  font-size: 0.8125rem;
  text-align: center;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(12, 18, 32, 0.85);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.article-prose {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-prose > * + * {
  margin-top: 1.35em;
}

.article-prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.5vw + 0.9rem, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

.article-prose h3 {
  margin-top: 1.8em;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.article-prose p {
  color: var(--text-secondary);
}

.article-prose strong {
  font-weight: 600;
  color: var(--text-primary);
}

.article-prose a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-color: rgba(107, 159, 255, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-prose a:hover {
  color: white;
  text-decoration-color: var(--accent-hover);
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.35em;
  list-style: revert;
}

.article-prose li + li {
  margin-top: 0.5em;
}

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

.article-prose blockquote {
  position: relative;
  margin: 2em 0;
  padding: 24px 28px 24px 32px;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(107, 159, 255, 0.08), rgba(232, 200, 114, 0.05)),
    rgba(12, 18, 32, 0.6);
  border: 1px solid rgba(107, 159, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.article-prose blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.article-prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-prose figure:not(:has(figcaption)),
.page-prose figure:not(:has(figcaption)) {
  margin: 2em 0;
}

.article-prose figure:not(:has(figcaption)) img,
.page-prose figure:not(:has(figcaption)) img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.article-prose hr {
  margin: 2.5em 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.article-callout {
  display: flex;
  gap: 16px;
  margin: 2em 0;
  padding: 20px 22px;
  background: var(--success-bg);
  border: 1px solid rgba(93, 217, 168, 0.22);
  border-radius: var(--radius-md);
}

.article-callout-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--success);
  background: rgba(93, 217, 168, 0.12);
  border-radius: 10px;
}

.article-callout-body h4 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 6px;
}

.article-callout-body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Tables - all tables in post/page content */
article.single-article .article-prose :is(.article-table-wrap, .wp-block-table),
article.single-page .page-prose :is(.article-table-wrap, .wp-block-table) {
  margin: 2.25em 0;
  border: 1px solid rgba(107, 159, 255, 0.24);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(9, 14, 26, 0.96);
  box-shadow:
    inset 0 2px 0 rgba(232, 200, 114, 0.42),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

article.single-article .article-prose :is(.article-table-scroll, .wp-block-table),
article.single-page .page-prose :is(.article-table-scroll, .wp-block-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(107, 159, 255, 0.08), transparent 36%);
}

article.single-article .article-prose :is(.article-table-scroll, .wp-block-table)::-webkit-scrollbar,
article.single-page .page-prose :is(.article-table-scroll, .wp-block-table)::-webkit-scrollbar {
  height: 10px;
}

article.single-article .article-prose :is(.article-table-scroll, .wp-block-table)::-webkit-scrollbar-thumb,
article.single-page .page-prose :is(.article-table-scroll, .wp-block-table)::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(107, 159, 255, 0.45), rgba(232, 200, 114, 0.35));
  border-radius: 999px;
}

article.single-article .article-prose :is(.article-table-scroll, .wp-block-table)::-webkit-scrollbar-track,
article.single-page .page-prose :is(.article-table-scroll, .wp-block-table)::-webkit-scrollbar-track {
  background: rgba(9, 14, 26, 0.96);
}

article.single-article .article-prose table,
article.single-page .page-prose table {
  width: 100%;
  min-width: 36rem;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  --table-border: rgba(107, 159, 255, 0.24);
}

article.single-article .article-prose table caption,
article.single-page .page-prose table caption {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--gold);
  caption-side: top;
  border-bottom: 1px solid var(--table-border);
  background: rgba(232, 200, 114, 0.06);
}

article.single-article .article-prose table th,
article.single-article .article-prose table td,
article.single-page .page-prose table th,
article.single-page .page-prose table td {
  padding: 14px 18px;
  border: 1px solid var(--table-border);
  border-top: 0;
  border-left: 0;
  vertical-align: middle;
}

article.single-article .article-prose table thead th,
article.single-page .page-prose table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #f0e2b8;
  background: linear-gradient(180deg, rgba(107, 159, 255, 0.28), rgba(58, 101, 204, 0.22));
  box-shadow: inset 0 -1px 0 rgba(107, 159, 255, 0.2);
}

article.single-article .article-prose table thead th:first-child,
article.single-page .page-prose table thead th:first-child {
  z-index: 3;
  text-align: left;
  left: 0;
}

/* Legacy tables: first tbody row of th cells acts as header when thead is absent */
article.single-article .article-prose table:not(:has(thead)) tbody > tr:first-child > th,
article.single-page .page-prose table:not(:has(thead)) tbody > tr:first-child > th,
article.single-article .article-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:first-child > td,
article.single-page .page-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:first-child > td {
  position: sticky;
  top: 0;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #f0e2b8;
  background: linear-gradient(180deg, rgba(107, 159, 255, 0.28), rgba(58, 101, 204, 0.22));
  box-shadow: inset 0 -1px 0 rgba(107, 159, 255, 0.2);
  border-right-color: rgba(107, 159, 255, 0.16);
}

article.single-article .article-prose table:not(:has(thead)) tbody > tr:first-child > th:first-child,
article.single-page .page-prose table:not(:has(thead)) tbody > tr:first-child > th:first-child,
article.single-article .article-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:first-child > td:first-child,
article.single-page .page-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:first-child > td:first-child {
  z-index: 3;
  text-align: left;
  left: 0;
}

article.single-article .article-prose table:has(thead) tbody th,
article.single-page .page-prose table:has(thead) tbody th,
article.single-article .article-prose table:not(:has(thead)) tbody > tr:not(:first-child) th,
article.single-page .page-prose table:not(:has(thead)) tbody > tr:not(:first-child) th,
article.single-article .article-prose table:has(thead) tbody td:first-child,
article.single-page .page-prose table:has(thead) tbody td:first-child,
article.single-article .article-prose table:not(:has(thead)):has(tbody > tr > th) tbody td:first-child,
article.single-page .page-prose table:not(:has(thead)):has(tbody > tr > th) tbody td:first-child,
article.single-article .article-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:not(:first-child) > td:first-child,
article.single-page .page-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:not(:first-child) > td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--gold);
  background: rgba(14, 20, 36, 0.98);
  border-right: 1px solid rgba(107, 159, 255, 0.28);
}

article.single-article .article-prose table tbody td:not(:first-child),
article.single-page .page-prose table tbody td:not(:first-child) {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 246, 251, 0.72);
  background: rgba(255, 255, 255, 0.015);
}

article.single-article .article-prose table tbody tr:nth-child(even) td:not(:first-child),
article.single-page .page-prose table tbody tr:nth-child(even) td:not(:first-child) {
  background: rgba(107, 159, 255, 0.055);
}

article.single-article .article-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:first-child > td:not(:first-child),
article.single-page .page-prose table:not(:has(thead)):not(:has(tbody > tr > th)) tbody > tr:first-child > td:not(:first-child) {
  background: linear-gradient(180deg, rgba(107, 159, 255, 0.28), rgba(58, 101, 204, 0.22));
  color: #f0e2b8;
}

article.single-article .article-prose table tbody tr:last-child th,
article.single-article .article-prose table tbody tr:last-child td,
article.single-page .page-prose table tbody tr:last-child th,
article.single-page .page-prose table tbody tr:last-child td,
article.single-article .article-prose table tfoot tr:last-child th,
article.single-article .article-prose table tfoot tr:last-child td,
article.single-page .page-prose table tfoot tr:last-child th,
article.single-page .page-prose table tfoot tr:last-child td {
  border-bottom: 0;
}

article.single-article .article-prose table tfoot th,
article.single-article .article-prose table tfoot td,
article.single-page .page-prose table tfoot th,
article.single-page .page-prose table tfoot td {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  background: rgba(232, 200, 114, 0.1);
  border-top: 1px solid var(--table-border);
}

article.single-article .article-prose table tfoot th:first-child,
article.single-article .article-prose table tfoot td:first-child,
article.single-page .page-prose table tfoot th:first-child,
article.single-page .page-prose table tfoot td:first-child {
  text-align: left;
}

@media (max-width: 720px) {
  article.single-article .article-prose :is(.article-table-wrap, .wp-block-table),
  article.single-page .page-prose :is(.article-table-wrap, .wp-block-table) {
    margin: 1.75em 0;
    border-radius: var(--radius-sm);
  }

  article.single-article .article-prose table,
  article.single-page .page-prose table {
    min-width: 32rem;
    font-size: 0.875rem;
  }

  article.single-article .article-prose table th,
  article.single-article .article-prose table td,
  article.single-page .page-prose table th,
  article.single-page .page-prose table td {
    padding: 12px 14px;
  }
}

.article-sidebar {
  position: sticky;
  top: calc(var(--site-header-offset, 96px) + var(--site-header-gap, 16px));
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-toc {
  display: flex;
  flex-direction: column;
  flex: none;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    rgba(12, 18, 32, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.article-toc h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-toc-progress {
  height: 2px;
  margin: -4px 0 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.article-toc-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.35s ease;
}

.article-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc a {
  display: block;
  padding: 9px 12px 9px 14px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.article-toc a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.article-toc a.is-active {
  color: var(--text-primary);
  background: rgba(107, 159, 255, 0.08);
  border-left-color: var(--gold);
}

.article-share {
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(12, 18, 32, 0.4);
}

.article-share h2 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-share-btns {
  display: flex;
  gap: 8px;
}

.article-share-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-share-btn:hover {
  color: var(--accent-hover);
  border-color: rgba(107, 159, 255, 0.35);
  background: rgba(107, 159, 255, 0.1);
}

.article-end {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.comments-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.comments-title {
  margin: 0 0 24px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.comment-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 20px;
}

.comment-list .comment,
.comment-list .pingback {
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%),
    rgba(12, 18, 32, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.comment-list .children {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 0 20px;
  border-left: 1px solid rgba(107, 159, 255, 0.2);
  display: grid;
  gap: 16px;
}

.comment-body {
  display: grid;
  gap: 10px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-author .avatar {
  border-radius: 50%;
  border: 2px solid rgba(107, 159, 255, 0.28);
}

.comment-author .fn {
  font-style: normal;
}

.comment-metadata a {
  color: var(--text-muted);
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--accent-hover);
}

.comment-content {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.comment-content p {
  margin: 0;
}

.comment-content p + p {
  margin-top: 0.75em;
}

.reply {
  margin: 0;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.comment-reply-link:hover {
  color: var(--accent-hover);
}

.comments-closed {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.comments-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 0.875rem;
}

.comments-navigation a {
  color: var(--accent-hover);
  text-decoration: none;
}

.comment-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(9, 14, 26, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.comment-form .comment-reply-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-form .comment-reply-title small {
  margin-left: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-form .comment-reply-title a {
  color: var(--gold);
  text-decoration: none;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: rgba(7, 11, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(107, 159, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(107, 159, 255, 0.12);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .form-submit {
  margin-top: 4px;
}

.comment-form .submit {
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a1020;
  background: linear-gradient(135deg, var(--gold), #f0e2b8);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.comment-form .submit:hover {
  filter: brightness(1.06);
}

@media (min-width: 640px) {
  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }

  .comment-form .comment-form-author,
  .comment-form .comment-form-email {
    margin-right: 16px;
  }
}

.page-end {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.page-child-links {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.page-child-links h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-child-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-child-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    rgba(12, 18, 32, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.page-child-links a:hover {
  color: var(--text-primary);
  border-color: rgba(107, 159, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.page-child-links svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-child-links a:hover svg {
  color: var(--accent-hover);
  transform: translateX(2px);
}

@media (max-width: 720px) {
  .page-child-links ul {
    grid-template-columns: 1fr;
  }
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-tags-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-tag:hover {
  color: var(--gold);
  border-color: rgba(232, 200, 114, 0.3);
  background: rgba(232, 200, 114, 0.06);
}

.article-author-card {
  display: flex;
  gap: 20px;
  max-width: 720px;
  margin-inline: auto;
  margin-top: 0;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    rgba(12, 18, 32, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.article-author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(107, 159, 255, 0.3);
  flex-shrink: 0;
}

.article-author-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.article-author-card .article-author-role {
  margin-bottom: 10px;
}

.article-author-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.article-related {
  padding: 64px 24px 88px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.06), transparent 65%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
}

.article-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.article-related-header {
  margin-bottom: 32px;
  text-align: center;
}

.article-related-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.article-related .article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }

  .article-sidebar {
    position: static;
  }

  .article-toc {
    display: none;
  }

  .article-related .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .article-hero {
    padding-top: 32px;
  }

  .article-featured figure,
  .page-featured figure {
    background: rgba(12, 18, 32, 0.45);
  }

  .article-featured figure img,
  .page-featured figure img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: min(70vh, 520px);
    object-fit: contain;
    object-position: center;
  }

  .article-sidebar {
    gap: 12px;
  }

  .article-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-related .article-grid {
    grid-template-columns: 1fr;
  }
}

/* Site footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 36px;
  background: transparent;
}

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

.site-footer-bg-img {
  position: absolute;
  inset: -4% -2%;
  width: 104%;
  height: 108%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.05);
  will-change: transform;
  animation: footer-earth-drift 52s ease-in-out infinite alternate;
}

.site-footer-bg::before {
  content: '';
  position: absolute;
  inset: -25% -15%;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(200, 220, 255, 0.08) 52%,
    transparent 62%
  );
  mix-blend-mode: screen;
  animation: footer-cloud-shimmer 16s ease-in-out infinite;
  pointer-events: none;
}

.site-footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 120% 45% at 50% 100%, rgba(80, 170, 255, 0.35), transparent 58%),
    radial-gradient(ellipse 90% 30% at 72% 88%, rgba(107, 159, 255, 0.22), transparent 52%),
    linear-gradient(180deg, transparent 42%, rgba(12, 22, 45, 0.55) 100%);
  mix-blend-mode: screen;
  animation: footer-limb-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes footer-earth-drift {
  from {
    transform: scale(1.04) translate3d(-1.2%, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(1.2%, -0.6%, 0);
  }
}

@keyframes footer-cloud-shimmer {
  0%,
  100% {
    transform: translate3d(-8%, 0, 0);
    opacity: 0.55;
  }

  50% {
    transform: translate3d(12%, 1%, 0);
    opacity: 0.9;
  }
}

@keyframes footer-limb-glow {
  from {
    opacity: 0.55;
  }

  to {
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-bg-img,
  .site-footer-bg::before,
  .site-footer-bg::after {
    animation: none !important;
  }

  .site-footer-bg-img {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
}

.site-footer-bg iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.78;
  filter: saturate(1.05) brightness(0.8);
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 64px;
}

.site-footer-brand-block {
  max-width: 400px;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
}

.site-footer-display {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c8d2de;
  text-shadow: 0 0 40px rgba(107, 159, 255, 0.15);
}

.site-footer-tagline {
  max-width: 340px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.site-footer-social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.site-footer-social-btn svg {
  width: 17px;
  height: 17px;
}

.site-footer-social-btn:hover {
  color: var(--gold);
  border-color: rgba(232, 200, 114, 0.35);
  background: rgba(232, 200, 114, 0.08);
  box-shadow: 0 0 20px rgba(232, 200, 114, 0.12);
  transform: translateY(-2px);
}

.site-footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px 48px;
  width: 100%;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-footer-col h3,
.site-footer-col .footer-widget h3 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-col nav {
  display: block;
}

.site-footer-col ul,
.site-footer-col .menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.site-footer-col li {
  width: 100%;
}

.site-footer-col a {
  display: block;
  width: 100%;
  padding: 7px 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-footer-col a:hover {
  color: var(--text-primary);
}

.newsletter-separator {
  position: relative;
  padding: 64px 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.08), transparent 65%),
    radial-gradient(ellipse 45% 35% at 100% 100%, rgba(232, 200, 114, 0.06), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
}

.newsletter-separator-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.site-footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 34px;
  padding: 30px 34px;
  background:
    linear-gradient(135deg, rgba(107, 159, 255, 0.14) 0%, rgba(232, 200, 114, 0.08) 100%),
    rgba(10, 15, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(107, 159, 255, 0.12),
    0 0 36px rgba(107, 159, 255, 0.12);
}

.site-footer-newsletter-label {
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer-newsletter-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.site-footer-newsletter-copy p:last-child {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 50ch;
}

.site-footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer-field {
  display: block;
}

.site-footer-newsletter-form input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 17px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.site-footer-newsletter-form input[type="email"]:focus {
  border-color: rgba(107, 159, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.site-footer-newsletter-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.site-footer-newsletter-terms input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.site-footer-newsletter-terms-copy {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.site-footer-newsletter-terms-copy a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-newsletter-terms-copy a:hover {
  color: #fff;
}

.site-footer-newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #4a7ae8 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-footer-newsletter-form button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px var(--accent-glow);
  transform: translateY(-1px);
}

.site-footer-newsletter-form button svg {
  transition: transform 0.2s ease;
}

.site-footer-newsletter-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: newsletter-spin 0.7s linear infinite;
}

.site-footer-newsletter-form.is-loading .site-footer-newsletter-spinner {
  display: inline-block;
}

.site-footer-newsletter-form.is-loading .site-footer-newsletter-btn-icon {
  display: none;
}

.site-footer-newsletter-form button:hover svg {
  transform: translateX(2px);
}

.site-footer-newsletter-form.is-loading button:hover svg {
  transform: none;
}

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

.site-footer-newsletter-status {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.site-footer-newsletter-status.is-success {
  color: #4ade80;
}

.site-footer-newsletter-status.is-error {
  color: #f87171;
}

.site-footer-newsletter-form.is-loading button {
  opacity: 0.72;
  cursor: wait;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.site-footer-copy,
.site-footer-note,
.site-footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer-legal a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-legal a:hover {
  color: var(--text-primary);
}

.site-footer-note {
  text-align: right;
}

/* Responsive */
@media (max-width: 1060px) {
  body > header .logo-lockup {
    display: flex;
  }

  body > header .logo-text:not(.logo-text--compact),
  body > header .logo-tagline {
    display: none;
  }

  body > header .logo-text--compact {
    display: block;
  }
}

@media (max-width: 1280px) and (min-width: 861px) {
  body > header nav a {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .header-search-input {
    width: 10rem;
  }
}

@media (max-width: 860px) {
  body > header {
    padding: 12px 16px 0;
  }

  body > header.is-scrolled {
    padding: 6px 16px 6px;
  }

  #wrapper {
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }

  body > header.is-scrolled #wrapper {
    padding: 6px 10px;
  }

  .btn-ghost {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
  }

  body > header nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 12px;
    right: 12px;
    display: block;
    flex: none;
    justify-content: stretch;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.18s ease;
  }

  body > header .menu-toggle:checked ~ nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  body > header nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background:
      radial-gradient(ellipse 120% 80% at 20% 0%, rgba(107, 159, 255, 0.12), transparent 55%),
      rgba(9, 13, 24, 0.9);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  body > header nav ul::after {
    display: none;
  }

  body > header nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition:
      background 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .nav-indicator {
    display: none;
  }

  body > header nav a svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
  }

  body > header nav a.active {
    color: var(--gold);
    text-shadow: none;
    background: rgba(232, 200, 114, 0.08);
  }

  body > header nav a:hover {
    color: var(--gold);
    text-shadow: none;
    background: rgba(232, 200, 114, 0.08);
    transform: translateY(-1px);
  }

  body > header nav a:active {
    transform: translateY(0);
  }

  .header-actions {
    order: 2;
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .header-search {
    min-width: 0;
  }

  .header-search-input {
    width: 2.5rem;
    padding-left: 3px;
    padding-right: 34px;
  }

  .header-search-input::placeholder {
    opacity: 0;
  }

  .header-search:focus-within .header-search-input,
  .header-search-input:not(:placeholder-shown) {
    width: min(10.5rem, calc(100vw - 148px));
    padding-left: 14px;
    padding-right: 34px;
  }

  .header-search:focus-within .header-search-input::placeholder {
    opacity: 1;
  }

  .site-footer {
    padding: 24px 16px 28px;
  }

  .newsletter-separator {
    padding: 24px 16px 10px;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer-brand-block {
    max-width: none;
  }

  .site-footer-tagline {
    max-width: none;
  }

  .site-footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding-top: 0;
  }

  .site-footer-newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 20px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-footer-note {
    text-align: left;
  }
}

@media (max-width: 720px) {
  #hero {
    gap: 32px;
    padding: 108px 16px 48px;
  }

  .hero-content {
    padding-inline: 0;
  }

  #hero .short-description {
    font-size: 1rem;
    padding-inline: 4px;
  }

  .social-proof {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .proof-divider {
    display: none;
  }

  .proof-text {
    text-align: center;
    font-size: 0.8125rem;
  }

  #milky-way-finder {
    padding: 20px 16px;
  }

  #milky-way-finder .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .finder-subtitle {
    font-size: 0.75rem;
  }

  .status {
    gap: 16px;
  }

  .status-cards {
    gap: 8px;
  }

  .status-card {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .status-icon {
    width: 40px;
    height: 40px;
  }

  .status-icon svg {
    width: 18px;
    height: 18px;
  }

  .status-copy {
    align-items: center;
    min-height: 0;
  }

  .status-label {
    font-size: 0.5625rem;
    letter-spacing: 0.08em;
  }

  .status-value {
    font-size: 0.8125rem;
  }

  .status-rating {
    font-size: 0.6875rem;
  }

  .status-visibility {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 14px;
  }

  .visibility-chart {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .visibility-heading {
    font-size: 1.125rem;
  }

  #milky-way-from-earth {
    padding-bottom: 72px;
  }

  #milky-way-from-earth .front-guide-article {
    padding-top: 64px;
  }

  #latest-articles {
    padding: 64px 16px 72px;
  }

  #map {
    padding: 64px 0 0;
  }

  .dark-sky-map-content {
    padding-inline: 16px;
  }

  .map-embed {
    min-height: 380px;
    aspect-ratio: auto;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .scroll-top {
    bottom: 76px;
  }
}

@media (max-width: 480px) {
  body > header {
    padding: 10px 12px 0;
  }

  body > header.is-scrolled {
    padding: 5px 12px 5px;
  }

  #wrapper {
    padding: 8px 10px;
  }

  body > header.is-scrolled #wrapper {
    padding: 5px 8px;
  }

  .logo-text {
    font-size: 0.9375rem;
  }

  .header-search:focus-within .header-search-input,
  .header-search-input:not(:placeholder-shown) {
    width: min(9.5rem, calc(100vw - 132px));
  }

  .eyebrow {
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 28px;
  }

  #hero {
    padding-top: 96px;
    gap: 28px;
  }

  #hero h1 {
    letter-spacing: 0.01em;
  }

  #milky-way-finder .header h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .input-wrap input {
    font-size: 16px;
  }

  .input-wrap input::placeholder {
    font-size: 0.875rem;
  }

  #milky-way-finder .body button {
    height: 48px;
    font-size: 0.875rem;
  }

  .scroll-indicator {
    display: none;
  }

  .scroll-top {
    right: 16px;
    bottom: 64px;
    width: 44px;
    height: 44px;
  }

  .scroll-top-icon svg {
    width: 16px;
    height: 16px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-nav-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .proof-text {
    font-size: 0.75rem;
  }

  .visibility-window,
  .visibility-peak {
    font-size: 0.6875rem;
  }
}

@media (min-width: 1400px) {
  #hero h1 {
    font-size: clamp(6.75rem, 3vw, 7.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
