/* Fizz Wishlist site. One motif: the heart and the bookmark ribbon that holds it. Soft blush paper, plum ink,
   a rose that only appears where something is saved, and sage for "kept on the account". Serif for display
   (editorial, like a fashion or homeware catalogue), system sans for everything you read. */
:root {
  --bg: #fffafb; --surface: #ffffff; --tint: #fff1f5; --ink: #2b1a24; --ink-2: #6b5561; --line: #f0dde4; --line-2: #e6cdd7;
  --rose: #d6336c; --rose-deep: #a61e4d; --petal: #fde7ee; --on-rose: #ffffff;
  --sage: #2f7a58; --sage-soft: #e2f2ea;
  --shadow: 0 1px 2px rgba(80, 20, 45, .06), 0 8px 24px -12px rgba(80, 20, 45, .18);
  --shadow-lg: 0 2px 6px rgba(80, 20, 45, .06), 0 30px 70px -30px rgba(120, 25, 65, .35);
  --glow: rgba(214, 51, 108, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #170e13; --surface: #21151c; --tint: #2a1822; --ink: #f8ecf1; --ink-2: #c4abb8; --line: #3a2731; --line-2: #4a3340;
    --rose: #ff6f98; --rose-deep: #ff97b4; --petal: #3c1f2c; --on-rose: #2b0d19;
    --sage: #7fcca6; --sage-soft: #1c2e26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -30px rgba(0, 0, 0, .8);
    --glow: rgba(255, 111, 152, .14);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
main { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: clip; }
a { color: var(--rose-deep); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--rose); } }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.sr, .skip { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.02rem; }
.brand svg { width: 26px; height: 30px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.pill { color: var(--on-rose); background: var(--rose); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
@media (max-width: 640px) { .top nav a:not(.pill) { display: none; } }

/* Buttons from {{cta}} */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--rose); color: var(--on-rose) !important; text-decoration: none;
  font-weight: 650; padding: 14px 24px; border-radius: 999px; box-shadow: 0 10px 30px -10px var(--rose);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.cta-btn::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("heart.svg") center / contain no-repeat; mask: url("heart.svg") center / contain no-repeat; }
.cta-btn:hover { transform: translateY(-1px); background: var(--rose-deep); box-shadow: 0 14px 34px -12px var(--rose); }
@media (prefers-color-scheme: dark) { .cta-btn:hover { background: var(--rose-deep); } }
.cta-note { font-size: .88rem; color: var(--ink-2); max-width: 30em; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 48px; font-size: .9rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { color: var(--ink-2); }

/* Guides list from {{guides}} / {{list}} */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-list li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px 22px; }
.guide-list li::before { content: ""; position: absolute; top: -1px; right: 22px; width: 14px; height: 22px; background: var(--petal);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.guide-list a { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; font-weight: 600; color: var(--ink); text-decoration: none; margin: 0 24px 8px 0; }
.guide-list a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.guide-list li:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.guide-list li:hover::before { background: var(--rose); }
.guide-list span { display: block; font-size: .92rem; color: var(--ink-2); }
.guide-list li:focus-within { outline: 3px solid var(--rose); outline-offset: 2px; }
.guide-list a:focus-visible { outline: none; }

/* Article pages */
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 0; }
.crumbs { font-size: .88rem; color: var(--ink-2); margin: 0 0 18px; }
.crumbs a { color: var(--ink-2); }
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 14px; }
.article .meta { color: var(--ink-2); font-size: .9rem; margin: 0 0 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.article h3 { font-size: 1.25rem; margin: 32px 0 8px; }
.article p, .article li { color: var(--ink); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.article blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--rose); background: var(--tint); border-radius: 0 12px 12px 0; }
.article blockquote p { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.article code { font-size: .88em; background: var(--tint); padding: 1px 6px; border-radius: 6px; }
.article pre { background: var(--tint); padding: 14px; border-radius: 12px; overflow-x: auto; }
.article .table { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
.article table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--tint); font-weight: 650; }
.article tr:last-child td { border-bottom: 0; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article-end { max-width: 720px; margin: 56px auto 0; padding: 0 24px; }
.app-card { display: grid; gap: 14px; padding: 26px; border-radius: 20px; background: linear-gradient(150deg, var(--petal), var(--surface) 70%);
  border: 1px solid var(--line); }
.app-card h2 { margin: 0; font-size: 1.5rem; }
.app-card p { margin: 0; color: var(--ink-2); }
.related h2 { font-size: 1.3rem; margin: 48px 0 16px; }
.guides-page { max-width: 1000px; margin: 0 auto; padding: 56px 24px 0; }
.guides-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 10px; }
.guides-page .lead { color: var(--ink-2); margin: 0 0 32px; font-size: 1.08rem; }

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