/* Rogue-Academy design system "Katakomben".
 * Calm, high-quality, a little mysterious: soot and basalt, parchment text,
 * muted bronze accents, patina green for "secure". Mistakes are ochre, never red.
 */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/eb-garamond-latin-wght-normal.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: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/eb-garamond-latin-ext-wght-normal.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: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/eb-garamond-latin-wght-italic.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: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/eb-garamond-latin-ext-wght-italic.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.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;
}

:root {
  color-scheme: dark;

  /* Surfaces: soot → basalt → worn stone */
  --bg: #121110;
  --bg-deep: #0b0a09;
  --surface: #1b1917;
  --surface-2: #24211e;
  --surface-3: #2e2a26;
  --line: #3a3530;
  --line-strong: #4d463f;

  /* Text: parchment */
  --text: #ece3d0;
  --text-muted: #b5aa95;
  --text-faint: #8a8070;

  /* Accents */
  --bronze: #c9a463;
  --bronze-strong: #e0bd7a;
  --bronze-deep: #8a6b37;
  --on-bronze: #1a140b;
  --patina: #7fb39a;          /* "secure", correct */
  --patina-bg: #1b2b24;
  --ochre: #d9a35a;           /* "not yet" — never red */
  --ochre-bg: #2f2416;
  --mist: #8fa8c4;            /* informational */
  --mist-bg: #1a2230;
  --ember: #e07b4f;           /* only for destructive admin actions */
  --ember-bg: #321b13;

  /* Type */
  --font-serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.9rem, 5vw, 2.6rem);
  --fs-3xl: clamp(2.3rem, 7vw, 3.4rem);

  /* Space, radius, motion */
  --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;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --tap: 44px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;

  /* Layers: overlays live directly under <body> and take their level from here */
  --z-nav: 10;
  --z-dialog: 50;
  --z-toast: 60;

  --content-width: 46rem;
  --wide-width: 72rem;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201, 164, 99, 0.08), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, 0.6), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
  letter-spacing: 0.005em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }

a { color: var(--bronze-strong); text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--bronze-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--bronze-deep); color: var(--text); }

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

/* Latin text is always set in the antiqua; markup: lang="la" or .latin */
.latin, [lang="la"] {
  font-family: var(--font-serif);
  /* "locl" off: EB Garamond would turn u into v for lang="la" — school books write u. */
  font-feature-settings: "liga", "kern", "locl" 0;
}
.latin-large { font-family: var(--font-serif); font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.35; }
.ending { color: var(--bronze-strong); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: var(--sp-2);
}
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* The skip link becomes visible as soon as it gets keyboard focus. */
.skip-link:focus, .skip-link:focus-visible {
  position: fixed; top: var(--sp-2); left: var(--sp-2); z-index: var(--z-toast);
  width: auto; height: auto; margin: 0; padding: var(--sp-2) var(--sp-4); clip: auto; overflow: visible;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--bronze); border-radius: var(--radius);
}
/* Focus targets that are not controls (main after navigation, the dialog box itself). */
main[tabindex="-1"]:focus, .dialog:focus { outline: none; }

/* ---------- Layout ---------- */

.page { width: 100%; max-width: var(--content-width); margin: 0 auto; padding: var(--sp-5) var(--sp-4) calc(var(--sp-7) + 64px); }
.page-wide { max-width: var(--wide-width); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

/* ---------- Navigation ---------- */

.topbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(18, 17, 16, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 600;
  color: var(--text); text-decoration: none; letter-spacing: 0.04em;
}
.brand svg { width: 26px; height: 26px; }
.brand-title { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--bronze); letter-spacing: 0.08em; }
.nav-links { display: flex; gap: var(--sp-1); }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-3);
  color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 500;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--bronze-strong); background: var(--surface-2); }
.nav-link svg { width: 20px; height: 20px; }

/* Bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 720px) {
  .topbar .nav-links.primary { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
    display: grid; grid-template-columns: repeat(var(--tabs, 3), 1fr);
    background: rgba(18, 17, 16, 0.96); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar .nav-link { flex-direction: column; gap: 2px; justify-content: center; min-height: 58px; font-size: var(--fs-xs); border-radius: 0; }
}

.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 14rem;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--sp-2); z-index: var(--z-dialog);
}
.menu-panel a, .menu-panel button {
  display: flex; width: 100%; align-items: center; min-height: var(--tap); padding: 0 var(--sp-3);
  color: var(--text); text-decoration: none; background: none; border: 0; border-radius: var(--radius-sm);
  font: inherit; font-size: var(--fs-sm); cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-5);
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 600; font-size: var(--fs-md); text-decoration: none;
  cursor: pointer; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-3); border-color: var(--bronze-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, var(--bronze-strong), var(--bronze));
  border-color: var(--bronze); color: var(--on-bronze);
  box-shadow: 0 6px 18px rgba(201, 164, 99, 0.18);
}
.btn-primary:hover { background: linear-gradient(180deg, #ecca8a, var(--bronze-strong)); color: var(--on-bronze); }
.btn-hero { min-height: 60px; padding: 0 var(--sp-6); font-size: var(--fs-lg); border-radius: var(--radius-lg); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-muted); font-weight: 500; }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-danger { background: var(--ember-bg); border-color: var(--ember); color: #ffd9c9; }
.btn-danger:hover { background: #4a2316; border-color: var(--ember); }
.btn-small { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border-radius: var(--radius-sm);
  background: transparent; border: 0; color: var(--text-muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Cards ---------- */

.card {
  background: linear-gradient(180deg, var(--surface), #181614);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card-tight { padding: var(--sp-4); }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color var(--dur), transform var(--dur) var(--ease); }
.card-link:hover { border-color: var(--bronze-deep); color: inherit; transform: translateY(-1px); }
.card h3 { margin-bottom: var(--sp-2); }

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: var(--sp-1); }
.field label, .label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }
.input, .select, textarea.input {
  width: 100%; min-height: var(--tap); padding: var(--sp-2) var(--sp-3);
  background: var(--bg-deep); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; font-size: 1.0625rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input:focus, .select:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(201, 164, 99, 0.18); }
.input-latin { font-family: var(--font-serif); font-size: 1.25rem; }
textarea.input { min-height: 5rem; resize: vertical; line-height: 1.5; }
.input.is-good { border-color: var(--patina); }
.input.is-warm { border-color: var(--ochre); }
.checkbox { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--bronze); }
.form-error { color: var(--ochre); font-size: var(--fs-sm); }

/* ---------- Chips (choices, features) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-4);
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text);
  font: inherit; font-size: var(--fs-md); cursor: pointer;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--bronze-deep); }
.chip[aria-pressed="true"], .chip.is-selected { background: #3a2f1c; border-color: var(--bronze); color: var(--bronze-strong); }
.chip.is-good { background: var(--patina-bg); border-color: var(--patina); color: var(--patina); }
.chip.is-warm { background: var(--ochre-bg); border-color: var(--ochre); color: var(--ochre); }
.chip.is-solution { border-style: dashed; border-color: var(--patina); }
.chip:disabled { cursor: default; }
.chip-latin { font-family: var(--font-serif); font-size: 1.2rem; }
.chip-group + .chip-group { margin-top: var(--sp-4); }
.chip-group-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: var(--sp-2); }

/* Choice list (bigger, one per row) */
.choices { display: grid; gap: var(--sp-2); }
.choice {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  min-height: 52px; padding: var(--sp-2) var(--sp-4); text-align: left;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer;
}
.choice:hover { border-color: var(--bronze-deep); }
.choice .key { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 6px; background: var(--surface-3); color: var(--text-faint); font-size: var(--fs-xs); flex: none; }
.choice[aria-pressed="true"] { border-color: var(--bronze); background: #2d2518; }
.choice.is-good { border-color: var(--patina); background: var(--patina-bg); }
.choice.is-warm { border-color: var(--ochre); background: var(--ochre-bg); }

/* Word tokens of a Latin sentence (tap, never drag) */
.tokens { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-2); align-items: flex-end; }
.token {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  min-height: var(--tap); padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm); border: 1px solid transparent; border-bottom: 2px solid var(--line-strong);
  background: transparent; color: var(--text);
  font-family: var(--font-serif); font-size: clamp(1.35rem, 4.5vw, 1.75rem); cursor: pointer;
}
.token:hover { background: var(--surface-2); }
.token[aria-pressed="true"] { background: #2d2518; border-color: var(--bronze); }
.token.is-good { border-bottom-color: var(--patina); }
.token.is-warm { border-bottom-color: var(--ochre); background: var(--ochre-bg); }
.token .role-tag { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--bronze); text-transform: uppercase; line-height: 1; margin-top: 2px; }
.token:disabled { cursor: default; }

/* ---------- Progress ---------- */

.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze-deep), var(--bronze)); border-radius: inherit; transition: width 400ms var(--ease); }
.dots { display: flex; gap: 6px; align-items: center; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); }
.dots span.done { background: var(--bronze); border-color: var(--bronze); }
.dots span.current { background: var(--text); border-color: var(--text); }

/* ---------- Notices, feedback ---------- */

.notice { border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); background: var(--surface-2); }
.notice-info { background: var(--mist-bg); border-color: #2f3d52; }
.notice-good { background: var(--patina-bg); border-color: #2f4d40; }
.notice-warm { background: var(--ochre-bg); border-color: #5a4220; }
.notice-danger { background: var(--ember-bg); border-color: #6b3220; }
.notice-title { font-weight: 600; margin-bottom: var(--sp-1); }
.notice-good .notice-title { color: var(--patina); }
.notice-warm .notice-title { color: var(--ochre); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: var(--surface-3); color: var(--text-muted); }
.badge-good { background: var(--patina-bg); color: var(--patina); }
.badge-warm { background: var(--ochre-bg); color: var(--ochre); }
.badge-bronze { background: #2d2518; color: var(--bronze-strong); }
.badge-info { background: var(--mist-bg); color: var(--mist); }

/* ---------- Dialog & toast (direct children of <body>) ---------- */

.dialog-backdrop {
  position: fixed; inset: 0; z-index: var(--z-dialog);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-4);
  background: rgba(5, 4, 3, 0.72);
}
.dialog {
  width: 100%; max-width: 32rem; max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: var(--sp-5);
}
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-5); }

.toast-host { position: fixed; left: 50%; bottom: calc(var(--sp-5) + 64px); transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: var(--sp-2); width: min(92vw, 28rem); }
.toast { background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow); animation: toast-in 220ms var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-2) var(--sp-3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--text-faint); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.table td.latin { font-size: 1.05rem; }
.paradigm td:first-child { color: var(--text-faint); }

/* ---------- Loading / skeleton ---------- */

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--radius-sm); min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--surface-3); border-top-color: var(--bronze); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */

.footer { text-align: center; padding: var(--sp-5) var(--sp-4) calc(var(--sp-5) + 64px); color: var(--text-faint); font-size: var(--fs-xs); }
.footer a { color: var(--text-faint); }
@media (min-width: 721px) { .footer { padding-bottom: var(--sp-5); } .page { padding-bottom: var(--sp-7); } }

/* Gentle entrance for main views */
.fade-in { animation: fade-in 260ms var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
