/* Pustaka AB — gaya situs publik */

:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #f0ebdf;
  --text: #1d2521;
  --muted: #5f6a64;
  --border: #e3dccb;
  --primary: #0f5132;
  --primary-strong: #0b3d26;
  --primary-soft: #e3efe7;
  --on-primary: #ffffff;
  --gold: #a87a1f;
  --gold-bright: #e0b85a;
  --gold-soft: #f6ecd6;
  --on-gold: #2a1e05;
  --shadow-sm: 0 1px 2px rgba(29, 37, 33, .06), 0 2px 8px rgba(29, 37, 33, .05);
  --shadow-md: 0 8px 24px rgba(29, 37, 33, .10);
  --shadow-book: 0 2px 4px rgba(0,0,0,.08), 0 14px 30px rgba(29, 37, 33, .18);
  --radius: 14px;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: Lora, Georgia, "Times New Roman", serif;
  --font-arabic: Amiri, "Traditional Arabic", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1412;
    --surface: #151d1a;
    --surface-2: #1b2522;
    --text: #e9ede9;
    --muted: #9aa6a0;
    --border: #26322d;
    --primary: #3fb27f;
    --primary-strong: #5cc795;
    --primary-soft: #16302a;
    --on-primary: #06140d;
    --gold: #d9b25c;
    --gold-bright: #e6c271;
    --gold-soft: #2b2516;
    --on-gold: #1d1404;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,.35);
    --shadow-book: 0 2px 4px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1412;
  --surface: #151d1a;
  --surface-2: #1b2522;
  --text: #e9ede9;
  --muted: #9aa6a0;
  --border: #26322d;
  --primary: #3fb27f;
  --primary-strong: #5cc795;
  --primary-soft: #16302a;
  --on-primary: #06140d;
  --gold: #d9b25c;
  --gold-bright: #e6c271;
  --gold-soft: #2b2516;
  --on-gold: #1d1404;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-book: 0 2px 4px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* --- dasar --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--primary); color: var(--on-primary); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* --- tombol --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
  text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-gold { background: var(--gold-bright); color: var(--on-gold); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 12px; font-size: .86rem; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-weight: 500; font-size: .92rem; }
.link-btn:hover { text-decoration: underline; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  color: var(--primary); background: var(--primary-soft);
}
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.brand-tagline { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .94rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-search { position: relative; display: flex; align-items: center; }
.header-search svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.header-search input {
  width: 220px; padding: 9px 12px 9px 36px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-size: .9rem; transition: width .2s, border-color .2s;
}
.header-search input:focus { outline: none; border-color: var(--primary); width: 260px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .header-search { display: none; }
}
@media (max-width: 520px) {
  .brand-tagline { display: none; }
  .support-link span { display: none; }
  .support-link { padding: 9px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; padding: 8px 16px 16px; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
}

/* --- hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 400px at 85% 10%, color-mix(in srgb, var(--gold-bright) 18%, transparent), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4l6.5 15.5L54 26l-15.5 6.5L32 48l-6.5-15.5L10 26l15.5-6.5z' fill='none' stroke='%23b8892b' stroke-opacity='.12' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero-salawat { font-family: var(--font-arabic); font-size: 1.35rem; color: var(--gold); margin-bottom: 10px; text-align: left; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--primary); font-weight: 500; }
.hero-lead { margin-top: 16px; font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.hero-search {
  position: relative; display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 560px;
  padding: 6px 6px 6px 44px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.hero-search:focus-within { border-color: var(--primary); }
.hero-search svg { position: absolute; left: 16px; color: var(--muted); width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 1rem; }
.hero-search input:focus { outline: none; }
.hero-stats { display: flex; gap: 36px; margin: 28px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .82rem; color: var(--muted); }
.hero-stats dd { margin: 0; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: var(--text); }

.hero-feature {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center;
  padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.hero-feature-cover .cover { border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-book); transition: transform .3s; }
.hero-feature-cover:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.hero-feature-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero-feature-body h2 { font-size: 1.3rem; }
.hero-feature-body h2 a { color: var(--text); }
.hero-feature-body p:not(.muted) { font-size: .92rem; color: var(--muted); }
.hero-feature .btn-row { margin-top: 6px; }
@media (max-width: 480px) {
  .hero { padding: 36px 0 44px; }
  .hero-feature { grid-template-columns: 100px 1fr; padding: 16px; gap: 16px; }
  .hero-feature-body p:not(.muted) { display: none; }
  .hero-stats { gap: 24px; }
  .hero-search { padding-left: 40px; }
  .hero-search .btn { padding: 10px 14px; }
}

/* --- seksi --- */
.section { padding: 48px 16px 8px; }
@media (min-width: 640px) { .section { padding: 56px 24px 8px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.catalog-tools { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.catalog-tools select {
  padding: 8px 32px 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a948f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500;
  text-decoration: none !important; transition: border-color .15s, background .15s;
}
.chip span { font-size: .75rem; color: var(--muted); }
.chip:hover { border-color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip.is-active span { color: inherit; opacity: .8; }

/* --- kartu buku --- */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
@media (min-width: 560px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 820px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 26px; } }
@media (min-width: 1080px) { .book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .book-grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.book-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.book-card-cover { display: block; position: relative; perspective: 800px; }
.cover {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 3px 8px 8px 3px; background: var(--surface-2);
  box-shadow: var(--shadow-book);
  transition: transform .3s ease, box-shadow .3s ease;
}
.book-card-cover::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 8%;
  border-radius: 3px 0 0 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.12) 40%, transparent);
}
.book-card:hover .cover { transform: translateY(-5px); box-shadow: var(--shadow-book), 0 18px 32px rgba(0,0,0,.12); }
.book-card-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.book-card-title { font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-card-title a { color: var(--text); }
.book-card-author { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.cover-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center;
  background: linear-gradient(160deg, var(--primary), var(--primary-strong));
  color: #fdf6e3;
}
:root[data-theme="dark"] .cover-placeholder { background: linear-gradient(160deg, #1d5a40, #0f3324); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover-placeholder { background: linear-gradient(160deg, #1d5a40, #0f3324); } }
.cp-ornament { font-size: 1.8rem; color: var(--gold-bright); line-height: 1; }
.cp-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(.8rem, 2.4vw, 1.05rem); line-height: 1.3; }
.cp-author { font-size: .72rem; opacity: .8; }

/* --- paginasi --- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 44px 0 8px; }
.page-link {
  min-width: 40px; padding: 8px 12px; border-radius: 10px; text-align: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .9rem; text-decoration: none !important;
}
a.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.is-current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.page-link.is-disabled { opacity: .45; }
.page-gap { padding: 8px 4px; color: var(--muted); }

/* --- empty state --- */
.empty-state { text-align: center; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-icon { font-size: 2.6rem; color: var(--gold); line-height: 1; }
.empty-state .btn { margin-top: 10px; }
.page-404 { padding: 96px 16px; }
.page-404 h1 { font-size: 2rem; }

/* --- lanjut membaca --- */
.continue-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.continue-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none !important; transition: border-color .15s, box-shadow .15s;
}
.continue-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.continue-item img, .continue-item .ci-ph { width: 56px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; background: var(--primary); box-shadow: var(--shadow-sm); }
.ci-title { font-weight: 600; font-size: .94rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.ci-bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.ci-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold-bright)); }

/* --- terpopuler --- */
.popular-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.popular-list li { display: grid; grid-template-columns: 28px 52px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius); }
.popular-list li:hover { background: var(--surface); }
.popular-rank { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--gold); text-align: center; }
.popular-cover .cover { width: 52px; border-radius: 2px 4px 4px 2px; }
.popular-title { color: var(--text); font-weight: 600; line-height: 1.3; }
.popular-list p { font-size: .82rem; }

/* --- banner dukungan --- */
.support-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #f4efe1; position: relative; overflow: hidden;
}
:root[data-theme="dark"] .support-banner { background: linear-gradient(135deg, #123c2b, #1d5a40); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .support-banner { background: linear-gradient(135deg, #123c2b, #1d5a40); } }
.support-banner h2 { font-size: 1.45rem; color: #fff; }
.support-banner p { margin-top: 6px; opacity: .85; max-width: 620px; }

/* --- detail buku --- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; font-size: .86rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.book-detail { display: grid; gap: 32px; padding-top: 26px; padding-bottom: 16px; }
@media (min-width: 820px) { .book-detail { grid-template-columns: 300px 1fr; gap: 56px; padding-top: 34px; } }
.book-detail-cover { max-width: 280px; margin: 0 auto; width: 100%; }
@media (min-width: 820px) { .book-detail-cover { position: sticky; top: 96px; align-self: start; max-width: none; } }
.book-detail-cover .cover { box-shadow: var(--shadow-book), 0 30px 60px rgba(0,0,0,.12); }
.book-detail-main { min-width: 0; }
.book-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; margin-top: 12px; }
.book-author { margin-top: 10px; color: var(--muted); font-size: 1.02rem; }
.book-author strong { color: var(--text); font-weight: 600; }
.book-actions { margin-top: 24px; }
.progress-note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.book-section { margin-top: 40px; }
.book-section h2 { font-size: 1.25rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.prose { font-size: 1.02rem; line-height: 1.8; max-width: 72ch; }
.prose p + p { margin-top: 1em; }
.meta-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; margin: 0; }
.meta-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 500; text-align: right; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-size: .9rem; }
.share-link {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: .84rem; cursor: pointer; text-decoration: none !important;
}
.share-link:hover { border-color: var(--primary); color: var(--primary); }

/* --- footer --- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.footer-about p { margin-top: 14px; color: var(--muted); font-size: .92rem; max-width: 460px; }
.footer-about .footer-salawat { font-family: var(--font-arabic); font-size: 1.25rem; color: var(--gold); text-align: left; }
.footer-title { font-family: var(--font-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.footer-links a { color: var(--text); }
.footer-bottom { padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--muted); }

/* --- toast --- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .9rem; box-shadow: var(--shadow-md);
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
