/* annamam.ru — Anna's home and small product pages. Brand colours and fonts from the sleep landing.
   Motion: one load sequence and motion that answers a tap; nothing moves on its own while reading. */
:root {
  --ink: #3B2E78; --ink-soft: #6A6196; --berry: #C2457A; --pink: #E07AAA; --lilac: #7E83D6;
  --gold: #C9A46A; --milk: #FFFBF6; --powder: #F6E9EE; --night: #141129; --money: #2f8a57; --line: #ecdfe6;
  --script: "Great Vibes", cursive; --serif: "Cormorant Garamond", Georgia, serif; --sans: Manrope, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
html { overflow-x: hidden; }  /* tilted photos never make the page drag sideways; the viewport, not body, clips */
body { margin: 0; background: var(--milk); color: var(--ink); font: 17px/1.55 var(--sans); overflow-x: clip; }
a { color: var(--berry); }
/* Background: warm glows on milk with a light paper grain — one calm layer behind the whole page, it does not move */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .47 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(65vmax 55vmax at 0% 0%, rgba(224,122,170,.34), transparent 70%),
    radial-gradient(60vmax 60vmax at 100% 40%, rgba(126,131,214,.30), transparent 70%),
    radial-gradient(65vmax 50vmax at 5% 100%, rgba(230,170,120,.26), transparent 70%),
    var(--milk);
  transform: translateZ(0); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header: stays on top, gets a frosted backing once the page moves */
.top { position: sticky; top: 0; z-index: 50; margin: 0 -16px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(255, 251, 246, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.logo { font: 34px/1 var(--script); color: var(--ink); text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.6); transition: background .2s, color .2s; }
@media (hover: hover) { .pill:hover { background: var(--ink); color: #fff; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; letter-spacing: .01em; box-shadow: 0 10px 24px rgba(59,46,120,.25); transition: transform .2s var(--ease), box-shadow .2s; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(59,46,120,.3); } }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(59,46,120,.12); }

/* Small line above a heading: a quiet serif italic, not a shouting label */
.kicker { font: italic 500 20px/1.2 var(--serif); color: var(--berry); margin-bottom: 4px; }
.script { font-family: var(--script); font-weight: 400; }
h2 { font: 600 clamp(32px, 7.4vw, 50px)/1.05 var(--serif); margin: 0 0 20px; letter-spacing: -.005em; }
section { padding: 56px 0 8px; }

/* Polaroids */
.polaroid { margin: 0; background: #fff; padding: 10px 10px 42px; border-radius: 4px; box-shadow: 0 18px 40px rgba(20,17,41,.16), 0 2px 6px rgba(20,17,41,.08); position: relative; }
.polaroid img { border-radius: 2px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font: 27px/1 var(--script); color: var(--ink); }
.tape { position: absolute; top: -12px; left: 50%; width: 86px; height: 26px; margin-left: -43px; background: rgba(246,233,238,.88); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.06); z-index: 1; }

footer { margin-top: 64px; padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
footer p { margin: 0 0 6px; }
footer a { color: var(--ink-soft); }

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