/* Una storia dal futuro
   Impianto editoriale (colonna stretta, temi chiaro/scuro, titoli serif)
   con i colori della copertina: ambra per il passato, blu per il futuro. */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, "New York", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.75rem;
  --fs-xl: 2.5rem;
  --lh-tight: 1.2;
  --lh-base: 1.65;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  --col: 720px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* tema chiaro */
  --bg: #f8f9fb;
  --bg-elev: #ffffff;
  --bg-subtle: #eef0f4;
  --text: #1c1e24;
  --text-soft: #4a4d58;
  --text-muted: #73778a;
  --border: #dfe2e8;
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-soft: #fdf0e1;
  --blue: #1d5fd6;
  --blue-soft: #dfeafe;
  --badge-ep-bg: #dfeafe;
  --badge-ep-text: #1e40af;
  --badge-bonus-bg: #fdecd6;
  --badge-bonus-text: #9a3412;
  --brand-line: linear-gradient(90deg, #e8731f, #2f86f0);
  --meter: linear-gradient(90deg, #2f86f0, #e8a13a 60%, #e5482a);
  --shadow: 0 1px 3px rgba(20, 24, 40, 0.06), 0 6px 18px rgba(20, 24, 40, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10131c;
    --bg-elev: #171b27;
    --bg-subtle: #1e2331;
    --text: #e6e8ee;
    --text-soft: #b3b8c4;
    --text-muted: #80869a;
    --border: #2a2f3d;
    --accent: #ffb347;
    --accent-hover: #ffca7d;
    --accent-soft: #33240f;
    --blue: #6cc6ff;
    --blue-soft: #16263d;
    --badge-ep-bg: #16263d;
    --badge-ep-text: #93c9ff;
    --badge-bonus-bg: #33240f;
    --badge-bonus-text: #ffc58a;
    --brand-line: linear-gradient(90deg, #ffb347, #6cc6ff);
    --meter: linear-gradient(90deg, #6cc6ff, #ffb347 60%, #ff6a4a);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #10131c;
  --bg-elev: #171b27;
  --bg-subtle: #1e2331;
  --text: #e6e8ee;
  --text-soft: #b3b8c4;
  --text-muted: #80869a;
  --border: #2a2f3d;
  --accent: #ffb347;
  --accent-hover: #ffca7d;
  --accent-soft: #33240f;
  --blue: #6cc6ff;
  --blue-soft: #16263d;
  --badge-ep-bg: #16263d;
  --badge-ep-text: #93c9ff;
  --badge-bonus-bg: #33240f;
  --badge-bonus-text: #ffc58a;
  --brand-line: linear-gradient(90deg, #ffb347, #6cc6ff);
  --meter: linear-gradient(90deg, #6cc6ff, #ffb347 60%, #ff6a4a);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  z-index: 20;
}
.skip-link:focus { left: var(--sp-4); }

.wrap {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

/* ---------------------------------------------------------------- header */

/* intestazione compatta, sempre fissa in alto */
.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  padding-top: var(--sp-4);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

[id] { scroll-margin-top: 150px; }
.home-anchor { height: 0; }

.site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(var(--col), 100%);
  height: 2px;
  transform: translateX(-50%);
  background: var(--brand-line);
  opacity: 0.55;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: var(--fs-md); font-weight: 700; line-height: var(--lh-tight); }
.brand-sub { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.4; }

.site-nav {
  display: flex;
  justify-content: space-around;
  margin-top: var(--sp-2);
}

.site-nav a {
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.header-tools {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  display: flex;
  gap: var(--sp-2);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-soft);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); }

@media (max-width: 640px) {
  .header-tools { top: var(--sp-4); right: var(--sp-4); }
  .brand-sub { display: none; }
  .site-nav { justify-content: space-between; }
}

/* ---------------------------------------------------------------- home: locandina */

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-6) var(--sp-5) var(--sp-7);
  text-align: center;
}

/* all'arrivo la locandina occupa tutto lo schermo: il resto compare scorrendo */
.collapse-ok .page-home .home-hero {
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-cover {
  width: min(300px, 64vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  transform-origin: 0 0;
  box-shadow:
    -24px 0 60px -22px rgba(255, 165, 58, 0.55),
    24px 0 60px -22px rgba(79, 179, 255, 0.55),
    0 24px 48px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-text { width: 100%; max-width: 560px; margin-top: var(--sp-6); }
.hero-description p { margin: 0 0 var(--sp-3); color: var(--text-soft); }
.hero-description blockquote {
  margin: var(--sp-5) 0 var(--sp-3);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  color: var(--text);
}
.hero-description blockquote p { margin: 0; color: var(--text); }
.hero-text .listen-cta-grid { margin-top: var(--sp-5); }

/* Con JavaScript e movimento consentito, l'intestazione della home si apre e si chiude
   seguendo lo scorrimento: site.js regola altezza e trasformazioni. */
.collapse-ok .page-home .site-header {
  padding-top: 0;
  overflow: hidden;
  overflow-anchor: none;
}
.collapse-ok .page-home .site-header > .wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--sp-4);
  pointer-events: none;
}
.collapse-ok .page-home .brand-logo,
.collapse-ok .page-home .brand-text,
.collapse-ok .page-home .site-nav { opacity: 0; }
.collapse-ok .page-home .hero-cover { position: relative; z-index: 2; will-change: transform, opacity; }
.collapse-ok .page-home .hero-text { will-change: opacity, transform; }
.collapse-ok .page-home .header-tools { z-index: 3; }

/* ---------------------------------------------------------------- elementi comuni */

.section-label {
  margin: 0 0 var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  margin: 0 0 var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-episode { background: var(--badge-ep-bg); color: var(--badge-ep-text); }
.badge-bonus { background: var(--badge-bonus-bg); color: var(--badge-bonus-text); }

/* ---------------------------------------------------------------- home */

.featured {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding: var(--sp-4);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 3px;
  background: var(--brand-line);
}
/* immagini delle puntate: sempre orizzontali, 16:9 come i file da 1600x900 */
.featured-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.featured-body { padding: 0; }
.featured-label { color: var(--accent); margin-bottom: var(--sp-2); }
.featured h2 {
  margin: var(--sp-1) 0 var(--sp-2);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.featured h2 a { color: var(--text); text-decoration: none; }
.featured h2 a:hover { color: var(--accent); }
.featured-text { margin: 0 0 var(--sp-4); color: var(--text-soft); font-size: var(--fs-sm); }
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.featured-actions .listen-cta-grid { justify-content: flex-start; gap: var(--sp-2); }
.featured-read { font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }

@media (min-width: 680px) {
  .featured { grid-template-columns: 280px 1fr; align-items: center; }
}

.post-list > .section-label { margin-top: var(--sp-7); }

.intro {
  margin-bottom: var(--sp-7);
  color: var(--text-soft);
}
.intro p { margin: 0 0 var(--sp-3); }
.intro blockquote {
  margin: var(--sp-5) 0 var(--sp-3);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  color: var(--text);
}
.intro blockquote p { margin: 0; }

.next-episode { margin-bottom: var(--sp-7); }

.teaser {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.teaser::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-line);
}

@media (min-width: 640px) {
  .teaser { grid-template-columns: 200px 1fr; align-items: center; }
}

.teaser-media { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.teaser-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 14, 30, 0.55);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.teaser-image.is-blurred { filter: blur(14px); transform: scale(1.12); }
.teaser-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.teaser-title {
  margin: 0 0 var(--sp-1);
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
}
.teaser p { margin: 0 0 var(--sp-2); color: var(--text-soft); font-size: var(--fs-xs); line-height: 1.5; }
.teaser .section-label { color: var(--accent); margin-bottom: var(--sp-2); }
.teaser-when { color: var(--text) !important; font-weight: 600; margin-bottom: 0 !important; }
.countdown { color: var(--blue) !important; font-weight: 600; min-height: 1.5em; }

.latest { margin-bottom: var(--sp-7); }

.season-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.season-cta p { flex: 1 1 260px; margin: 0; color: var(--text-soft); font-size: var(--fs-sm); }

.btn {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); color: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

@media (max-width: 768px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3); }
.card-title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; }
.card-date { color: var(--text-muted); font-size: var(--fs-xs); }

.post-item {
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.post-item:first-child { padding-top: 0; }
.post-item h2 {
  margin: var(--sp-2) 0 var(--sp-2);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.post-item h2 a { color: var(--text); text-decoration: none; }
.post-item h2 a:hover { color: var(--accent); }
.post-item > p:last-child { margin: 0; color: var(--text-soft); }

.more { margin: var(--sp-6) 0 0; text-align: center; font-weight: 600; }
.more a { text-decoration: none; }

/* ---------------------------------------------------------------- archivio */

.season-block { margin-bottom: var(--sp-7); }
.season-block h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-md); }
.season-block h2 span { color: var(--text-muted); font-weight: 500; }

.archive-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.archive-list li { border-bottom: 1px solid var(--border); }
.archive-list a, .archive-list .upcoming {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-3) var(--sp-1);
  color: var(--text);
  text-decoration: none;
}
.archive-list li.upcoming { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: var(--sp-3); padding: var(--sp-3) var(--sp-1); color: var(--text-muted); }
.archive-list a:hover .ar-title { color: var(--accent); }
.ar-num { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-xs); }
.ar-title { font-weight: 600; }
.ar-date { color: var(--text-muted); font-size: var(--fs-xs); text-align: right; }
.upcoming .ar-title { font-weight: 500; }

@media (max-width: 560px) {
  .archive-list a, .archive-list li.upcoming { grid-template-columns: 3.5rem 1fr; }
  .ar-date { grid-column: 2; text-align: left; }
}

/* ---------------------------------------------------------------- pagina */

.content-header { margin-bottom: var(--sp-6); }

.content-header h1 {
  margin: var(--sp-2) 0 var(--sp-3);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.subtitle { margin: 0; color: var(--text-soft); font-size: var(--fs-md); line-height: 1.5; }

.listen-cta {
  margin: var(--sp-6) 0 var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  text-align: center;
}
.listen-cta-title {
  margin: 0 0 var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.listen-cta-grid {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.listen-cta-grid a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: var(--fs-xs);
  line-height: 1.2;
  text-decoration: none;
}
.listen-cta-grid a:hover { color: var(--text); border-color: var(--text-muted); }
.btn-label { display: flex; flex-direction: column; text-align: left; color: var(--text-muted); }
.btn-label strong { color: var(--text); font-weight: 600; font-size: var(--fs-sm); }


.hero-image { margin: var(--sp-6) calc(-1 * var(--sp-4)) var(--sp-6); }
.hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }

.content-body h2 {
  margin: var(--sp-7) 0 var(--sp-3);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.content-body h3 { margin: var(--sp-6) 0 var(--sp-2); font-size: var(--fs-md); }
.content-body p { margin: 0 0 var(--sp-4); }
.content-body ul { padding-left: 1.2em; }
.content-body li { margin-bottom: var(--sp-2); }
.content-body strong { color: var(--text); }

.content-body blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-style: italic;
}
.content-body blockquote p { margin: 0; }

.story > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font-family: var(--font-serif);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 0.82;
  color: var(--accent);
}

.allarm {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
}
.allarm-label {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.allarm-bar {
  position: relative;
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-subtle);
}
.allarm-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--meter);
  background-size: 400px 100%;
}
.allarm-value { font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.allarm-value small { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }

.sources {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.sources h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-base); }
.sources ul { margin: 0; padding-left: 1.2em; color: var(--text-soft); }
.sources li { margin-bottom: var(--sp-2); }

.share-bar {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.share {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.share:hover { border-color: var(--text-muted); }

.content-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.content-nav a { display: flex; flex-direction: column; gap: var(--sp-1); color: var(--text); text-decoration: none; }
.content-nav a:hover .title { color: var(--accent); }
.content-nav .next { grid-column: 2; text-align: right; }
.content-nav .label { color: var(--text-muted); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.content-nav .title { font-size: var(--fs-sm); font-weight: 600; }
.content-nav .upcoming .title { color: var(--text-soft); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: var(--sp-8);
  padding-block: var(--sp-6) var(--sp-7);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links { margin: var(--sp-4) 0 var(--sp-2); color: var(--text-muted); font-size: var(--fs-sm); }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.prompt { margin: var(--sp-3) 0 0; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.6875rem; }
.prompt-path { color: var(--blue); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
