/* Robin's Nest Designs — soft cream/parchment walls, dark plum words, pink accents (was dark twilight; backup: private/nestflix/backups/style-pre-cream-20261024.css) */
:root { --gold:#8a5a2b; --gold2:#a06a35; --ink:#40102a; --dim:#7a5c66; --card:#fffdf4; --line:#d9c9a3; --lily:#e5484d; --pink:#f78fb8; --pink-deep:#ffd3e6; --plum:#40102a; }
html.fs-normal { font-size:16px; }
html.fs-large  { font-size:19px; }
html.fs-xl     { font-size:22px; }
* { box-sizing:border-box; }
body {
  margin:0; color:var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(1200px 500px at 50% -80px, #fff8e1 0%, transparent 60%),
    radial-gradient(900px 420px at 85% 0, rgba(229,72,77,.08) 0%, transparent 55%),
    linear-gradient(180deg, #fdf6e3 0%, #f7ecd2 45%, #f1e2c2 100%);
  min-height:100vh;
}
a { color:#c94f86; }
.top { text-align:center; padding:1.4rem 1rem .6rem; border-bottom:2px solid var(--lily); }
.banner { width:100%; max-width:64rem; display:block; margin:0 auto; border-radius:1rem; box-shadow:0 8px 30px rgba(90,60,20,.25); }
.logo span { color:var(--lily); }
.candle-line { color:var(--dim); margin:.2em 0 .8em; font-size:1rem; }
.flame { width:1.05em; height:1.05em; vertical-align:-.15em; }
.nudge { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; justify-content:center; margin:.4rem auto .8rem; max-width:42rem; }
.nudge .btn { padding:.35rem .8rem; font-size:.95rem; }
.sizectl { display:flex; gap:.45rem; align-items:center; justify-content:center; flex-wrap:wrap; color:var(--dim); font-size:.95rem; }
.pinkselect { font:inherit; font-weight:bold; color:var(--plum); background:linear-gradient(180deg, var(--pink-deep), var(--pink)); border:1px solid #c94f86; border-radius:2rem; padding:.45rem .8rem; cursor:pointer; }
.pinkselect:focus-visible { outline:3px solid var(--pink); outline-offset:2px; }
.gold-h { color:#8e2a52; text-align:center; font-size:1.7rem; margin:1.4rem 0 .8rem; text-shadow:0 0 12px rgba(140,60,90,.15); }
.spotlight, .shelf { max-width:72rem; margin:0 auto; padding:0 .8rem; }
.grid { display:grid; grid-template-columns:1fr; gap:1.1rem; }
@media (min-width:640px){ .grid { grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){ .grid { grid-template-columns:1fr 1fr 1fr; } }
.spotlight .card { max-width:44rem; margin:0 auto; }
.card { background:var(--card); border:1px solid var(--line); border-radius:1rem; padding:.8rem; box-shadow:0 6px 24px rgba(90,60,20,.18); }
.frame { position:relative; }
.frame video { width:100%; border-radius:.6rem; display:block; background:#000; }
.badge { position:absolute; top:.5rem; left:.5rem; background:var(--lily); color:#fff; font-weight:bold; padding:.15rem .55rem; border-radius:1rem; font-size:.85rem; box-shadow:0 2px 8px rgba(0,0,0,.5); }
.vtitle { font-size:1.25rem; margin:.6rem .1rem .4rem; }
.row { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; }
.btn, .heart { font:inherit; font-size:1rem; background:#2a2148; color:#fdf6e3; border:1px solid var(--line); border-radius:2rem; padding:.5rem .95rem; cursor:pointer; text-decoration:none; display:inline-block; }
.btn.gold { background:linear-gradient(180deg, var(--pink-deep), var(--pink)); color:var(--plum); font-weight:bold; border-color:#c94f86; }
.heart { color:#ff8f96; font-weight:bold; }
.heart:active { transform:scale(1.12); }
.sharewrap { position:relative; display:inline-block; }
.sharebtn { background:linear-gradient(180deg, var(--pink-deep), var(--pink)); color:var(--plum); border-color:#c94f86; font-weight:bold; }
.sharemenu { position:absolute; top:calc(100% + .4rem); left:0; z-index:6; min-width:11.5rem; display:flex; flex-direction:column; padding:.35rem; background:linear-gradient(180deg, var(--pink-deep), var(--pink)); border:1px solid #c94f86; border-radius:.8rem; box-shadow:0 10px 26px rgba(90,60,20,.25); }
.sharemenu[hidden] { display:none; }
.sharemenu a, .sharemenu button { font:inherit; font-weight:bold; color:var(--plum); background:transparent; border:0; border-radius:.5rem; padding:.55rem .8rem; text-align:left; text-decoration:none; cursor:pointer; }
.sharemenu a:hover, .sharemenu button:hover, .sharemenu a:focus-visible, .sharemenu button:focus-visible { background:rgba(255,255,255,.45); outline:none; }
footer { text-align:center; color:var(--dim); padding:2rem 1rem 2.4rem; font-size:.95rem; }
button:focus-visible, a:focus-visible { outline:3px solid var(--pink); outline-offset:2px; }

.nudge span { color:#8e2a52; }

.vtitle { color:#8e2a52; }


/* Little dusty-blue twinkling sparks #5b7fa6 (Oct 24, 2026; gold retired — too light on cream): two fixed layers BEHIND all content, so they can never cover a letter or a video. Slow gentle opacity twinkle, out of phase. */
body::before, body::after { content:""; position:fixed; inset:0; z-index:0; pointer-events:none; }
body::before {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22190%22%20height%3D%22190%22%20viewBox%3D%220%200%20190%20190%22%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%2819.0%2024.0%29%20scale%280.12%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.95%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%28125.5%2015.5%29%20scale%280.09%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.85%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%2863.0%2088.0%29%20scale%280.14%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.9%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%28150.0%2075.0%29%20scale%280.1%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.8%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%2840.5%20150.5%29%20scale%280.09%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.85%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%2899.0%20134.0%29%20scale%280.12%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.9%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%28163.5%20158.5%29%20scale%280.13%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.9%22%2F%3E%3C%2Fsvg%3E");
  background-size:190px 190px;
  animation:sparkle-twinkle 4s ease-in-out infinite alternate;
}
body::after {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22260%22%20height%3D%22260%22%20viewBox%3D%220%200%20260%20260%22%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%2854.5%2049.5%29%20scale%280.11%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.85%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%28193.5%20103.5%29%20scale%280.13%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.9%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%2825.0%20175.0%29%20scale%280.1%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.8%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%28145.5%2025.5%29%20scale%280.09%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.85%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%28224.0%20204.0%29%20scale%280.12%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.9%22%2F%3E%3Cpath%20d%3D%22M50%200Q58%2042%20100%2050Q58%2058%2050%20100Q42%2058%200%2050Q42%2042%2050%200Z%22%20transform%3D%22translate%28105.0%20225.0%29%20scale%280.1%29%22%20fill%3D%22%235b7fa6%22%20fill-opacity%3D%220.8%22%2F%3E%3C%2Fsvg%3E");
  background-size:260px 260px;
  animation:sparkle-twinkle 6.5s ease-in-out infinite alternate;
  animation-delay:1.5s;
}
@keyframes sparkle-twinkle { from { opacity:.35; } to { opacity:.95; } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation:none; opacity:.7; } }
/* Content stays above the sparkle layers. */
.top, .spotlight, .shelf, footer, .jumpmenu { position:relative; z-index:1; }

/* Jump-to-shelf menu (Oct 24, 2026): pill links, cream + rose to match the theme. */
.jumpmenu { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; max-width:72rem; margin:0 auto; padding:.9rem .8rem 0; }
.jumpmenu a { background:#fffdf4; border:1.5px solid #d9c9a3; color:#8e2a52; padding:.35rem .95rem; border-radius:999px; text-decoration:none; font-weight:600; }
/* Spotlight fits a PC (Oct 24, 2026): on wide screens the featured video is capped by BOTH width and height, so whatever is playing fits on screen. */
@media (min-width: 1024px) {
  .spotlight .card { max-width: 34rem; }
  .spotlight .frame video { width:auto; max-width:100%; max-height:62vh; height:auto; margin:0 auto; }
}

/* Back-to-top button (Oct 24, 2026): fixed bottom-right, hidden until scrolled down, cream + rose to match. */
.totop { position:fixed; right:1rem; bottom:1rem; z-index:5; background:#fffdf4; border:1.5px solid #d9c9a3; color:#8e2a52; padding:.5rem .95rem; border-radius:999px; font-weight:600; box-shadow:0 2px 10px rgba(64,16,42,.18); cursor:pointer; opacity:0; visibility:hidden; transition:opacity .25s; pointer-events:none; }
.totop.show { opacity:1; visibility:visible; pointer-events:auto; }

/* Spotlight Share menu must float above the shelf below (Oct 25, 2026): the shelf is a later sibling at the same level, so it painted over the open menu. */
.spotlight { z-index: 3; }
/* Share menu must float above the shelf below (Nov 14, 2026): a shelf is a later sibling at the same level, so it painted over an open menu — Robin caught it on the Wonders shelf. JS adds .menu-open to the shelf/spotlight while its menu is open. */
.shelf.menu-open, .spotlight.menu-open { z-index: 4; }

/* Heart Notes section (Nov 5, 2026): gold scrollwork banner, diamond divider, card grid + lightbox. */
.hn-banner { width:100%; max-width:72rem; display:block; margin:0 auto; }
.hn-banner-sm { width:100%; max-width:34rem; display:block; margin:.2rem auto 0; }
.hn-card { margin:0; }
.hn-card img { width:100%; border-radius:.6rem; display:block; cursor:zoom-in; background:#000; }
.hn-card figcaption { text-align:center; }
.hn-lightbox { position:fixed; inset:0; z-index:20; background:rgba(24,12,6,.9); display:flex; align-items:center; justify-content:center; padding:1rem; }
.hn-lightbox[hidden] { display:none; }
.hn-lightbox img { max-width:96vw; max-height:88vh; border-radius:.6rem; box-shadow:0 10px 40px rgba(0,0,0,.6); }
.hn-close { position:absolute; top:.8rem; right:.8rem; background:#fffdf4; border:1.5px solid #d9c9a3; color:#8e2a52; width:2.6rem; height:2.6rem; border-radius:50%; font-size:1.2rem; cursor:pointer; }
