/* ------------------------------------------------------------------
   Daily Temperature Reading — design tokens
   PAIRS brand: navy #212E5C · sunrise yellow #EFBA1C · sky blue #2CA8E0
   Fonts: Libre Baskerville (display) · Montserrat (body)
------------------------------------------------------------------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Brand constants (same in both themes) */
  --brand-navy: #212e5c;
  --brand-gold: #efba1c;
  --brand-sky: #2ca8e0;
}

:root,
[data-theme='light'] {
  color-scheme: light;
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfe;
  --color-surface-offset: #eef2f8;
  --color-surface-offset-2: #e4e9f2;
  --color-divider: #dfe5ef;
  --color-border: #cfd7e5;

  --color-text: #1b2340;
  --color-text-muted: #596283;
  --color-text-faint: #9aa3bd;
  --color-text-inverse: #f7f9fd;

  --color-primary: #212e5c;
  --color-primary-hover: #182247;
  --color-primary-active: #111a38;
  --color-primary-highlight: #dfe4f2;

  --color-sky: #1f8fc4;
  --color-sky-soft: #d9eefa;
  --color-gold: #efba1c;
  --color-gold-soft: #fdf2d0;
  --color-gold-text: #8a5f00;

  --color-success: #2f7a3d;
  --color-warning: #b3621a;
  --color-error: #b23a48;

  --shadow-sm: 0 1px 2px oklch(0.3 0.03 265 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.3 0.03 265 / 0.1);
  --shadow-lg: 0 18px 44px oklch(0.3 0.03 265 / 0.14);

  --chart-grid: rgba(27, 35, 64, 0.08);
  --chart-tick: #596283;
  --chart-line: #1f8fc4;
  --chart-fill: rgba(31, 143, 196, 0.14);
  --chart-compare: #9aa3bd;
  --chart-gold: #d9a615;
}

[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: #0e1430;
  --color-surface: #161d3d;
  --color-surface-2: #1b234a;
  --color-surface-offset: #121938;
  --color-surface-offset-2: #202957;
  --color-divider: #273063;
  --color-border: #334079;

  --color-text: #e8ecf8;
  --color-text-muted: #a6afd0;
  --color-text-faint: #6c76a3;
  --color-text-inverse: #111a38;

  --color-primary: #2ca8e0;
  --color-primary-hover: #4fb8e8;
  --color-primary-active: #1a8fc4;
  --color-primary-highlight: #1c3a5a;

  --color-sky: #4fb8e8;
  --color-sky-soft: #1a3353;
  --color-gold: #f2c34a;
  --color-gold-soft: #3b3115;
  --color-gold-text: #f2c34a;

  --color-success: #6fc27f;
  --color-warning: #e8a05a;
  --color-error: #e77a87;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 18px 44px oklch(0 0 0 / 0.45);

  --chart-grid: rgba(232, 236, 248, 0.08);
  --chart-tick: #a6afd0;
  --chart-line: #4fb8e8;
  --chart-fill: rgba(79, 184, 232, 0.16);
  --chart-compare: #6c76a3;
  --chart-gold: #f2c34a;
}

/* ------------------------------------------------------------------
   Layout primitives
------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * clamp(var(--space-4), 4vw, var(--space-10)), var(--content-wide));
  margin-inline: auto;
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
}
.skip:focus {
  top: var(--space-4);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sky);
}
.eyebrow--gold {
  color: var(--color-gold-text);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}
.h-sub {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}
.lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

em.hl {
  font-style: italic;
  color: var(--color-gold-text);
}
[data-theme='dark'] em.hl {
  color: var(--color-gold);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-head > div > .eyebrow {
  margin-bottom: var(--space-2);
}
.section-head .lede {
  margin-top: var(--space-3);
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--gold {
  background: var(--brand-gold);
  color: #1b2340;
}
.btn--gold:hover {
  background: #f5c94a;
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-faint);
}
.btn--sm {
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}
.icon-btn:hover {
  background: var(--color-surface-offset);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  border-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.nav {
  display: none;
  gap: var(--space-5);
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.is-active {
  color: var(--color-text);
  border-color: var(--brand-gold);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.unit-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.unit-toggle button {
  min-width: 38px;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
}
.unit-toggle button[aria-pressed='true'] {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.menu-btn {
  display: inline-grid;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) 0 var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-md);
}
.mobile-nav a:hover {
  background: var(--color-surface-offset);
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .menu-btn,
  .mobile-nav {
    display: none !important;
  }
}
@media (max-width: 639px) {
  .header-inner {
    gap: var(--space-2);
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: var(--text-sm);
    white-space: nowrap;
  }
  .brand-tag {
    display: none;
  }
  .header-controls .unit-toggle {
    display: none;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
}
.unit-toggle--card {
  display: none;
}
@media (max-width: 639px) {
  .unit-toggle--card {
    display: inline-flex;
  }
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-10), 6vw, var(--space-20)) clamp(var(--space-10), 5vw, var(--space-16));
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, color-mix(in oklab, var(--brand-sky) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, color-mix(in oklab, var(--brand-gold) 22%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-12);
  }
}
.hero-copy .eyebrow {
  margin-bottom: var(--space-4);
}
.hero-copy h1 {
  font-size: var(--text-3xl);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero-copy .lede {
  max-width: 54ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.hero-two div {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.hero-two svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--color-sky);
}
.hero-two div:nth-child(2) svg {
  color: var(--color-gold-text);
}
.hero-two strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
}
.hero-two span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Current conditions card */
.now-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.now-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -40% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-gold) 24%, transparent), transparent 70%);
  pointer-events: none;
}
.now-card > * {
  position: relative;
  z-index: 1;
}
.search {
  position: relative;
  margin-bottom: var(--space-5);
}
.now-card > .search {
  z-index: 5;
}
.search input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) 118px var(--space-3) 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
  font-size: var(--text-sm);
}
.search input::placeholder {
  color: var(--color-text-faint);
}
.search input:focus {
  background: var(--color-surface);
  border-color: var(--color-sky);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-sky) 25%, transparent);
}
.search > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--color-text-faint);
  pointer-events: none;
}
.search .geo {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  min-height: 0;
  padding-inline: var(--space-4);
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
}
.suggest.is-open {
  display: block;
}
.suggest li button {
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.suggest li button span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.suggest li button:hover,
.suggest li button:focus-visible {
  background: var(--color-surface-offset);
}
.now-place {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.now-place svg {
  width: 16px;
  height: 16px;
  color: var(--color-sky);
}
.now-place strong {
  color: var(--color-text);
  font-weight: 600;
}
.now-main {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.now-main > div:last-child {
  flex: 1;
  min-width: 0;
}
.now-icon {
  width: 84px;
  height: 84px;
  color: var(--color-gold);
  flex: none;
}
.now-icon svg {
  width: 100%;
  height: 100%;
}
.now-temp {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}
.now-temp .num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2rem + 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.now-temp .deg {
  font-size: var(--text-xl);
  margin-top: 0.4rem;
  margin-left: 2px;
  color: var(--color-sky);
  font-weight: 500;
}
.now-cond {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-1);
}
.now-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.now-meta b {
  color: var(--color-text);
  font-weight: 600;
}
.now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
@media (min-width: 540px) {
  .now-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
}
.stat .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.stat .label svg {
  width: 16px;
  height: 16px;
  color: var(--color-sky);
}
.stat .value {
  margin-top: var(--space-1);
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat .note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.stat .value.good {
  color: var(--color-success);
}
.stat .value.warn {
  color: var(--color-warning);
}
.stat .value.bad {
  color: var(--color-error);
}

/* comfort gauge */
.comfort {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.comfort-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.comfort-head h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.comfort-head output {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-success);
  font-variant-numeric: tabular-nums;
}
.gauge {
  position: relative;
  height: 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #6fb6e8 0%, #7fc9a0 38%, #efba1c 68%, #e0634b 100%);
}
.gauge-pointer {
  position: absolute;
  top: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-text);
  translate: -50% 0;
  transition: left 0.8s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.comfort p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.updated {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.updated-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

/* Weather status banner */
.wx-status {
  display: none;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-gold-soft);
  color: var(--color-text);
  font-size: var(--text-sm);
  border: 1px solid color-mix(in oklab, var(--brand-gold) 50%, transparent);
}
.wx-status.is-visible {
  display: block;
}

/* skeletons */
.is-loading .skel {
  color: transparent !important;
  background: linear-gradient(90deg, var(--color-surface-offset) 25%, var(--color-surface-offset-2) 50%, var(--color-surface-offset) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ------------------------------------------------------------------
   Forecast
------------------------------------------------------------------- */
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}
.forecast-grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 960px) {
  .forecast-grid {
    grid-template-columns: 7fr 5fr;
  }
}
.panel {
  padding: var(--space-6);
  min-width: 0;
}
.forecast-grid > *,
.trend-grid > *,
.logger-grid > *,
.reading-grid > * {
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.panel-head h2,
.panel-head h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.panel-head span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.hourly {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.hour {
  flex: 0 0 88px;
  scroll-snap-align: start;
  padding: var(--space-4) var(--space-2);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}
.hour.is-now {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.hour .t {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}
.hour.is-now .t {
  color: color-mix(in oklab, var(--color-text-inverse) 75%, transparent);
}
.hour svg {
  width: 30px;
  height: 30px;
  color: var(--color-gold);
}
.hour .v {
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hour .p {
  font-size: var(--text-xs);
  color: var(--color-sky);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.hour.is-now .p {
  color: var(--color-text-inverse);
}
.hour .p svg {
  width: 10px;
  height: 10px;
  color: inherit;
}

.days {
  display: grid;
  gap: var(--space-2);
}
.day {
  display: grid;
  grid-template-columns: 52px 28px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}
.day:hover {
  background: var(--color-surface-offset);
}
.day .d {
  font-weight: 700;
}
.day svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
}
.day .c {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.day .c .cond {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day .c .pop {
  color: var(--color-sky);
  font-weight: 600;
  flex: none;
}
.day .r {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.day .r b {
  font-weight: 700;
  min-width: 2.2ch;
  text-align: right;
}
.day .r small {
  color: var(--color-text-muted);
  min-width: 2.2ch;
  text-align: right;
}
@media (max-width: 479px) {
  .range-bar {
    display: none;
  }
  .day {
    grid-template-columns: 48px 26px 1fr auto;
  }
}
.range-bar {
  width: 56px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset-2);
  position: relative;
  overflow: hidden;
}
.range-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-sky), var(--brand-gold));
}

/* Trends */
.trend-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 960px) {
  .trend-grid {
    grid-template-columns: 8fr 4fr;
  }
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
}
.seg button {
  min-height: 36px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.seg button[aria-pressed='true'] {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.chart-wrap {
  position: relative;
  height: clamp(240px, 36vw, 340px);
}
.trend-notes {
  display: grid;
  gap: var(--space-3);
}
.kpi {
  padding: var(--space-4) var(--space-5);
}
.kpi .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.kpi .value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-1);
  font-variant-numeric: tabular-nums;
}
.kpi .value small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}
.kpi .delta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.delta.up {
  color: var(--color-warning);
}
.delta.down {
  color: var(--color-sky);
}

/* World */
.world-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .world-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .world-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.city {
  padding: var(--space-4);
  text-align: left;
  display: grid;
  gap: var(--space-3);
  width: 100%;
  min-height: 118px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.city:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.city .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
}
.city .head svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
}
.city .temp {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.city .cond {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-success);
}
.live-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-success) 50%, transparent);
  animation: ping 2.4s infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-success) 45%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Personal logger */
.logger-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 960px) {
  .logger-grid {
    grid-template-columns: 5fr 7fr;
  }
}
.field {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-sm);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-sky) 22%, transparent);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.log-table-wrap {
  max-height: 320px;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}
.log-table {
  font-size: var(--text-sm);
}
.log-table th {
  position: sticky;
  top: 0;
  background: var(--color-surface-offset);
  text-align: left;
  padding: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}
.log-table td {
  padding: var(--space-3);
  border-top: 1px solid var(--color-divider);
}
.log-table td.v {
  font-weight: 700;
  color: var(--color-sky);
  font-variant-numeric: tabular-nums;
}
.log-table td.a {
  text-align: right;
}
.log-table td.a button {
  color: var(--color-error);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
}
.empty {
  padding: var(--space-10) var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}
.empty svg {
  width: 40px;
  height: 40px;
  color: var(--color-text-faint);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-sky-soft);
  color: var(--color-sky);
}
.pill svg {
  width: 12px;
  height: 12px;
}

/* ------------------------------------------------------------------
   The practice — full-bleed transition
------------------------------------------------------------------- */
.practice {
  position: relative;
  color: #f7f9fd;
  background: var(--brand-navy);
  overflow: hidden;
  isolation: isolate;
}
.practice-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.practice-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}
.practice-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 28, 60, 0.35) 0%, rgba(20, 28, 60, 0.72) 45%, rgba(20, 28, 60, 0.9) 100%),
    linear-gradient(180deg, rgba(20, 28, 60, 0.4), transparent 30%, transparent 70%, rgba(20, 28, 60, 0.5));
}
.practice-inner {
  min-height: min(82vh, 760px);
  display: grid;
  align-items: center;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}
.practice-copy {
  max-width: 560px;
  margin-left: auto;
}
@media (max-width: 959px) {
  .practice-art img {
    object-position: 20% center;
  }
  .practice-art::after {
    background: linear-gradient(180deg, rgba(20, 28, 60, 0.55), rgba(20, 28, 60, 0.88));
  }
  .practice-copy {
    margin-left: 0;
  }
}
.practice .eyebrow {
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
}
.practice h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.practice p {
  color: rgba(247, 249, 253, 0.84);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.practice .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.practice .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Origins strip */
.origins {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 900px) {
  .origins {
    grid-template-columns: 5fr 7fr;
  }
}
.origins .h-section {
  margin-bottom: var(--space-4);
}
.origins-copy p + p {
  margin-top: var(--space-4);
}
.origins-copy p {
  color: var(--color-text-muted);
  line-height: 1.75;
}
.quote {
  padding: var(--space-6);
  border-left: 3px solid var(--brand-gold);
  background: var(--color-surface);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.45;
  font-style: italic;
}
.quote figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------------
   Five steps
------------------------------------------------------------------- */
.steps-section {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.steps-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .steps-grid .step:nth-child(1),
  .steps-grid .step:nth-child(2),
  .steps-grid .step:nth-child(3) {
    grid-column: span 2;
  }
  .steps-grid .step:nth-child(4),
  .steps-grid .step:nth-child(5) {
    grid-column: span 3;
  }
}
.step {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
  align-content: start;
  position: relative;
}
.step .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold-text);
  line-height: 1;
}
[data-theme='dark'] .step .num {
  color: var(--color-gold);
}
.step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.step .stem {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-sky);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.step ul {
  padding-left: 1.1em;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: grid;
  gap: var(--space-1);
}
.step ul li::marker {
  color: var(--brand-gold);
}

.how-grid {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-16);
  align-items: center;
}
@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}
.how-art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.how-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.how-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.how-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-3);
  align-items: start;
}
.how-list svg {
  width: 24px;
  height: 24px;
  color: var(--color-sky);
  margin-top: 2px;
}
.how-list strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
}
.how-list span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   Take a reading — guided tool
------------------------------------------------------------------- */
.reading-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 960px) {
  .reading-grid {
    grid-template-columns: 4fr 8fr;
  }
}
.reading-aside {
  position: sticky;
  top: 92px;
}
.reading-aside .h-section {
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}
.reading-aside p {
  color: var(--color-text-muted);
  line-height: 1.7;
}
.progress {
  list-style: none;
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-6);
}
.progress li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.progress li i {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
}
.progress li.is-active {
  color: var(--color-text);
  background: var(--color-surface);
  font-weight: 600;
}
.progress li.is-active i {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #1b2340;
}
.progress li.is-done i {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.privacy-note {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.privacy-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 3px;
}

.reading-panel {
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  min-height: 460px;
  display: grid;
  align-content: start;
  gap: var(--space-5);
}
.reading-panel .pane {
  display: none;
  animation: fadeUp 0.35s var(--ease-out);
}
.reading-panel .pane.is-active {
  display: grid;
  gap: var(--space-4);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pane-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.pane-head .eyebrow {
  margin-bottom: var(--space-1);
}
.pane-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}
.timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  font-weight: 600;
}
.timer output {
  min-width: 4.2ch;
}
.timer button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-surface-offset);
}
.timer button svg {
  width: 14px;
  height: 14px;
}
.timer.is-done {
  border-color: var(--brand-gold);
  background: var(--color-gold-soft);
}
.pane .guide {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.pane .stem-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-sky);
  font-size: var(--text-base);
}
.pane textarea {
  width: 100%;
  min-height: 150px;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
  font-size: var(--text-base);
  line-height: 1.65;
  resize: vertical;
}
.pane textarea:focus {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-sky) 22%, transparent);
}
.pane-tip {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-gold-soft);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.pane-tip svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--color-gold-text);
  margin-top: 2px;
}
.pane-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.who-row {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .who-row {
    grid-template-columns: 1fr 1fr;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  min-height: 38px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--color-surface);
}
.chip:hover {
  border-color: var(--color-text-faint);
}
.chip[aria-pressed='true'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.summary {
  display: grid;
  gap: var(--space-3);
}
.summary-item {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  border-left: 3px solid var(--brand-gold);
}
.summary-item h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.summary-item p {
  white-space: pre-wrap;
  font-size: var(--text-base);
}
.summary-item p.is-empty {
  color: var(--color-text-faint);
  font-style: italic;
}
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-6);
  translate: -50% 20px;
  opacity: 0;
  pointer-events: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s var(--ease-out), translate 0.3s var(--ease-out);
  z-index: 90;
}
.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

/* ------------------------------------------------------------------
   Resources
------------------------------------------------------------------- */
.res-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .res-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .res-grid .res--feature {
    grid-column: 1 / -1;
    grid-template-columns: 1.4fr 1fr;
    column-gap: var(--space-10);
    align-items: center;
  }
  .res--feature .eyebrow,
  .res--feature h3,
  .res--feature p {
    grid-column: 1;
  }
  .res--feature .store-row {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
    flex-direction: column;
    align-items: stretch;
  }
}
.res {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
  align-content: start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.res:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.res .eyebrow {
  margin-bottom: 0;
}
.res h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.res p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.res .link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-sky);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.res .link svg {
  width: 16px;
  height: 16px;
}
.res--feature {
  background: var(--brand-navy);
  color: #f7f9fd;
  border-color: var(--brand-navy);
}
.res--feature .eyebrow {
  color: var(--brand-gold);
}
.res--feature p {
  color: rgba(247, 249, 253, 0.8);
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: #0b1020;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.1;
}
.store-badge:hover {
  background: #161d3d;
}
.store-badge svg {
  width: 22px;
  height: 22px;
}
.store-badge small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  letter-spacing: 0.02em;
}
.store-badge span {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12) var(--space-8);
  background: var(--color-surface-offset);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.65;
}
.footer-col h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-sky);
}
.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.footer-bottom a {
  color: inherit;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print: only the reading summary */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area,
  #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    inset: 0;
    padding: 2rem;
  }
}
