/* Cadbury Christmas Guide — "Holly & gift tag": deep holly green, antique gold, cream card stock, berry red.
   Fonts: Prata (headings) + Cabin (text), self-hosted, SIL OFL (see /assets/fonts/OFL.txt). No brand colours or fonts. */
@font-face { font-family: "Prata"; src: url(/assets/fonts/prata.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(/assets/fonts/cabin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(/assets/fonts/cabin-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --holly: #0F3B2C; --holly-2: #17533F; --pine: #0A2A1F; --leaf: #2E7D5B;
  --gold: #C8A24A; --gold-hi: #E2C77A; --gold-ink: #7A5C0E;
  --cream: #FBF6EA; --card: #FFFDF8; --linen: #F3EBD8;
  --berry: #A3242C; --berry-deep: #7E1A21;
  --ink: #1E2A24; --muted: #4F5B54; --line: #DCCFB2;
  --display: "Prata", Georgia, "Times New Roman", serif;
  --text: "Cabin", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px; --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--holly-2); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.18; color: var(--pine); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--pine); padding: 10px 16px; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; vertical-align: -.2em; flex: none; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- independent notice (every page) */
.indie { margin: 0; background: var(--linen); color: var(--ink); border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.4; }
.indie-in { display: flex; gap: 8px; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.indie svg { flex: none; margin-top: 1px; color: var(--berry); }

/* ---------- header + gold ribbon motif */
.site-head { background: var(--holly); color: var(--cream);
  background-image: radial-gradient(circle at 12px 12px, rgba(226,199,122,.16) 1.4px, transparent 1.6px); background-size: 34px 34px; }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand-mark { color: #3FA076; background: var(--cream); border-radius: 50%; padding: 3px; box-shadow: 0 0 0 2px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.45rem; letter-spacing: .01em; }
.brand-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin-top: 3px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; color: var(--cream); text-decoration: none; font-weight: 600; border-radius: 999px; }
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a[aria-current] { background: var(--gold); color: var(--pine); }
.site-nav a:focus-visible { outline-color: var(--gold-hi); }
.ribbon { position: relative; height: 12px; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #A9852F); }
.ribbon.thin { height: 6px; }
.ribbon .bow { position: absolute; left: 50%; top: -9px; width: 46px; height: 30px; margin-left: -23px;
  background: radial-gradient(circle at 50% 50%, #A9852F 0 5px, transparent 5.5px),
    radial-gradient(ellipse 13px 10px at 12px 15px, var(--gold-hi) 0 98%, transparent 100%),
    radial-gradient(ellipse 13px 10px at 34px 15px, var(--gold-hi) 0 98%, transparent 100%); }

/* ---------- buttons */
.btn-gold, .btn-line, .btn-amz, .btn-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--pine); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.btn-gold:hover { background: var(--gold-hi); color: var(--pine); }
.btn-line { color: var(--cream); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-line:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-amz { background: var(--holly); color: var(--cream); }
.btn-amz:hover { background: var(--berry); color: #fff; }
.btn-amz.big { min-height: 50px; font-size: 1.05rem; width: 100%; justify-content: center; }
.btn-more { color: var(--holly); box-shadow: inset 0 0 0 2px var(--holly); background: transparent; }
.btn-more:hover { background: var(--holly); color: var(--cream); }

/* ---------- hero */
.hero { background: var(--holly); color: var(--cream); padding: 30px 0 48px;
  background-image: radial-gradient(circle at 20px 20px, rgba(226,199,122,.2) 1.4px, transparent 1.6px), radial-gradient(circle at 37px 37px, rgba(226,199,122,.1) 1px, transparent 1.2px);
  background-size: 34px 34px; }
.hero-in { display: grid; gap: 20px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero h1 { color: var(--cream); }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6em; }
.hero .kicker { color: var(--gold-hi); }
.lede { font-size: 1.15rem; max-width: 46rem; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.hero-art { display: none; justify-self: center; }
@media (min-width: 820px) { .hero-in { grid-template-columns: 1.5fr 1fr; } .hero-art { display: block; } .hero { padding: 48px 0 64px; } }

/* ---------- sections */
.band { padding-top: 34px; padding-bottom: 10px; }
.band-cream { background: var(--linen); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-top: 24px; margin-bottom: 24px; }
.sec-h { display: flex; align-items: center; gap: 10px; }
.sec-h::after { content: ""; flex: 1; height: 2px; margin-left: 8px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px); min-width: 20px; }
.page { padding-top: 22px; padding-bottom: 40px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.empty { padding: 18px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.h-icon { color: var(--leaf); vertical-align: -.12em; }

/* tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
@media (min-width: 1000px) { .tiles:not(.big) { grid-template-columns: repeat(6, 1fr); } }
.tile { display: grid; gap: 4px; padding: 16px; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 2px 0 var(--line); }
.tile .icon { color: var(--leaf); }
.tile:hover { border-color: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--gold); }
.tile-name { font-family: var(--display); font-size: 1.15rem; color: var(--pine); }
.tile-n { font-size: .88rem; color: var(--muted); }
.tile-intro { font-size: .95rem; margin-top: 4px; }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* ---------- gift-tag product cards (the site's motif) */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px 18px; margin: 10px 0 14px; }
.tag-wrap { display: flex; filter: drop-shadow(0 0 1px #B9A77E) drop-shadow(0 3px 0 var(--line)); }
.tag-card { position: relative; flex: 1; display: flex; flex-direction: column; padding: 34px 18px 16px; background: var(--card); color: var(--ink);
  border-radius: 0 0 var(--radius) var(--radius); clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px); }
.tag-hole { position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 2px var(--gold); }
.tag-card::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 12px; margin-left: -1px; background: var(--berry); }
.tag-type { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.tag-type .icon { color: var(--leaf); }
.tag-name { font-size: 1.2rem; margin-bottom: .3em; }
.tag-name a { color: var(--pine); text-decoration: none; }
.tag-name a:hover { color: var(--berry); text-decoration: underline; }
.tag-spec { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--linen); font-size: .9rem; font-weight: 600; margin-bottom: .6em; }
.tag-for { font-size: .95rem; margin-bottom: .5em; }
.tag-for span { font-weight: 700; color: var(--holly-2); }
.tag-sum { font-size: .95rem; color: var(--muted); }
.tag-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.tag-acts a { flex: 1 1 auto; justify-content: center; min-height: 42px; padding: 8px 14px; font-size: .95rem; }
.amz-note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; }

/* gift picks list */
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.picks a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.picks a:hover { border-color: var(--gold); }
.picks .icon { color: var(--berry); margin-top: 2px; }
.picks strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.12rem; color: var(--pine); }
.picks small { display: block; font-size: .92rem; color: var(--muted); }

/* guides */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.guide-list a { display: block; height: 100%; padding: 16px 16px 16px 20px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--leaf); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.guide-list a:hover { border-left-color: var(--berry); }
.guide-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--pine); margin-bottom: 4px; }
.guide-list span { font-size: .95rem; color: var(--muted); }

/* jump links + chips */
.jump ul, .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; align-items: center; }
.jump a, .chips a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.jump a:hover, .chips a:hover { border-color: var(--gold); }
.group { margin-top: 26px; }
.group .sec-h .icon { color: var(--leaf); }

/* ---------- product page */
.product { display: grid; gap: 24px; align-items: start; }
.product > * { min-width: 0; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; } .buy-box { position: sticky; top: 16px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; margin: 18px 0 22px; padding: 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.buy-box { position: relative; padding: 34px 20px 16px; background: var(--holly); color: var(--cream); border-radius: var(--radius);
  background-image: radial-gradient(circle at 12px 12px, rgba(226,199,122,.14) 1.2px, transparent 1.4px); background-size: 28px 28px; }
.buy-box .tag-hole { background: var(--holly); box-shadow: inset 0 0 0 2px var(--gold-hi); }
.buy-h { font-family: var(--display); font-size: 1.3rem; color: var(--gold-hi); }
.buy-box a { color: var(--gold-hi); }
.buy-box .btn-amz { background: var(--gold); color: var(--pine); }
.buy-box .btn-amz:hover { background: var(--gold-hi); color: var(--pine); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.diet { border-left-color: var(--berry); }

/* ---------- prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose-page .prose { margin-top: 10px; }
.guide .lede { color: var(--muted); }
.sources { font-size: .95rem; }
.checked { font-size: .9rem; color: var(--muted); }
.sources-box { margin-top: 28px; padding-top: 6px; border-top: 2px dashed var(--line); }
.photo { margin: 1.2em 0; }
.photo img { border-radius: var(--radius); display: block; }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.guide-photo { max-width: 760px; }
.guide-photo img { width: 100%; height: auto; }

/* FAQ */
.faq { max-width: 50rem; display: grid; gap: 10px; margin-bottom: 18px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--pine); list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.faq .prose { padding-bottom: 6px; }

/* 404 */
.nf-links { font-size: 1.1rem; }

/* ---------- footer */
.site-foot { margin-top: 40px; background: var(--pine); color: #E9E4D6; }
.site-foot a { color: var(--gold-hi); }
.site-foot a:hover { color: #fff; }
.foot-in { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 12px; }
.foot-in > * { min-width: 0; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.6fr 1fr; } }
.foot-name { font-family: var(--display); font-size: 1.4rem; color: var(--cream); margin-bottom: .4em; }
.foot-brand p { font-size: .93rem; }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 6px; }
.copy { font-size: .88rem; padding-top: 10px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- ads (5od) + cookie choice */
.ad-slot[hidden], .cookie-bar[hidden] { display: none !important; }
.ad-slot { display: block; margin: 1.4rem auto; }
.ad-slot:has(ins[data-fiveod="empty"], ins[data-fiveod="error"], ins[data-fiveod="nofit"]) { display: none; }
.ad-in { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.ad-head { max-width: var(--wrap); padding: 0 16px; margin: 18px auto 0; }
.ad-content { padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.prose > .ad-content { margin: 1.4rem 0; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); color: var(--ink); border-top: 6px solid var(--gold); box-shadow: 0 -6px 24px rgba(0,0,0,.18); padding: 14px 0 16px; max-height: 80vh; overflow-y: auto; }
.cookie-in { display: grid; gap: 12px 32px; align-items: center; }
@media (min-width: 860px) { .cookie-in { grid-template-columns: minmax(0, 1fr) auto; } }
.cookie-h { font: 400 1.4rem/1.1 var(--display); color: var(--pine); margin: 0 0 6px; }
.cookie-txt p { margin: 0 0 6px; font-size: .97rem; }
.cookie-now { font-weight: 700; color: var(--holly-2); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { flex: 1 1 12rem; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--holly); color: var(--cream); font: 700 1rem/1.2 var(--text); cursor: pointer; }
.cookie-btn:hover { background: var(--berry); }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--berry); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } .tile, .tag-name a, .btn-amz { transition: background-color .15s, box-shadow .15s, border-color .15s; } }
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- print */
@media print {
  .site-nav, .ribbon, .ad-slot, .cookie-bar, .hero-art, .tag-acts, .skip, .foot-nav, .jump { display: none !important; }
  body, .site-head, .hero, .site-foot, .buy-box { background: #fff !important; color: #000 !important; }
  .hero h1, .brand, .buy-h, .foot-name, .site-foot { color: #000 !important; }
  .tag-card { clip-path: none; break-inside: avoid; border: 1px solid #999; }
  .tag-wrap { filter: none; }
  a { color: #000; }
  .btn-amz::after { content: " (Amazon.co.uk)"; }
}
