/* Dec Pillows. Colours are Sunny's choice (2026-11-12, see .claude/CLAUDE.md). */
:root {
  --bg: #FAF7F2;          /* warm off-white page */
  --surface: #FFFFFF;
  --wine: #8C2F39;        /* headings, wordmark, buttons */
  --wine-ink: #FFFFFF;
  --ink: #1F2328;         /* main text */
  --body: #5F6B7A;        /* body copy, slate */
  --fine: #8A929C;        /* small print */
  --line: #E8E1D6;
  --soft: #F2ECE3;
  --sale: #8C2F39;
  --focus: #8C2F39;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1718; --surface: #241F20; --wine: #E2A0A8; --wine-ink: #1B1718;
    --ink: #F3EEE9; --body: #C5CBD3; --fine: #9AA2AC; --line: #3A3233; --soft: #2C2627;
    --sale: #E2A0A8; --focus: #E2A0A8; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
h1, h2, h3, .brand { font-family: var(--serif); color: var(--wine); font-weight: 400; letter-spacing: .02em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.4rem); margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--wine); color: var(--wine-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted, .fine { color: var(--fine); }
.fine { font-size: .875rem; }
.lede { font-size: 1.1rem; color: var(--ink); }

/* header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { font-size: 1.6rem; text-decoration: none; margin: 0; white-space: nowrap; }
.brand.small { font-size: 1.25rem; margin-bottom: .5rem; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--wine); text-decoration: underline; }
.cart-link { position: relative; color: var(--ink); display: inline-flex; padding: 8px; margin-right: -8px; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--wine); color: var(--wine-ink); font-size: .75rem; line-height: 20px; text-align: center; font-weight: 600; }
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; gap: .25rem 1rem; padding-top: .5rem; }
  .nav { order: 3; width: 100%; margin: 0 0 .5rem; gap: 1rem; overflow-x: auto; }
  .cart-link { margin-left: auto; }
}

/* buttons */
.btn { display: inline-block; background: var(--wine); color: var(--wine-ink); border: 1px solid var(--wine); border-radius: 999px;
  padding: .75rem 1.5rem; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--wine); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--wine); text-decoration: underline; cursor: pointer; font: inherit; font-size: .875rem; padding: 4px; }

/* hero */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.hero-img img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .hero-in { grid-template-columns: 1fr; padding-top: 1.5rem; } .hero-img { order: -1; } }

.section { padding-top: 2rem; padding-bottom: 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }

/* grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.card a { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--ink); }
.ph { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.ph img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .4s ease; }
.card a:hover .ph img { transform: scale(1.03); }
.card-name { font-size: .975rem; line-height: 1.35; }
.card a:hover .card-name { color: var(--wine); }
.badge { position: absolute; top: 10px; left: 10px; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.badge.sale { background: var(--wine); color: var(--wine-ink); }
.badge.out { background: var(--ink); color: var(--bg); }
.price { color: var(--ink); font-weight: 600; }
.price.sale { color: var(--sale); }
.was { color: var(--fine); font-size: .9em; }
.tools { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 1rem 0 1.5rem; }
.tools select { margin-left: .4rem; font: inherit; padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.check { display: inline-flex; gap: .4rem; align-items: center; }

/* product */
.crumbs { font-size: .875rem; padding-top: 1rem; color: var(--fine); }
.crumbs a { color: var(--fine); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; padding-top: 1rem; padding-bottom: 2rem; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 1.5rem; } }
.main-img img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--surface); }
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; width: 72px; height: 72px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--wine); }
.pp { font-size: 1.4rem; margin: .25rem 0 .1rem; }
.buy { margin: 1.25rem 0; display: grid; gap: 1rem; }
.sizes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sizes legend { color: var(--ink); font-weight: 600; margin-bottom: .5rem; padding: 0; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; }
.size span { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: .95rem; }
.size input:checked + span { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); color: var(--wine); }
.size input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.size.out span { opacity: .5; text-decoration: line-through; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; gap: 1rem; color: var(--ink); }
.qty-row input { width: 4.5rem; margin-left: .4rem; font: inherit; padding: .45rem .5rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.stock { color: var(--fine); font-size: .9rem; }
.msg { min-height: 1.5em; margin: 0; color: var(--ink); }
.desc { color: var(--body); border-top: 1px solid var(--line); padding-top: 1rem; }

/* cart */
.lines { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-img img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.line-info { display: flex; flex-direction: column; gap: .15rem; }
.line-name { color: var(--ink); text-decoration: none; font-weight: 600; }
.line-total { color: var(--ink); font-weight: 600; }
.qty { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.qbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.qbtn[disabled] { opacity: .4; cursor: not-allowed; }
.qval { min-width: 1.5rem; text-align: center; color: var(--ink); }
.cart-sum { max-width: 420px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
.cart-sum .sub { display: flex; justify-content: space-between; color: var(--ink); font-size: 1.1rem; }
.notice { background: var(--soft); border-left: 3px solid var(--wine); padding: .75rem 1rem; margin-bottom: 1rem; color: var(--ink); }
.notice p { margin: 0; }

/* prose + how */
.prose { max-width: 760px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); }
.how { padding-bottom: 2.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wine); color: var(--wine-ink); font-family: var(--serif); margin-bottom: .6rem; }
.steps strong { display: block; color: var(--ink); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* footer */
.site-footer { margin-top: 3rem; background: var(--soft); border-top: 1px solid var(--line); font-size: .95rem; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.as-item { display: flex; gap: .85rem; align-items: center; }
.as-ic { flex: none; color: var(--wine); }
.as-item strong { display: block; color: var(--ink); font-weight: 600; }
.as-item span { color: var(--fine); font-size: .875rem; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.foot-brand .brand { font-size: 1.5rem; display: inline-block; margin-bottom: .6rem; }
.foot-brand p { max-width: 34ch; }
.small-btn { padding: .5rem 1.1rem; font-size: .9rem; }
.foot-col { display: flex; flex-direction: column; gap: .5rem; }
.foot-col h2 { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 .35rem; }
.foot-col a { color: var(--body); text-decoration: none; width: fit-content; }
.foot-col a:hover { color: var(--wine); text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--line); background: var(--bg); }
.fb-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; color: var(--fine); font-size: .8125rem; }
@media (max-width: 860px) {
  .assure { grid-template-columns: 1fr; gap: .9rem; }
  .foot { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .foot { grid-template-columns: 1fr 1fr; } .foot-col:last-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
