/* ספריית השראה: Jennie's palette (brand/brand.json). Red is a small accent only. */
:root {
  --paper: #efebe2;
  --cream: #e8e4d9;
  --surface: #f7f5ef;
  --ink: #2c2c2c;
  --ink-2: #57544e;
  --sage: #6b7a70;
  --sage-soft: rgba(107, 122, 112, .13);
  --red: #A6342E;
  --line: rgba(44, 44, 44, .10);
  --line-2: rgba(44, 44, 44, .18);
  --shadow: 0 1px 2px rgba(44, 44, 44, .05), 0 8px 24px -12px rgba(44, 44, 44, .18);
  --shadow-up: 0 2px 4px rgba(44, 44, 44, .06), 0 18px 40px -16px rgba(44, 44, 44, .30);
  --r: 20px;
  --gutter: 16px;
  --max: 1240px;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 28px; } .toolbar { position: sticky !important; top: 0; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 160px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: 96px; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* header */
.site-head {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { position: relative; width: 26px; height: 26px; flex: none; }
.brand-mark i { position: absolute; width: 15px; height: 19px; border-radius: 5px; border: 1.8px solid var(--ink); background: var(--paper); }
.brand-mark i:nth-child(1) { inset-inline-start: 0; top: 4px; transform: rotate(-9deg); }
.brand-mark i:nth-child(2) { inset-inline-start: 5px; top: 2px; transform: rotate(3deg); }
.brand-mark i:nth-child(3) { inset-inline-start: 10px; top: 5px; transform: rotate(12deg); border-color: var(--ink); }
.brand-mark i:nth-child(3)::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--red); top: 3px; inset-inline-end: 3px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: 999px; }
.nav-link { text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(44,44,44,.08); }
@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
  .nav-link { padding: 7px 11px; font-size: 14px; }
}

/* type */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.lead { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 38em; margin: 14px 0 0; line-height: 1.6; }
.eyebrow { margin: 0 0 14px; color: var(--sage); font-weight: 500; font-size: 14px; letter-spacing: .02em; }

/* home */
.hero { padding-top: clamp(36px, 8vw, 88px); padding-bottom: clamp(24px, 4vw, 40px); }
.hero h1 { font-size: clamp(54px, 13vw, 132px); line-height: .92; }
.hero h1 span { color: var(--sage); }
.entries { display: grid; gap: 16px; grid-template-columns: 1fr; padding-bottom: 12px; }
@media (min-width: 760px) { .entries { grid-template-columns: 1fr 1fr; gap: 22px; } }
.entry {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.entry-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); }
.entry-motion .entry-mosaic { grid-template-columns: repeat(2, 1fr); }
.entry-mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; background: var(--cream); }
.entry-3d .entry-mosaic { grid-template-columns: repeat(2, 1fr); }
.entry-body { position: relative; display: grid; gap: 4px; padding: 18px 20px 20px; }
.entry-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.entry-meta { color: var(--sage); font-size: 14px; font-weight: 500; }
.entry-blurb { color: var(--ink-2); font-size: 15px; padding-inline-end: 52px; }
.entry-go { position: absolute; inset-inline-end: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 20px; transition: transform .3s var(--ease); }
.entry:hover .entry-go { transform: translateX(-4px); }
.steps { padding-top: clamp(40px, 7vw, 72px); }
.steps h2, .inspo h2 { font-size: clamp(30px, 5vw, 46px); }
.steps ol { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; display: grid; gap: 4px; align-content: start; }
.step-n { font-size: 44px; font-weight: 800; color: var(--sage); line-height: 1; opacity: .55; }
.step-t { font-weight: 700; font-size: 19px; margin-top: 6px; }
.step-d { color: var(--ink-2); font-size: 15px; }
.ai-box { padding-top: clamp(28px, 5vw, 48px); }
.ai-in { background: var(--ink); color: var(--paper); border-radius: 26px; padding: clamp(22px, 4vw, 36px); }
.ai-in h2 { font-size: clamp(24px, 3.6vw, 32px); }
.ai-in p { color: rgba(239, 235, 226, .78); margin: 10px 0 16px; max-width: 40em; }
.ai-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-line code { font-family: var(--font); font-size: 14.5px; background: rgba(239, 235, 226, .1); border: 1px solid rgba(239, 235, 226, .16); padding: 9px 12px; border-radius: 12px; overflow-wrap: anywhere; flex: 1 1 260px; unicode-bidi: plaintext; text-align: start; }
.ai-in .btn-ghost { color: var(--paper); border-color: rgba(239, 235, 226, .3); }
.ai-in .btn-ghost:hover { background: rgba(239, 235, 226, .1); }

/* library page */
.lib-intro { padding-top: clamp(28px, 6vw, 64px); padding-bottom: 18px; }
.lib-intro h1 { font-size: clamp(46px, 10vw, 96px); line-height: .95; }
.how-mini { list-style: none; counter-reset: how; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 18px 0 0; padding: 0; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.how-mini li { counter-increment: how; display: inline-flex; align-items: center; gap: 8px; }
.how-mini li::before { content: counter(how); width: 22px; height: 22px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.toolbar {
  position: relative; z-index: 20; background: rgba(239, 235, 226, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.toolbar.is-stuck { border-bottom-color: var(--line); }
.toolbar-in { display: grid; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; transition: border-color .2s, box-shadow .2s; max-width: 560px; }
.search:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(107, 122, 112, .14); }
.search svg { font-size: 19px; color: var(--sage); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; height: 100%; }
.search input::placeholder { color: rgba(87, 84, 78, .62); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.chips { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .chips { margin-inline: 0; padding-inline: 0 24px; -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
}
.chips-lbl { color: var(--sage); font-size: 13px; font-weight: 500; margin-inline-end: 4px; white-space: nowrap; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--line-2); }
.chip .n { font-size: 12px; color: var(--sage); font-weight: 400; }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-on .n { color: rgba(239, 235, 226, .65); }
.results { padding-top: 14px; }
.count { margin: 0 0 12px; color: var(--sage); font-size: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-motion { grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-motion { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid { gap: 18px; } .grid-3d { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); } }
@media (min-width: 980px) { .grid-motion { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }

/* card */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
  scroll-margin-top: 170px;
}
.card[hidden] { display: none; }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); } }
.card.is-picked { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.card:target { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(107, 122, 112, .45), var(--shadow); } }
.media { position: relative; overflow: hidden; border-radius: calc(var(--r) - 6px); margin: 6px 6px 0; background: var(--cream); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.grid-motion .media { background: var(--paper); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; transition: opacity .25s; }
.media.is-playing video { opacity: 1; }
.play {
  position: absolute; inset-inline-end: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(247, 245, 239, .86); color: var(--ink); display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 2px 8px rgba(44, 44, 44, .15); transition: opacity .2s, transform .2s;
}
.play svg { fill: currentColor; stroke: none; transform: translateX(1px); }
@media (hover: hover) and (pointer: fine) { .play { opacity: 0; } .card:hover .play { opacity: 0; } }
.media.is-playing .play { opacity: 0; transform: scale(.8); }
.picked-badge {
  position: absolute; top: 10px; inset-inline-start: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--red);
  color: #fff; display: grid; place-items: center; font-size: 16px; transform: scale(0); transition: transform .3s var(--ease);
  box-shadow: 0 2px 8px rgba(166, 52, 46, .35);
}
.picked-badge svg { stroke-width: 2.6; }
.card.is-picked .picked-badge { transform: scale(1); }
.body { padding: 12px 14px 4px; display: grid; gap: 3px; flex: 1; align-content: start; }
.body h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.en { margin: 0; color: var(--sage); font-size: 13px; line-height: 1.35; }
.desc { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.tag { font-size: 12px; background: var(--sage-soft); color: #4f5d54; padding: 2px 9px; border-radius: 999px; }
.tag-cat { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.credit { margin: 6px 0 0; font-size: 12.5px; color: var(--sage); }
.credit a { color: var(--ink-2); text-underline-offset: 2px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 8px 8px 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.pick { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; padding: 6px 8px; border-radius: 12px; user-select: none; -webkit-tap-highlight-color: transparent; min-height: 40px; }
.pick:hover { background: var(--sage-soft); }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 22px; height: 22px; border-radius: 7px; border: 1.6px solid rgba(44, 44, 44, .38); display: grid; place-items: center; font-size: 15px; color: transparent; background: var(--surface); transition: background .2s, border-color .2s, color .2s; }
.box svg { stroke-width: 2.8; }
.pick input:checked + .box { background: var(--red); border-color: var(--red); color: #fff; }
.pick input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick-t { font-weight: 500; font-size: 14.5px; }
.files { position: relative; }
.files summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; padding: 8px 10px; border-radius: 12px; min-height: 40px; }
.files summary::-webkit-details-marker { display: none; }
.files summary:hover { background: var(--sage-soft); color: var(--ink); }
.files summary svg { font-size: 16px; }
.files[open] summary { background: var(--sage-soft); color: var(--ink); }
.files ul {
  position: absolute; z-index: 15; bottom: calc(100% + 6px); inset-inline-end: 0; width: min(300px, 78vw); margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-up);
}
@media (max-width: 719px) {
  .files ul { position: fixed; left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 45; padding: 8px; }
}
.files li a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.files li a:hover { background: var(--sage-soft); }
.f-name { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; text-align: right; }
.f-meta { font-size: 12px; color: var(--sage); }
@media (max-width: 559px) {
  .grid-3d .body { padding: 10px 11px 2px; }
  .grid-3d .body h3 { font-size: 15px; }
  .grid-3d .tags .tag:nth-child(n+3) { display: none; }
  .grid-3d .foot { padding: 4px; }
  .grid-3d .pick { padding: 6px; gap: 7px; }
  .grid-3d .pick-t { font-size: 13.5px; }
  .grid-3d .files summary span { display: none; }
  .grid-3d .files summary { padding: 8px 11px; }
}

.empty { text-align: center; padding: 48px 16px 24px; color: var(--ink-2); }
.empty-t { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.empty .btn { margin-top: 12px; }

/* inspiration */
.inspo { padding-top: clamp(48px, 8vw, 88px); }
.inspo-grid { display: grid; gap: 12px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .inspo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .inspo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.inspo-card { display: grid; gap: 6px; align-content: start; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.inspo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.inspo-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inspo-name { font-weight: 700; font-size: 17px; }
.inspo-top svg { color: var(--sage); font-size: 18px; }
.inspo-note { color: var(--ink-2); font-size: 14.5px; }
.inspo-domain { color: var(--sage); font-size: 12.5px; text-align: right; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn svg { font-size: 17px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1f1f1f; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--sage-soft); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--sage-soft); cursor: pointer; font-size: 18px; }

/* floating copy button */
.fab {
  position: fixed; z-index: 40; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 0);
  display: flex; gap: 6px; padding: 6px; background: var(--ink); border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(44, 44, 44, .55), 0 2px 6px rgba(44, 44, 44, .2);
  animation: fab-in .45s var(--ease);
}
.fab[hidden] { display: none; }
@media (min-width: 900px) { .fab { left: auto; right: auto; inset-inline-end: 28px; transform: none; bottom: 28px; } }
@keyframes fab-in { from { opacity: 0; translate: 0 16px; } }
.fab button { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; height: 46px; }
.fab-copy { background: var(--paper); color: var(--ink); padding: 0 20px 0 18px; font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.fab-copy:hover { background: #fff; }
.fab-copy svg { font-size: 18px; }
.fab-list { background: transparent; color: var(--paper); padding: 0 12px 0 14px; font-weight: 500; font-size: 15px; }
.fab-list:hover { background: rgba(239, 235, 226, .1); }
.fab-list svg { font-size: 19px; }
.fab-list span { min-width: 22px; height: 22px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.fab.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { scale: 1.05; } }
.fab.is-done .fab-copy { background: var(--sage); color: #fff; }

/* tray + manual copy dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(44, 44, 44, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tray { width: min(460px, calc(100vw - 24px)); border-radius: 24px; box-shadow: var(--shadow-up); padding: 18px; max-height: min(640px, 86vh); }
.tray[open] { display: flex; flex-direction: column; }
@media (max-width: 599px) {
  .tray { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.tray-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tray-head h2 { font-size: 24px; }
.tray-list { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 2px; }
.tray-list li { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 4px; border-bottom: 1px solid var(--line); }
.tray-list .t-name { flex: 1; min-width: 0; display: grid; }
.tray-list .t-name b { font-weight: 500; }
.tray-list .t-name small { color: var(--sage); font-size: 12.5px; }
.tray-list button { border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 13.5px; padding: 6px 10px; border-radius: 10px; }
.tray-list button:hover { background: var(--sage-soft); color: var(--ink); }
.tray-empty { color: var(--sage); padding: 14px 0; }
.tray-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tray-foot .btn-ink { flex: 1; }
.tray-peek { margin-top: 12px; font-size: 13px; color: var(--sage); }
.tray-peek summary { cursor: pointer; }
.tray-peek pre { unicode-bidi: plaintext; text-align: start; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--cream); padding: 10px 12px; border-radius: 12px; color: var(--ink-2); max-height: 220px; overflow: auto; }
.manual { width: min(520px, calc(100vw - 24px)); border-radius: 22px; padding: 20px; }
.manual h2 { font-size: 22px; }
.manual p { color: var(--ink-2); margin: 8px 0 12px; }
.manual textarea { unicode-bidi: plaintext; width: 100%; min-height: 220px; font: 13px/1.5 ui-monospace, Menlo, monospace; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; background: var(--paper); color: var(--ink); margin-bottom: 12px; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-up);
  border-radius: 16px; padding: 12px 18px; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease); width: max-content; max-width: calc(100vw - 32px); text-align: center;
}
.toast small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { left: auto; inset-inline-end: 28px; bottom: 96px; transform: translateY(12px); } .toast.is-on { transform: none; } }

/* footer */
.site-foot { max-width: var(--max); margin: clamp(56px, 9vw, 96px) auto 0; padding: 22px var(--gutter) 28px; border-top: 1px solid var(--line); color: var(--sage); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--ink-2); text-underline-offset: 2px; }

.nf .nf-links { display: flex; gap: 10px; margin-top: 22px; }

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