/* Poteau Rose — feuille de style */
:root {
  --paper: #fbf6f2;
  --paper-2: #f5ebe5;
  --card: #ffffff;
  --ink: #261a1e;
  --ink-2: #5a464c;
  --muted: #8b767c;
  --line: #ead9d3;
  --rose: #d6336c;
  --rose-deep: #a3194a;
  --blush: #fce4ec;
  --blush-2: #f8cfdc;
  --shadow: 0 1px 2px rgb(60 20 35 / .05), 0 10px 30px -12px rgb(60 20 35 / .18);
  --radius: 20px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1416; --paper-2: #241a1d; --card: #261c20;
    --ink: #f7ecef; --ink-2: #d4c1c7; --muted: #a08d93; --line: #3a2c31;
    --rose: #f2658f; --rose-deep: #ff8fb0; --blush: #3a2029; --blush-2: #4d2634;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 30px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--rose) 45%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--rose); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--blush-2); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(720px + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(1100px + 2 * var(--gutter)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0; font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose);
  display: inline-flex; align-items: center; gap: .35em;
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: italic 600 1.45rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 15px; height: 25px; flex: none; transition: transform .3s; }
.brand:hover .mark { transform: rotate(-8deg); }
.brand--lg { font-size: 2rem; }
.brand--lg .mark { width: 20px; height: 33px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  white-space: nowrap; text-decoration: none; font: 500 .92rem/1 var(--sans); padding: 10px 14px; border-radius: 999px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--blush); color: var(--rose-deep); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.topbar__tools { display: flex; gap: 4px; }
.iconbtn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: var(--ink);
  transition: background .2s;
}
.iconbtn:hover { background: var(--blush); color: var(--rose-deep); }
.menu-toggle { display: none; }

@media (max-width: 1180px) {
  .menu-toggle { display: grid; }
  .topbar__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px var(--gutter) 22px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 1.05rem; padding: 14px 16px; border-radius: 14px; }
}

/* ---------- Masthead (accueil) ---------- */
.masthead {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
}
.masthead::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 22% 40%, var(--blush-2), transparent 70%),
    radial-gradient(35% 45% at 80% 30%, var(--blush), transparent 70%);
  opacity: .9;
}
.masthead__kicker { margin: 0 0 18px; font: 600 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.masthead__title {
  margin: 0; font: 700 clamp(3.4rem, 13vw, 9.5rem)/.9 var(--serif); letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
}
.masthead__title em { font-style: italic; font-weight: 500; color: var(--rose); }
.masthead__tagline { margin: 22px auto 0; max-width: 34ch; font: italic 400 clamp(1.15rem, 2.4vw, 1.5rem)/1.4 var(--serif); color: var(--ink-2); }
.masthead__cats { list-style: none; padding: 0; margin: 38px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.masthead__cats a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; text-align: left;
  padding: 14px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.masthead__cats a:hover { transform: translateY(-2px); border-color: var(--rose); color: var(--ink); }
.masthead__cats span { font: 600 1rem/1.25 var(--serif); }
.masthead__cats small { font-size: .8rem; color: var(--muted); }

/* ---------- En-têtes de page ---------- */
.pagehead { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.pagehead__title { margin: 10px 0 0; font: 650 clamp(2.2rem, 6vw, 4rem)/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.pagehead__sub { margin: 12px 0 0; color: var(--muted); }
.pagehead--author { display: flex; align-items: center; gap: 22px; }

/* ---------- Avatars, puces, méta ---------- */
.avatar {
  --h: 340; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: hsl(var(--h) 70% 88%); color: hsl(var(--h) 55% 30%); font: 700 .85rem/1 var(--sans); letter-spacing: .02em;
}
@media (prefers-color-scheme: dark) { .avatar { background: hsl(var(--h) 35% 28%); color: hsl(var(--h) 70% 86%); } }
.avatar--sm { width: 26px; height: 26px; font-size: .68rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar--xl { width: 88px; height: 88px; font-size: 1.8rem; font-family: var(--serif); }
.chip {
  display: inline-block; text-decoration: none; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--rose-deep); background: var(--blush); padding: 7px 10px; border-radius: 999px; transition: background .2s;
}
.chip:hover { background: var(--blush-2); color: var(--rose-deep); }
.card__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .84rem; color: var(--muted); }
.meta a { text-decoration: none; }
.meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.meta__item { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { opacity: .8; }

/* ---------- Listes ---------- */
.empty { text-align: center; color: var(--muted); font: italic 1.2rem var(--serif); padding: 40px 0; }
.list { padding-bottom: clamp(48px, 8vw, 96px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 36px); }
/* Grilles : 3 colonnes, quelques cartes en demi-largeur pour que la dernière ligne soit pleine */
@media (min-width: 1000px) {
  .grid--mix { grid-template-columns: repeat(6, 1fr); }
  .grid--mix > .card { grid-column: span 2; }
  .grid--mix > .card--half { grid-column: span 3; }
  .card--half .card__media { aspect-ratio: 16 / 10; }
}
.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(60 20 35 / .06), 0 22px 40px -16px rgb(60 20 35 / .28); }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blush); }
.card__media img, .feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.card:hover .card__media img, .feature:hover .feature__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.card__title { margin: 0; font: 600 1.38rem/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.card__title a { text-decoration: none; background: linear-gradient(var(--blush-2), var(--blush-2)) 0 92% / 0 .35em no-repeat; transition: background-size .35s; }
.card:hover .card__title a { background-size: 100% .35em; color: var(--ink); }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.lock-tag { color: var(--muted); font-weight: 500; font-style: italic; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blush), var(--blush-2)); }
.noimg span { font: italic 600 2rem var(--serif); color: var(--rose); opacity: .7; }

.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; margin-bottom: clamp(28px, 4vw, 48px);
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: var(--shadow);
}
.feature__media { display: block; min-height: 360px; overflow: hidden; background: var(--blush); }
.feature__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(26px, 4vw, 56px); }
.feature__title { margin: 0; font: 650 clamp(1.8rem, 3.4vw, 2.7rem)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.feature__title a { text-decoration: none; }
.feature__excerpt { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.feature .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 4 / 3; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 0;
  font: 600 .95rem/1 var(--sans); padding: 14px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--rose); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--blush); color: var(--rose-deep); }


/* ---------- Article ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--rose); transform-origin: 0 50%; transform: scaleX(0); }
.post__head { padding-top: clamp(36px, 7vw, 84px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.post__cats { justify-content: center; }
.post__title { margin: 0; font: 650 clamp(2.1rem, 5.6vw, 3.9rem)/1.05 var(--serif); letter-spacing: -.028em; text-wrap: balance; font-variation-settings: "opsz" 120; }
.post__head .meta { justify-content: center; }
.post__hero { margin: clamp(28px, 5vw, 56px) auto 0; }
.post__hero img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.post__content { padding-top: clamp(32px, 5vw, 56px); }

.prose { font-size: clamp(1.06rem, 1.1vw + .8rem, 1.18rem); line-height: 1.78; color: var(--ink); overflow-wrap: break-word; }
.prose p { margin: 0 0 1.3em; }
.prose > p:first-child::first-letter {
  float: left; font: 700 4.4em/.8 var(--serif); color: var(--rose); margin: .08em .1em 0 0; padding-right: .04em;
}
.prose a { color: var(--rose-deep); text-decoration-thickness: 1.5px; }
.prose strong, .prose b { font-weight: 700; }
.prose img { border-radius: 14px; margin: 1.6em auto; height: auto; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--rose); font: italic 1.15em/1.6 var(--serif); }

.locked { text-align: center; padding: 48px 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px dashed var(--line); color: var(--ink-2); }
.locked svg { color: var(--rose); margin: 0 auto 10px; }
.locked p { margin: 0; font: 600 1.2rem/1.4 var(--serif); }
.locked .locked__sub { margin-top: 6px; font: 400 .95rem var(--sans); color: var(--muted); }

.locked__field { display: flex; gap: 10px; max-width: 420px; margin: 22px auto 0; }
.locked__field input { flex: 1; min-width: 0; font: 400 1rem var(--sans); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 18px; }
.locked__field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--blush); }
.locked .locked__error { margin-top: 12px; font: 600 .92rem var(--sans); color: var(--rose-deep); min-height: 1.2em; }
.share { display: flex; align-items: center; gap: 8px; margin: 44px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__label { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.sharebtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); transition: .2s; }
.sharebtn:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.sharebtn.is-done { background: var(--ink); color: var(--paper); }

.authorbox { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.authorbox__name { margin: 4px 0 2px; font: 650 1.35rem/1.2 var(--serif); }
.authorbox__link { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; color: var(--ink-2); }

.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.postnav__item { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; transition: .2s; }
.postnav__item:hover { border-color: var(--rose); background: var(--card); color: var(--ink); }
.postnav__item--next { text-align: right; align-items: flex-end; }
.postnav__title { font: 600 1.08rem/1.3 var(--serif); }
@media (max-width: 620px) { .postnav { grid-template-columns: 1fr; } }

.section-title { margin: 0 0 24px; font: 650 clamp(1.5rem, 3vw, 2rem)/1.15 var(--serif); letter-spacing: -.015em; }
.comments-wrap { padding-top: 56px; padding-bottom: 32px; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.comment__head { display: flex; align-items: center; gap: 12px; }
.comment__head > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.comment__author { font-weight: 700; }
.comment__author a { text-decoration: none; }
.comment__date { font-size: .82rem; color: var(--muted); text-decoration: none; }
.badge { font: 600 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--rose-deep); background: var(--blush); padding: 4px 7px; border-radius: 999px; }
.comment__body { margin-top: 10px; color: var(--ink-2); overflow-wrap: break-word; }
.comment__body p { margin: 0 0 .6em; }
.comment__body p:last-child { margin-bottom: 0; }
.comments--child { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--blush-2); }
.comments--child .comment { background: var(--paper-2); }
.comment__reply { margin-top: 10px; padding: 0; border: 0; background: none; font: 600 .82rem var(--sans); color: var(--rose-deep); }
.comment__reply:hover { text-decoration: underline; }
.comment-form { margin-top: 36px; }
.comment-form__title { margin: 0; font: 650 1.5rem/1.2 var(--serif); }
.comment-form__reply { margin: -6px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--blush); font-size: .92rem; }
.comment-form__reply button { border: 0; background: none; padding: 0; color: var(--rose-deep); font-weight: 600; text-decoration: underline; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.comments-closed { margin: 22px 0 0; font-size: .9rem; color: var(--muted); font-style: italic; }

.related { margin-top: 48px; padding: clamp(48px, 7vw, 80px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }

/* ---------- Contact, 404 ---------- */
.contact { padding-bottom: 80px; }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 4vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .92rem; }
.form label .lbl b { color: var(--rose); font-weight: 600; }
.form input, .form textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--blush); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; }
.form__status { margin: 0; font-size: .95rem; }
.form__status.is-ok { color: #2f8a57; }
.form__status.is-err { color: var(--rose-deep); }
.captcha { padding: 16px 18px; border-radius: 14px; background: var(--paper-2); border: 1px dashed var(--line); }
.captcha__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-weight: 400; }
.captcha__q { font: italic 500 1.05rem var(--serif); }
.form .captcha input { width: 5.5em; text-align: center; font-weight: 600; }
.captcha__help { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.captcha__help button { border: 0; background: none; padding: 0; color: var(--rose-deep); font-weight: 600; text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; }
.contact__alt { color: var(--muted); margin-top: 24px; }
.notfound { text-align: center; padding-block: clamp(60px, 12vw, 140px); }
.notfound__code { margin: 0; font: italic 700 clamp(5rem, 20vw, 10rem)/1 var(--serif); color: var(--rose); }
.notfound .btn { margin: 6px; }

/* ---------- Pied de page ---------- */
.footer { margin-top: auto; background: var(--ink); color: var(--paper); padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.is-post .footer, .is-list .footer, .is-page .footer { margin-top: 0; }
.footer .brand { color: var(--paper); }
.footer .brand .mark path { stroke: var(--ink); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer__tagline { margin: 10px 0 0; font: italic 1.05rem var(--serif); opacity: .7; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.footer__nav a:hover { background: rgb(255 255 255 / .08); color: var(--paper); opacity: 1; }
.footer__copy { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; opacity: .6; }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; } .footer__nav { margin-left: -14px; } }
@media (prefers-color-scheme: dark) { .footer { background: #120d0f; color: var(--ink); } .footer .brand, .footer__nav a:hover { color: var(--ink); } .footer .brand .mark path { stroke: #120d0f; } }

/* ---------- Recherche ---------- */
.search { position: fixed; inset: 0; z-index: 60; background: rgb(30 15 20 / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start; padding: calc(10vh + env(safe-area-inset-top, 0px)) 16px 16px; animation: fade .2s; }
.search__panel { width: 100%; max-width: 680px; max-height: 78vh; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45); overflow: hidden; animation: pop .25s cubic-bezier(.2,.8,.3,1.2); }
.search__form { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search__form input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.1rem var(--sans); color: var(--ink); padding: 12px 0; outline: none; }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__results { overflow-y: auto; padding: 8px; }
.search__results:empty { display: none; }
.sr { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; }
.sr:hover, .sr:focus-visible { background: var(--blush); color: var(--ink); }
.sr img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: none; background: var(--blush); }
.sr__title { display: block; font: 600 1.02rem/1.25 var(--serif); }
.sr__meta { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.sr__empty { padding: 22px; text-align: center; color: var(--muted); }
mark { background: var(--blush-2); color: inherit; border-radius: 3px; padding: 0 2px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

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