/* Plum & Nest — keep palette in sync with the _PLUM/_CREAM/... values in build.py */
:root {
  --plum: #5b2a4a;
  --plum-deep: #3f1c33;
  --plum-soft: #f1e6ec;
  --cream: #fbf7f2;
  --paper: #ffffff;
  --blush: #ecd6d0;
  --sage: #8fa087;
  --sage-soft: #e7ece3;
  --caramel: #c9a27e;
  --ink: #2a2126;
  --ink-soft: #5e5159;
  --line: #e8dfd8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 33, 38, .05), 0 8px 24px rgba(42, 33, 38, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.7 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
em { font-style: italic; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--paper); padding: 8px 14px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap, .wrap-narrow { padding: 0 28px; } }

.kicker { font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin: 0 0 10px; }
.kicker a { text-decoration: none; }
.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 18px; }
.draft-tag { background: var(--caramel); color: #fff; padding: 1px 7px; border-radius: 99px; letter-spacing: .06em; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font: 600 1.45rem/1 var(--serif); }
.logo em { color: var(--caramel); font-style: italic; font-weight: 500; }
.logo-mark { width: 30px; height: 30px; color: var(--plum); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--plum); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
              background: var(--cream); border-bottom: 1px solid var(--line); padding: 6px 16px 14px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--plum-soft) 0%, var(--cream) 55%, var(--sage-soft) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 64px; padding-bottom: 64px; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0 0 16px; }
.hero h1 em { color: var(--plum); }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 0; }
.pill { display: inline-block; padding: 9px 18px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line);
        text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.pill:hover { border-color: var(--plum); color: var(--plum); }

/* Sections & cards */
.section { padding-top: 48px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title { font-size: 1.7rem; margin: 0 0 22px; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--plum-soft); margin-bottom: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-img img { transform: scale(1.03); }
.card h3 { font-size: 1.28rem; margin: 0 0 6px; }
.card-link:hover h3 { color: var(--plum); }
.card-desc { color: var(--ink-soft); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--ink-soft); padding: 40px 0; text-align: center; }

.page-head { padding-top: 48px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 12px; }

/* Post */
.post-head { padding-top: 44px; text-align: center; }
.post-head h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: 0 0 14px; }
.meta { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.post-hero { margin: 28px auto 32px; max-width: 1000px; }
.post-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.disclosure-note { font-size: .85rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line);
                   border-radius: 10px; padding: 10px 14px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.toc-title { font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--plum); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; }

.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.75rem; margin: 2.2em 0 .6em; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; scroll-margin-top: 84px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin: .3em 0; }
.prose picture, .prose > p > img { margin: 1.6em 0; }
.prose img { border-radius: var(--radius); width: 100%; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--caramel); font-family: var(--serif); font-size: 1.2rem; color: var(--plum-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 600; background: var(--plum-soft); }

.tip { background: var(--sage-soft); border-radius: var(--radius); padding: 16px 20px; margin: 1.6em 0; border-left: 4px solid var(--sage); }
.tip p:last-child { margin-bottom: 0; }
.tip::before { content: "Tip"; display: block; font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #5d7155; margin-bottom: 8px; }

.product { display: grid; grid-template-columns: 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line);
           border-radius: var(--radius); padding: 16px; margin: 1.6em 0; box-shadow: var(--shadow); }
@media (min-width: 560px) { .product { grid-template-columns: 200px 1fr; gap: 22px; padding: 20px; } }
.product img, .product-img-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--plum-soft); margin: 0; }
.product-name { font-size: 1.25rem; margin: 0 0 4px !important; }
.product-price { display: inline-block; font-weight: 600; color: var(--plum); margin-bottom: 8px; }
.product-why p { margin: 0 0 .8em; font-size: 1rem; }

.btn { display: inline-block; padding: 11px 22px; border-radius: 99px; background: var(--ink); color: #fff !important;
       font-weight: 600; font-size: .95rem; text-decoration: none; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--plum-deep); }
.btn-plum { background: var(--plum); }

.printable-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
                 background: var(--plum-soft); border: 1px dashed var(--plum); border-radius: var(--radius); padding: 22px; margin: 1.8em 0; }
.printable-box h3 { margin: 0 0 4px !important; }
.printable-box p { margin: 0; }
.printable-kicker { font: 600 .75rem/1 var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin-bottom: 6px !important; }
.printable-meta { font-size: .9rem; color: var(--ink-soft); }

.save-pin { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; background: var(--paper);
            border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 48px 0 8px; }
@media (min-width: 560px) { .save-pin { grid-template-columns: 200px 1fr; } }
.save-pin img { border-radius: 10px; width: 100%; max-width: 240px; margin: 0 auto; }
.save-pin h2 { font-size: 1.4rem; margin: 0 0 8px; }
.save-pin p { margin: 0 0 14px; color: var(--ink-soft); }
.related { padding-bottom: 32px; }

.page { padding-bottom: 48px; }
.notfound { text-align: center; padding-top: 72px; padding-bottom: 72px; }

/* Footer */
.site-footer { margin-top: 64px; background: var(--plum-deep); color: #e9dde4; padding: 44px 0 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } }
.footer-logo { font: 600 1.5rem/1 var(--serif); color: #fff; margin: 0 0 10px; }
.footer-logo em { color: var(--caramel); }
.footer-inner p { margin: 0 0 8px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; align-content: start; }
.fine { font-size: .82rem; color: #bda9b5; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
.fine a { text-decoration: underline; }

/* Gift Finder */
.gf-hero { padding: 48px 0 8px; }
.gf-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); margin: 0 0 12px; max-width: 16ch; }
.tier-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
@media (min-width: 860px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }
.tier-card { display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: var(--radius); text-decoration: none;
  color: #fff; min-height: 168px; box-shadow: var(--shadow); transition: transform .2s ease; }
.tier-card:hover { transform: translateY(-3px); color: #fff; }
.tier-10 { background: var(--sage); } .tier-25 { background: #b0676e; }
.tier-50 { background: var(--plum); } .tier-100 { background: var(--plum-deep); }
.tier-under { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.tier-amount { font: 700 clamp(2.4rem, 7vw, 3.2rem)/1.05 var(--serif); margin: 4px 0 6px; }
.tier-tag { font-size: .9rem; line-height: 1.35; opacity: .92; }
.tier-count { margin-top: auto; padding-top: 10px; font: 600 .85rem/1 var(--sans); }
.tier-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-switch [aria-current] { background: var(--plum); color: #fff; border-color: var(--plum); }
.picks-timer { margin: 0 0 22px; color: var(--ink-soft); font-size: .92rem; }
.picks-timer span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--plum); }
.aff-note { font-size: .85rem; color: var(--ink-soft); margin: -8px 0 14px; }
.gift-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.chip { flex: none; font: 500 .9rem/1 var(--sans); padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--plum); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.gift-grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .gift-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gift-grid { grid-template-columns: repeat(4, 1fr); } }
.gift { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.gift[hidden] { display: none; }
.gift-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.gift-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--plum-soft); }
.gift-cozy, .gift-self-care { background: var(--blush); } .gift-plants, .gift-home { background: var(--sage-soft); }
.gift-coffee, .gift-kitchen { background: #f3e7d9; }
.gift-band { font: 600 .78rem/1 var(--sans); padding: 6px 10px; border-radius: 99px; background: var(--cream); color: var(--plum); border: 1px solid var(--line); }
.gift .kicker { margin-bottom: 4px; }
.gift-name { font-size: 1.12rem; margin: 0 0 8px; }
.gift-why { font-size: .93rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 10px; }
.gift-for { font-size: .8rem; color: var(--ink-soft); margin: 0 0 14px; }
.gift-btn { margin-top: auto; text-align: center; font-size: .9rem; padding: 10px 16px; }
