/* ---------- Font (self-hosted; SIL Open Font License, see /fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/LibreBaskerville-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: only light;
  --paper: #fbf8f4;
  --card: #f4efe9;
  --fg: #111;
  --muted: #5f5b58;
  --line: rgba(17, 17, 17, 0.14);
  --serif: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset (keeps Chrome, Firefox, Edge and Safari consistent) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--fg); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; -webkit-appearance: none; appearance: none; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: #111; color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding-top: clamp(64px, 9vw, 120px); }
.center { text-align: center; margin-top: 36px; }
.small { font-size: .8rem; color: var(--muted); }

/* ---------- Type ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--muted); margin-bottom: 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2; }
.section-head .sub { color: var(--muted); margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; background: #111; color: #fff; border: 1px solid #111; padding: 15px 34px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease); }
.btn:hover:not(:disabled) { background: transparent; color: #111; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.outline { background: transparent; color: #111; }
.btn.outline:hover:not(:disabled) { background: #111; color: #fff; }
.btn.full { width: 100%; }
.text-link { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link:hover { opacity: .65; }

/* ---------- Header ---------- */
.announce { background: #111; color: #fff; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 10px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-left { display: flex; gap: 28px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-left a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-left a:hover { border-color: currentColor; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .2em; text-indent: .2em; text-decoration: none; text-transform: uppercase; }
.nav-right { display: flex; justify-content: flex-end; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #111; color: #fff; font-size: .7rem; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(88vh, 820px); background-color: #f3e3e2; background-image: radial-gradient(circle at 10% 20%, rgba(201, 226, 223, .95), transparent 55%), radial-gradient(circle at 70% 8%, rgba(244, 235, 185, .85), transparent 45%), radial-gradient(circle at 55% 90%, rgba(242, 201, 210, .9), transparent 60%), linear-gradient(135deg, #f7f1e6, #f3e3e2 50%, #dcebe9); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 110px) clamp(32px, 6vw, 110px); max-width: 700px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.12; margin-bottom: 22px; }
.hero h1 .nw { white-space: nowrap; display: block; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 440px; margin-bottom: 34px; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; width: 100%; min-height: 420px; background: #14110f url(/images/hero.jpg) center / cover; }
.hero-media::before { content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); background: rgba(10,8,6,.25); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: #fff; }
.trust li { text-align: center; padding: 22px 10px; border-right: 1px solid var(--line); }
.trust li:last-child { border-right: 0; }
.trust strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.trust span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.card { display: flex; flex-direction: column; }
.card .img { position: relative; aspect-ratio: 1; background: var(--card); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .img img { transform: scale(1.04); }
.card .info { padding: 16px 2px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: .98rem; line-height: 1.35; }
.card .color { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.card .price { margin-top: 6px; font-size: .95rem; }
.card .btn { padding: 13px 16px; margin-top: auto; }

/* ---------- Banner + tiles ---------- */
.banner { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 24px); padding: clamp(24px,5vw,72px) 0 clamp(16px,3vw,40px); border-radius: 4px; background: radial-gradient(80% 70% at 12% 0%, #cfe6e1 0%, transparent 60%), radial-gradient(80% 70% at 92% 8%, #f4cfd6 0%, transparent 60%), linear-gradient(180deg, #f8f1de, #f3e5dd); }
.banner .b { display: block; }
.banner svg { display: block; width: 68%; margin: 0 auto; height: auto; overflow: visible; }
.banner .body { fill: var(--c); }
.banner text { fill: var(--t); font-family: var(--serif, "Libre Baskerville", Georgia, serif); font-size: 15px; letter-spacing: 2px; opacity: .8; }
.banner .sh { fill: rgba(60,40,40,.28); filter: blur(5px); transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s; transform-box: fill-box; transform-origin: center; }
.banner .bt { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.banner .b:hover .bt, .banner .b:focus-visible .bt { transform: translateY(-16px); }
.banner .b:hover .sh, .banner .b:focus-visible .sh { transform: scale(.82); opacity: .6; }
.banner .b:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .banner .bt, .banner .sh { transition: none; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); padding-top: clamp(64px, 9vw, 120px); }
.tile { position: relative; overflow: hidden; background: var(--card); aspect-ratio: 4 / 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0, 0, 0, .68)); }
.tile figcaption a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; border-top: 1px solid var(--line); padding-top: 40px; }
.features h3 { font-size: 1.15rem; margin-bottom: 8px; }
.features p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--serif); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 640px; }

/* ---------- Notice + footer ---------- */
.notice { background: #fff; border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 28px; text-align: center; }
.site-footer { margin-top: clamp(72px, 10vw, 130px); border-top: 1px solid var(--line); text-align: center; padding: 56px var(--gutter) 64px; color: var(--muted); font-size: .85rem; }
.site-footer .brand { display: inline-block; color: var(--fg); margin-bottom: 14px; }
.site-footer .small { margin-top: 6px; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; opacity: 0; transition: opacity .3s var(--ease); }
.overlay.show { opacity: 1; }
.cart { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--paper); z-index: 50; display: flex; flex-direction: column; padding: 24px; transform: translateX(100%); transition: transform .38s var(--ease); box-shadow: -16px 0 50px rgba(0, 0, 0, .1); visibility: hidden; }
.cart.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.3rem; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.cart-empty { color: var(--muted); padding: 28px 0; }
.cart-items { flex: 1; overflow: auto; }
.cart-items li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-items img { width: 72px; height: 72px; object-fit: cover; background: var(--card); }
.ci-name { font-size: .88rem; line-height: 1.35; }
.ci-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 32px; height: 32px; font-size: 1.1rem; }
.qty span { min-width: 28px; text-align: center; font-size: .9rem; }
.ci-remove { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; }
.cart-foot { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; }
body.locked { overflow: hidden; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .announce { font-size: .62rem; letter-spacing: .08em; }
  .nav-left { display: none; }
  .site-header { grid-template-columns: 1fr auto; padding: 12px var(--gutter); }
  .brand { font-size: 1.45rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: none; padding: 48px var(--gutter) 40px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 5; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(2) { border-right: 0; }
  .trust li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .cart-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Product page ---------- */
.card .img { display: block; }
.pdp { padding-top: 28px; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pdp-media { background: var(--card); aspect-ratio: 1; overflow: hidden; position: sticky; top: 100px; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: 14px; }
.pdp-price { font-size: 1.25rem; margin-bottom: 18px; }
.pdp-lede { color: var(--muted); max-width: 460px; margin-bottom: 28px; }
.pdp-label { font-size: .85rem; margin-bottom: 12px; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px transparent; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px #111; }
.pdp-buy { display: flex; gap: 14px; align-items: stretch; margin-bottom: 28px; }
.pdp-buy .btn { flex: 1; }
.pdp-buy .qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.pdp-buy .qty button { width: 40px; align-self: stretch; min-height: 48px; font-size: 1.1rem; }
.pdp-buy .qty span { min-width: 28px; text-align: center; }
.pdp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; border-top: 1px solid var(--line); padding: 22px 0; margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.pdp-facts strong { color: var(--fg); font-weight: 600; }
@media (max-width: 760px) { .pdp-grid { grid-template-columns: 1fr; } .pdp-media { position: static; } }
.was { color: var(--muted); font-weight: 400; }
.off { display: inline-block; margin-left: 4px; padding: 2px 8px; background: #111; color: #fff; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.card .price .now, .pdp-price .now { font-weight: 600; }
.card .price { line-height: 1.9; }

/* ---------- Cart shipping + footer links + legal pages ---------- */
.ship { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .88rem; }
.ship legend { padding: 0; margin-bottom: 8px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ship label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ship label span { margin-left: auto; color: var(--muted); }
.ship input { accent-color: #111; width: 16px; height: 16px; }
.cart-line { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 18px 0 14px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.legal { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #2b2927; margin-bottom: 12px; line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 12px; }
.legal a { text-decoration: underline; }
.contact-card { border: 1px solid var(--line); padding: 28px; margin: 24px 0; background: #fff; }
.contact-card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin-bottom: 6px; }

.pdp-media.zoomable { cursor: crosshair; }
.zoom-lens { display: none; position: absolute; width: 200px; height: 200px; border: 1px solid #111; box-shadow: 0 6px 24px rgba(0,0,0,.25); background-color: #fff; background-repeat: no-repeat; pointer-events: none; }

.specs { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line, #e6e0d8); vertical-align: top; }
.specs th { width: 40%; font-weight: 600; padding-right: 12px; }

.contact-form { display: grid; gap: 16px; margin: 16px 0 32px; }
.contact-form label { display: grid; gap: 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; padding: 13px 14px; border: 1px solid var(--line); background: #fff; color: #111; border-radius: 0; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #111; outline-offset: 1px; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { min-height: 1.4em; font-size: .95rem; margin: 0; }
.contact-status.ok { color: #1f6b3a; }
.contact-status.err { color: #a3261f; }
