/* Forever Keepsakes
   VOICE   warm, plain, a little playful: a small Christmas gift shop
   IDEA    the two gifts hang like baubles on gold ribbon; everything else is quiet
   COLOUR  evergreen tree, Santa red for buying only, ribbon gold for strings, white and frost grounds
   TYPE    Young Serif headlines, Figtree text
   LAYOUT  one centred column; products always in equal pairs */

:root {
  --evergreen: #123d2f;
  --evergreen-deep: #0d2e23;
  --red: #c21f3f;
  --red-dark: #a3172f;
  --gold: #b8902f;
  --ink: #15241e;
  --muted: #4d5b55;
  --frost: #eef3f0;
  --line: #dbe4df;
  --white: #ffffff;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.section { padding-block: var(--section); }
.frost { background: var(--frost); }
.green { background: var(--evergreen); color: var(--white); }

.h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; }
.h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; }
.h3 { font-size: 24px; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 36em; margin-inline: auto; }
.section-head { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .h2 { color: var(--evergreen); max-width: 20ch; }
.small { font-size: 14px; color: var(--muted); }

/* buttons: red is only ever "buy"; green and outline are for moving around the shop */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--evergreen); color: var(--white); }
.btn-green:hover { background: var(--evergreen-deep); }
.btn-line { border-color: var(--evergreen); color: var(--evergreen); background: transparent; }
.btn-line:hover { background: var(--evergreen); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-block { width: 100%; }

/* announcement and header */
.notice { background: var(--evergreen); color: var(--white); text-align: center; font-size: 14px; padding: 10px var(--gutter); }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 22px; }
.logo { grid-column: 2; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); color: var(--evergreen); text-decoration: none; white-space: nowrap; }
.cart-link { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: 15px; color: var(--evergreen); text-decoration: none; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; }
.cart-count[data-empty] { background: var(--line); color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; padding-block: 10px 12px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* hero: two baubles hanging on gold ribbon either side of the words */
.hero { padding-bottom: var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(0, 1fr); align-items: start; gap: 24px; }
.hero-copy { display: grid; justify-items: center; gap: 22px; text-align: center; padding-top: clamp(64px, 9vw, 120px); }
.hero-copy .h1 { color: var(--evergreen); }
.hero-copy .btn-row { margin-top: 10px; }
.bauble { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); transform-origin: 50% 0; }
.bauble-string { width: 2px; height: var(--drop, 80px); background: var(--gold); }
.bauble-cap { width: 34px; height: 16px; border-radius: 4px 4px 2px 2px; background: var(--gold); }
.bauble-ball { width: min(310px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-top: -2px; border: 5px solid var(--white); box-shadow: 0 0 0 2px var(--gold); background: var(--frost); }
.bauble-ball img { width: 100%; height: 100%; object-fit: cover; }
.bauble-name { margin-top: 18px; font-weight: 600; font-size: 17px; text-align: center; }
.bauble-price { font-size: 16px; color: var(--red); font-weight: 600; }
.bauble:hover .bauble-name { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .bauble { animation: swing 2.4s cubic-bezier(.36, .07, .19, .97) .2s both; }
  .bauble + .hero-copy + .bauble { animation-delay: .45s; }
  @keyframes swing { 0% { transform: rotate(-6deg); } 35% { transform: rotate(4deg); } 65% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
}

/* product pair */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); max-width: 1040px; margin-inline: auto; }
.product-card { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 16px 16px 32px; background: var(--white); border-radius: 24px; text-align: center; text-decoration: none; color: var(--ink); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
.product-card .h3 { color: var(--evergreen); }
.price { color: var(--red); font-weight: 700; font-size: 20px; }
.product-card .btn { margin-top: 16px; }
.product-card:hover .btn-green { background: var(--evergreen-deep); }

/* three facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 1080px; margin-inline: auto; }
.fact { display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; }
.fact svg { width: 42px; height: 42px; stroke: #e6c779; }
.fact p { color: #cfe0d8; max-width: 24em; }

/* photo pair */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }

/* closing */
.closing { display: grid; justify-items: center; gap: 18px; text-align: center; }
.closing .h2 { color: var(--evergreen); max-width: 18ch; }

/* footer */
.site-footer { background: var(--evergreen-deep); color: #cfe0d8; text-align: center; padding-block: 64px 40px; }
.site-footer .logo { color: var(--white); display: inline-block; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; margin-top: 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-line { margin-top: 18px; font-size: 15px; }
.footer-legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: #9fb9ad; }

/* product page */
.pdp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 5vw, 64px) var(--section); }
.gallery { display: grid; gap: 14px; justify-items: center; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: var(--frost); }
.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.thumb { padding: 3px; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; }
.thumb img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; }
.thumb[aria-pressed="true"] { border-color: var(--evergreen); }
.buy { display: grid; justify-items: center; gap: 14px; padding: clamp(28px, 4vw, 44px); background: var(--frost); border-radius: 26px; text-align: center; }
.buy .h1 { font-size: clamp(36px, 3.8vw, 52px); color: var(--evergreen); }
.buy .price { font-size: 28px; }
.buy-meta { display: grid; gap: 2px; font-size: 15px; color: var(--muted); }
.buy-desc { max-width: 32em; color: var(--ink); }
.field { border: 0; margin: 10px 0 0; padding: 0; display: grid; justify-items: center; gap: 10px; width: 100%; }
.field legend, .field-label { font-weight: 600; font-size: 15px; padding: 0; margin: 0 auto 10px; }
.sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size span { display: inline-grid; place-items: center; min-width: 60px; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #b9c6bf; background: var(--white); font-weight: 600; cursor: pointer; }
.size input:checked + span { background: var(--evergreen); border-color: var(--evergreen); color: var(--white); }
.size input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #b9c6bf; border-radius: 999px; background: var(--white); }
.stepper button { width: 48px; height: 48px; border: 0; background: none; font-size: 22px; color: var(--evergreen); cursor: pointer; border-radius: 999px; }
.stepper output { min-width: 36px; text-align: center; font-weight: 700; }
.buy .btn-red { width: 100%; max-width: 420px; min-height: 58px; font-size: 17px; margin-top: 10px; }
.form-status { min-height: 24px; font-size: 15px; font-weight: 600; }
.form-status[data-tone="error"] { color: var(--red-dark); }
.form-status[data-tone="ok"] { color: var(--evergreen); }
.view-cart[hidden] { display: none; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 14px 14px 30px; background: var(--white); border-radius: 22px; text-align: center; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--evergreen); color: var(--white); font-weight: 700; }
.step p { color: var(--muted); max-width: 24em; }

.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.quad img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }

.specs { max-width: 640px; margin: 0 auto; padding: 8px 32px; background: var(--white); border-radius: 22px; }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.faq { max-width: 720px; margin: 0 auto; text-align: center; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0; }
.faq-item p { margin-top: 6px; color: var(--muted); }

.also { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 820px; margin: 0 auto; padding: 18px; background: var(--white); border-radius: 26px; text-decoration: none; color: var(--ink); }
.also img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.also-copy { display: grid; justify-items: center; gap: 8px; text-align: center; }
.also-copy .h3 { color: var(--evergreen); font-size: 28px; }

/* cart */
.cart { max-width: 860px; margin: 0 auto; padding-block: clamp(40px, 5vw, 64px) var(--section); }
.cart .h1 { color: var(--evergreen); text-align: center; font-size: clamp(36px, 4.4vw, 56px); }
.cart-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; }
.cart-name { font-weight: 600; font-size: 18px; }
.cart-variant { font-size: 15px; color: var(--muted); }
.cart-remove { margin-top: 6px; padding: 0; min-height: 32px; border: 0; background: none; color: var(--red-dark); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-line-price { font-weight: 700; min-width: 84px; text-align: right; }
.summary { display: grid; gap: 4px; max-width: 460px; margin: 40px auto 0; padding: 30px; background: var(--frost); border-radius: 24px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.summary-row.total { margin-top: 6px; padding-top: 16px; border-top: 1px solid #cfdad4; font-weight: 700; font-size: 20px; }
.summary .btn-red { margin-top: 18px; min-height: 58px; font-size: 17px; }
.summary .small { margin-top: 10px; text-align: center; }
.cart-empty { display: grid; justify-items: center; gap: 16px; margin-top: 40px; padding: 56px 24px; background: var(--frost); border-radius: 26px; text-align: center; }
.cart-empty[hidden], .cart-full[hidden] { display: none; }

/* tablet and phone: everything stacks into one centred column */
@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .hero-copy { grid-column: 1 / -1; grid-row: 2; padding-top: 28px; }
  .bauble-ball { width: min(170px, 100%); border-width: 4px; }
  .bauble-name { font-size: 15px; margin-top: 12px; }
  .bauble-string { height: 36px; }
  .bauble-name { min-height: 2.6em; display: grid; align-items: start; }
  .main-nav a[href="#contact"] { display: none; }
  .thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .thumb { padding: 2px; }
  .thumb img { width: 100%; height: auto; aspect-ratio: 1; }
  .pair, .photos { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .also { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; }
  .header-top { grid-template-columns: 44px 1fr 44px; padding-top: 16px; }
  .logo { font-size: 24px; text-align: center; }
  .cart-link .cart-word { display: none; }
  .main-nav { gap: 0 20px; padding-block: 4px 6px; }
  .cart-row { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "img info" "img qty" "img price"; row-gap: 8px; }
  .cart-row img { grid-area: img; width: 84px; height: 84px; align-self: start; }
  .cart-row .cart-info { grid-area: info; }
  .cart-row .stepper { grid-area: qty; justify-self: start; }
  .cart-row .cart-line-price { grid-area: price; text-align: left; }
}
@media (max-width: 380px) {
  .main-nav a { font-size: 14px; }
}
