/* =========================================================================
   KitCo Sets — static rebuild
   Brand: cream #fcf9f4 / dark-teal #14453d / soft-gray #ECECE7
   Type: EB Garamond (display serif) + Fira Sans (body sans)
   ========================================================================= */

/* ---- Fonts (self-hosted, latin subset) -------------------------------- */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ebgaramond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/ebgaramond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/ebgaramond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/firasans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/firasans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/firasans-600.woff2') format('woff2');
}

/* ---- Tokens ----------------------------------------------------------- */
:root {
  --bg: #fcf9f4;
  --bg-sunken: #f4efe6;
  --fg: #14453d;
  --fg-soft: #4a6b63;
  --muted: #ECECE7;
  --line: #e3ddd1;
  --white: #ffffff;
  --ink: #070707;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1120px;
  --readw: 64ch;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 69, 61, .06), 0 12px 32px -16px rgba(20, 69, 61, .28);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:where(p) a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
:where(p) a:hover { color: var(--fg-soft); }

/* ---- Layout helpers --------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.section { padding-block: clamp(3rem, 8vw, var(--space-6)); }
.section--sunken { background: var(--bg-sunken); }
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 .75rem;
}
.lead { font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); color: var(--fg); text-wrap: balance; }
.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-weight: 500; font-size: .95rem; }
.nav a { position: relative; padding-block: .25rem; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--fg); transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* ---- Hero ------------------------------------------------------------- */
.hero { text-align: center; padding-top: clamp(3rem, 9vw, 7rem); }
.hero h1 {
  font-size: clamp(2.8rem, 1.5rem + 6vw, 5.5rem);
  letter-spacing: -.01em;
}
.hero h1 .line2 { color: var(--fg-soft); font-style: italic; }
.hero .lead { max-width: 34ch; margin-inline: auto; margin-top: 1.1rem; color: var(--fg-soft); }
.hero-figure {
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  max-width: var(--maxw);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
}
.hero-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---- Content sections ------------------------------------------------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: -1; } }
.split__body h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: .6rem; }
.split__body p { text-wrap: balance; }
.split__media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--muted);
}
.split__media img { width: 100%; height: auto; display: block; }

/* ---- Specs / dimensions ---------------------------------------------- */
.specs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 1.5rem; }
.spec {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.spec dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); font-weight: 600; }
.spec dd { margin: .4rem 0 0; font-family: var(--sans); font-weight: 600; font-size: 1.95rem; letter-spacing: -.01em; }
.spec dd small { display: block; font-family: var(--sans); font-weight: 400; font-size: .9rem; color: var(--fg-soft); letter-spacing: 0; }

/* ---- Color swatches --------------------------------------------------- */
.swatches { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .82rem; color: var(--fg-soft); }
.swatch .dot {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), var(--shadow);
}
.dot--red { background: #e0392b; }
.dot--orange { background: #ef7e29; }
.dot--yellow { background: #f4c531; }
.dot--blue { background: #2f5fd0; }
.dot--white { background: #f7f5ef; }
.dot--gray { background: #9aa0a3; }
.dot--black { background: #1c1c1c; }
@media (max-width: 600px) {
  .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem .5rem; }
  .swatch .dot { width: 52px; height: 52px; }
}

/* ---- Availability / badge -------------------------------------------- */
.availability { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .85rem; letter-spacing: .04em;
  padding: .5rem .9rem; border-radius: 999px;
  background: var(--fg); color: var(--bg);
}
.badge--soldout { background: var(--fg); }
.badge .dot-pulse { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; opacity: .8; }
.edition { color: var(--fg-soft); font-style: italic; font-family: var(--serif); font-size: 1.2rem; }

/* ---- Gallery ---------------------------------------------------------- */
.gallery {
  display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--muted); box-shadow: var(--shadow);
}
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery a:hover img { transform: scale(1.05); }

/* ---- Prose (Returns / FAQ / Privacy) --------------------------------- */
.page-head { text-align: center; padding-top: clamp(2.5rem, 7vw, 5rem); }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); }
.page-head p { color: var(--fg-soft); margin-top: .75rem; }
.prose { max-width: var(--readw); margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }

/* FAQ (written out) */
.faq-list { max-width: var(--readw); margin-inline: auto; }
.faq-list .qa { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.faq-list .qa:first-child { padding-top: 0; }
.faq-list .qa:last-child { border-bottom: 0; }
.faq-q { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; margin: 0 0 .55rem; }
.faq-a { color: var(--fg-soft); margin: 0; }

/* ---- Lightbox (progressive enhancement) ------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 5vw;
  background: rgba(7, 7, 7, .82); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: 0; cursor: pointer;
  color: #fff; font-size: 2rem; line-height: 1; padding: .25rem .5rem;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: #fff;
  font-size: 3rem; line-height: 1; padding: 1rem 1.25rem; opacity: .75;
  transition: opacity .2s var(--ease);
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: max(.5rem, 2vw); }
.lightbox__nav--next { right: max(.5rem, 2vw); }
@media (max-width: 600px) { .lightbox__nav { font-size: 2.2rem; padding: .5rem; } }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 6rem); }
.site-footer__inner { padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.footer-mark img { height: 40px; margin-inline: auto; opacity: .9; }
.footer-nav { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font-weight: 500; }
.footer-nav a:hover { color: var(--fg-soft); }
.social { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.social a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social svg.fb { width: 22px; height: 22px; } /* optical size match: FB glyph sits in a smaller circle */
.colophon { margin-top: 1.75rem; font-size: .85rem; color: var(--fg-soft); }
.colophon a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Motion preferences ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
