/* Ugly Christmas Sweater Store - theme styles */

:root {
    --night: #0e3b2e;
    --pine: #1d6b4f;
    --pine-soft: #2a8563;
    --cranberry: #c0283a;
    --cranberry-deep: #8f1b2a;
    --gold: #f0b429;
    --gold-deep: #c98f0e;
    --frost: #eef4f0;
    --paper: #ffffff;
    --ink: #13241d;
    --muted: #55665e;
    --line: #d7e3dc;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(14, 59, 46, .06), 0 10px 26px -14px rgba(14, 59, 46, .35);
    --wrap: 1200px;
    --font-display: 'Rubik', 'Arial Rounded MT Bold', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Knitted band: trees and dots in pine / white / cranberry */
    --knit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22' viewBox='0 0 36 22'%3E%3Crect width='36' height='22' fill='%231d6b4f'/%3E%3Cpath d='M0 2h36M0 20h36' stroke='%23ffffff' stroke-width='2' stroke-dasharray='3 3'/%3E%3Cpath d='M9 6l4 5h-2l3 4H4l3-4H5z' fill='%23ffffff'/%3E%3Crect x='8' y='15' width='2' height='2' fill='%23ffffff'/%3E%3Ccircle cx='27' cy='11' r='3' fill='%23c0283a'/%3E%3Ccircle cx='27' cy='11' r='1' fill='%23f0b429'/%3E%3C/svg%3E");
    --snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='12' cy='18' r='2' fill-opacity='.35'/%3E%3Ccircle cx='70' cy='8' r='1.5' fill-opacity='.25'/%3E%3Ccircle cx='118' cy='30' r='2.5' fill-opacity='.3'/%3E%3Ccircle cx='40' cy='60' r='1.5' fill-opacity='.3'/%3E%3Ccircle cx='96' cy='72' r='2' fill-opacity='.2'/%3E%3Ccircle cx='20' cy='104' r='2.5' fill-opacity='.25'/%3E%3Ccircle cx='76' cy='118' r='1.5' fill-opacity='.35'/%3E%3Ccircle cx='128' cy='126' r='2' fill-opacity='.25'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--frost);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cranberry); text-underline-offset: .18em; }
a:hover { color: var(--cranberry-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5.5vw + 1rem, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

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

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar { background: var(--cranberry); color: #fff; font-size: .82rem; font-weight: 700; text-align: center; padding: 5px 0; letter-spacing: .02em; }
@media (max-width: 600px) { .topbar { display: none; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; background: #fff; border-radius: 10px; padding: 3px; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1; }
.brand-small { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a9d4c1; }
.brand-big { font-size: 1.45rem; font-weight: 800; }
.brand-big em { font-style: normal; color: var(--gold); }

.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; justify-content: flex-end; }
.site-nav a {
    display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
    color: #e4f1ea; font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a.active { background: var(--gold); color: var(--night); }

@media (max-width: 1020px) {
    .site-nav { flex-basis: 100%; margin: 0 -16px; }
    .site-nav ul { justify-content: flex-start; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .site-nav ul::-webkit-scrollbar { display: none; }
    .site-nav a { background: rgba(255,255,255,.08); }
}

.knit-band { height: 22px; background: var(--knit) repeat-x; background-size: 36px 22px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 4px 0 var(--gold-deep); }
.btn-gold:hover { background: #f5c650; color: var(--night); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-amazon { background: var(--cranberry); color: #fff; width: 100%; box-shadow: 0 3px 0 var(--cranberry-deep); }
.btn-amazon:hover { background: #d23347; color: #fff; }
.btn-amazon::after { content: "→"; }
.btn-ghost { background: var(--paper); color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Hero (home) ---------- */
.hero {
    background: var(--snow), radial-gradient(900px 420px at 50% 0%, #1f6a4f 0%, transparent 70%), var(--night);
    background-size: 140px 140px, auto, auto;
    color: #fff; text-align: center; overflow: hidden;
}
.hero-inner { padding-top: 52px; padding-bottom: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 700; font-size: .92rem; color: #d8efe4; }
.hero-kicker svg { width: 18px; height: 18px; color: var(--gold); }
.hero h1 { color: #fff; margin: 0 auto .25em; max-width: 14ch; }
.hero h1 span { color: var(--gold); }
.hero .lede { font-size: clamp(1.05rem, .6vw + 1rem, 1.3rem); max-width: 40em; margin: 0 auto; color: #cfe7db; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

.shelf { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: 44px; padding: 0 0 0; }
.shelf img {
    width: 150px; height: 170px; object-fit: contain; background: #fff; border-radius: 14px 14px 0 0; padding: 12px 10px 0;
    box-shadow: 0 -10px 30px -18px rgba(0,0,0,.6);
}
.shelf img:nth-child(odd) { height: 190px; }
@media (max-width: 760px) { .shelf img:nth-child(n+4) { display: none; } .shelf img { width: 30%; height: 140px; } .shelf img:nth-child(odd) { height: 156px; } }

/* ---------- Inner page banner ---------- */
.page-banner { background: var(--snow), var(--cranberry); background-size: 140px 140px, auto; color: #fff; padding: 34px 0 38px; }
.page-banner h1 { color: #fff; margin-bottom: .25em; font-size: clamp(2rem, 3.5vw + 1rem, 3.2rem); }
.page-banner .lede { max-width: 46em; margin: 0; color: #ffe3e7; font-size: 1.1rem; }
.eyebrow { font-size: .9rem; font-weight: 700; margin-bottom: 10px; color: #ffd0d6; }
.eyebrow a { color: #fff; }

/* ---------- Sections ---------- */
.content-wrap { padding-top: 40px; padding-bottom: 64px; }
.section { margin-bottom: 64px; }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Department tiles ---------- */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile {
    display: flex; flex-direction: column; height: 100%; text-decoration: none; color: #fff;
    background: var(--night); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cat-tile:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(14,59,46,.6); }
.cat-img { position: relative; display: block; aspect-ratio: 4 / 3.4; min-height: 0; overflow: hidden; background: #fff; }
.cat-img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; padding: 12px 14px 0; line-height: 1.2; }
.cat-count { padding: 4px 14px 14px; color: var(--gold); font-weight: 700; font-size: .9rem; margin-top: auto; }
.cat-tile-all { background: var(--cranberry); justify-content: center; padding: 22px 18px; gap: 6px; }
.cat-tile-all .cat-name { padding: 0; font-size: 1.3rem; }
.cat-tile-all .cat-count { padding: 0; margin-top: 0; }
.cat-tile-all .cat-blurb { color: #ffe0e5; font-size: .95rem; line-height: 1.45; }
.cat-tile-all svg { width: 42px; height: 42px; color: var(--gold); margin-bottom: 4px; }

/* ---------- Product grid ---------- */
.grid-meta { color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.product {
    display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); min-width: 0;
}
.product-media { position: relative; display: block; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; background: #fff; }
.product-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; transition: transform .25s ease; }
.product:hover .product-media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .product-media img { transition: none; } .product:hover .product-media img { transform: none; } }
.product-cat {
    position: absolute; z-index: 1; left: 10px; top: 10px; background: var(--night); color: #fff;
    font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: .02em;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; border-top: 3px solid var(--frost); }
.product-brand { margin: 0 0 4px; font-size: .76rem; font-weight: 700; color: var(--pine); text-transform: uppercase; letter-spacing: .08em; }
.product-name { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin: 0 0 8px; }
.product-name a { color: var(--ink); text-decoration: none; }
.product-name a:hover { color: var(--cranberry); }

.ugly-meter { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.ugly-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ugly-flakes { display: inline-flex; gap: 2px; }
.ugly-flakes svg { width: 16px; height: 16px; }
.ugly-flakes svg.on { color: var(--cranberry); }
.ugly-flakes svg.off { color: #cfdcd5; }

.product-blurb { color: var(--muted); font-size: .95rem; line-height: 1.5; margin-bottom: 10px; }
.product-tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags li { font-size: .75rem; font-weight: 700; background: var(--frost); color: var(--pine); padding: 2px 8px; border-radius: 6px; }
.product .btn-amazon { margin-top: auto; font-size: .95rem; padding: 10px 14px; }

@media (max-width: 520px) {
    .product-media img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
    .product-body { padding: 10px 10px 12px; }
    .product-name { font-size: .96rem; }
    .ugly-label { display: none; }
    .ugly-flakes svg { width: 14px; height: 14px; }
    .product-blurb { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .product .btn-amazon { font-size: .86rem; padding: 9px 8px; }
    .product .btn-amazon::after { display: none; }
}

/* ---------- More on Amazon / other departments ---------- */
.more-on-amazon {
    margin: 36px 0; padding: 22px 24px; border-radius: var(--radius); background: var(--night); color: #fff;
    display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
}
.more-on-amazon h2 { font-size: 1.35rem; margin-bottom: .2em; color: #fff; }
.more-on-amazon p { margin: 0; color: #c4ddd1; }
.more-on-amazon .btn-ghost { border-color: var(--gold); background: var(--gold); color: var(--night); }
.more-on-amazon .btn-ghost:hover { background: #f5c650; }

.other-cats { margin-top: 48px; }
.other-cats h2 { font-size: 1.35rem; }
.other-cats ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.other-cats a { display: block; padding: 8px 16px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.other-cats a:hover { border-color: var(--cranberry); color: var(--cranberry); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.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; }
.guide { margin-top: 56px; background: var(--paper); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); max-width: none; box-shadow: var(--shadow); border-left: 6px solid var(--pine); }
.guide > :first-child { margin-top: 0; }
.guide > * { max-width: 780px; }
.prose-page { background: var(--paper); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); box-shadow: var(--shadow); }
.prose-page > :first-child { margin-top: 0; }
.prose table { border-collapse: collapse; margin: 0 0 1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 12px; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #c4ddd1; margin-top: 24px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 24px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; margin-bottom: .4em; }
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-heading { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: .5em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.disclosure { font-size: .92rem; background: rgba(255,255,255,.07); padding: 12px 14px; border-radius: 10px; border-left: 4px solid var(--gold); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 24px; font-size: .85rem; color: #9fbfb1; }
.footer-base p { margin: 0; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); min-width: 0; }
.post-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.post-card-media img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.post-meta { color: var(--muted); font-size: .86rem; font-weight: 700; margin: 0 0 6px; }
.page-banner .post-meta { color: inherit; opacity: .85; font-size: 1rem; }
.post-card-title { font-size: 1.22rem; margin: 0 0 8px; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--cranberry); }
.post-card-summary { color: var(--muted); font-size: .97rem; line-height: 1.55; margin-bottom: 12px; }
.post-more { margin-top: auto; font-weight: 800; text-decoration: none; color: var(--cranberry); }
.post-more:hover { text-decoration: underline; }
.post-list-compact .post-card-media { aspect-ratio: 2 / 1; }
.post-body { max-width: 780px; }
.post-body h2 { font-size: 1.5rem; }
.post-body img { border-radius: 10px; }
.post-body blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--cranberry); background: var(--frost); border-radius: 0 10px 10px 0; }
.post-picks { margin-top: 48px; }
.more-posts { margin-top: 56px; }

/* Sponsored partner box in blog posts (clearly labelled, rel="sponsored nofollow") */
.santa-note { margin: 1.6em 0; padding: 14px 18px 16px; background: var(--frost); border: 2px dashed var(--gold-deep); border-radius: 12px; }
.santa-note p { margin: 0; }
.santa-note .santa-note-label { margin-bottom: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.santa-note a { font-weight: 700; color: var(--cranberry-deep); }

/* Black Friday strip (2026-11-26, template hides it after 30 Nov) */
.deal-strip { background: var(--night); color: #fff; font-size: .95rem; }
.deal-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.deal-strip p { margin: 0; }
.deal-strip strong { color: var(--gold); }
.deal-strip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.deal-strip-links a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.deal-strip-links a + a { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.deal-strip-links a:hover, .deal-strip-links a:focus-visible { filter: brightness(1.08); text-decoration: underline; }
