/* ==========================================================================
   WILD FOCUS — STYLES
   Palette and type taken from the printed collection cards.
   ========================================================================== */

:root {
  --paper: #f7f4ee;
  --card: #fdfcf9;
  --ink: #1d1d1b;
  --ink-soft: #4a4844;
  --muted: #7b776f;
  --line: #d9d3c7;
  --sand: #ece5d8;
  --accent: #8e2a24; /* red jasper */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(29, 29, 27, 0.06), 0 12px 30px -12px rgba(29, 29, 27, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6em;
}

.text-link { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.text-link:hover { border-color: var(--ink); }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.03em;
  font-size: 3.4rem;
  color: var(--ink);
}
.wordmark .wm-line { display: inline-flex; align-items: center; }
.wordmark .wm-w { position: relative; display: inline-block; }
.wordmark .sprout {
  position: absolute;
  width: 0.42em;
  left: 50%;
  top: -0.2em;
  transform: translateX(-50%);
  color: var(--ink);
}
.wordmark .crystal-o { width: 0.72em; height: 0.72em; margin: 0 0.02em; }
.wordmark.nav { font-size: 1.55rem; }
.wordmark.sm { font-size: 2rem; }
.wordmark.lg { font-size: clamp(3.4rem, 9vw, 6rem); }

/* ---------- Divider ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 1.2em auto;
  max-width: 420px;
  color: var(--ink);
}
.divider span { flex: 1; height: 1px; background: var(--ink); opacity: 0.55; }
.divider .star { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 2em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 0.75em 1.1em; font-size: 0.64rem; letter-spacing: 0.16em; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7em 1em;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
}
.logo-link { grid-column: 2; padding-top: 6px; }
.primary-nav { grid-column: 1; grid-row: 1; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.primary-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3em 0;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { border-color: var(--ink); }
.cart-link { grid-column: 3; justify-self: end; position: relative; width: 28px; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
    gap: 6px;
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    background: none;
    border: 0;
    padding: 10px 8px;
    cursor: pointer;
  }
  .menu-toggle span { display: block; height: 1px; background: var(--ink); }
  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .primary-nav a { padding: 0.9em 0; border-bottom: 1px solid var(--line); }
  .nav-open .primary-nav { display: flex; }
  .nav-wrap { min-height: 70px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(239, 210, 169, 0.35), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(159, 176, 227, 0.25), transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(231, 196, 194, 0.35), transparent 45%),
    var(--paper);
}
.hero .eyebrow { margin-top: 1.4em; font-size: clamp(0.66rem, 1.6vw, 0.9rem); letter-spacing: 0.28em; }
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto 2rem;
  line-height: 1.4;
}
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-stones {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 14px);
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stones .swatch { width: clamp(22px, 4vw, 38px); height: clamp(22px, 4vw, 38px); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head p { max-width: 56ch; margin-inline: auto; color: var(--ink-soft); }

/* ---------- Swatches ---------- */

.swatch {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset -3px -4px 8px rgba(0, 0, 0, 0.18),
    inset 3px 3px 6px rgba(255, 255, 255, 0.18);
  flex: none;
}
.swatch.xl { width: min(58%, 220px); height: auto; aspect-ratio: 1; }
.swatches { display: flex; justify-content: center; gap: 6%; margin-top: 1em; width: 100%; }
.swatches .swatch { width: 15%; height: auto; aspect-ratio: 1; }

/* ---------- Product cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.product-card { display: flex; flex-direction: column; }
.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10%;
  transition: transform 0.4s ease;
}
.product-media.crystal { background: linear-gradient(160deg, #efe9de, #e3dacb); }
.product-card:hover .product-media { transform: translateY(-3px); }
.product-info { padding-top: 1rem; }
.product-info h3 { font-size: 1.45rem; text-transform: uppercase; margin-bottom: 0.15em; }
.product-info p { margin-bottom: 0.6em; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.price.big { font-size: 2rem; margin-bottom: 0.6em; }

/* The printed-card artwork */
.card-art {
  width: 100%;
  aspect-ratio: 1;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9% 7%;
  container-type: inline-size;
  transform: rotate(-1.2deg);
}
.product-card:nth-child(even) .card-art { transform: rotate(1deg); }
.card-art .wordmark { font-size: 10cqi; }
.card-art .eyebrow { font-size: 3.1cqi; letter-spacing: 0.18em; margin: 0.6em 0 0; white-space: nowrap; }
.card-art .divider { margin: 0.6em 0; width: 100%; max-width: none; gap: 3cqi; }
.card-art .divider .star { width: 3.6cqi; height: 3.6cqi; }
.card-art-title { font-size: 10.5cqi; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; line-height: 1.05; font-weight: 500; }

.stone-art { display: grid; place-items: center; gap: 1.2rem; width: 100%; }
.stone-art .eyebrow { margin: 0; }

/* ---------- Stone strip ---------- */

.stone-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.6rem 1rem;
}
.stone-chip { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.stone-chip .swatch { width: 74px; height: 74px; transition: transform 0.3s; }
.stone-chip:hover .swatch { transform: scale(1.07) rotate(8deg); }

/* ---------- Feature/values ---------- */

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; text-align: center; }
.values h3 { font-size: 1.4rem; text-transform: uppercase; }
.values p { color: var(--ink-soft); max-width: 32ch; margin-inline: auto; }
.values .star { width: 18px; height: 18px; margin: 0 auto 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-art {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff, var(--sand));
  position: relative;
}
.split-art .swatch { position: absolute; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split-art { max-width: 380px; margin-inline: auto; width: 100%; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; }
.steps li::before {
  content: counter(step, upper-roman);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--accent);
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.03em; }

.quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  max-width: 28ch;
  margin: 0 auto 1rem;
}

/* ---------- Shop page ---------- */

.page-head { text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; }
.filters { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.filters button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.6em 1.3em;
  font: 500 0.68rem var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Product page ---------- */

.crumbs { padding: 1.6rem 0; color: var(--muted); letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--ink); }
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 4rem; }
.product-media.large { aspect-ratio: 1; padding: 13%; position: sticky; top: 140px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); margin-top: -0.3em; }
.h-small { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.2em; margin-top: 2rem; }
.buy-row { display: flex; gap: 0.8rem; margin: 1.8rem 0 0.5rem; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.qty button { background: none; border: 0; width: 42px; height: 46px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty input { width: 40px; text-align: center; border: 0; background: none; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stone-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.stone-list a { display: flex; align-items: center; gap: 0.8rem; }
.stone-list a:hover span { text-decoration: underline; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: 0.35em; }
.ticks li::before { content: "✦"; position: absolute; left: 0; font-size: 0.75em; top: 0.25em; }
@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-media.large { position: static; }
}

/* ---------- Cart ---------- */

.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 5rem; }
.cart-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cart-lines li {
  display: grid;
  grid-template-columns: 76px 1fr auto auto 28px;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 76px; padding: 8px; background: var(--sand); border-radius: var(--radius); }
.cart-thumb .swatch { width: 100%; height: auto; aspect-ratio: 1; }
.cart-thumb .swatch:only-child { grid-column: 1 / -1; }
.cart-name { display: flex; flex-direction: column; }
.cart-name a { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.small-qty button { width: 32px; height: 36px; }
.small-qty span { min-width: 20px; text-align: center; }
.line-total { font-weight: 500; min-width: 64px; text-align: right; }
.remove { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.remove:hover { color: var(--accent); }
.totals { margin-top: 1.4rem; display: grid; gap: 0.4rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.4rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.panel h2 { font-size: 1.7rem; }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-lines li { grid-template-columns: 60px 1fr auto 24px; }
  .cart-thumb { width: 60px; }
  .line-total { display: none; }
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form textarea, .newsletter input {
  font: 400 0.95rem var(--sans);
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
  letter-spacing: normal;
  text-transform: none;
}
.form textarea { min-height: 120px; resize: vertical; }
.newsletter { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.newsletter input { padding: 0.7em 0.9em; min-width: 0; }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0.8rem 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */

#site-footer { background: var(--card); border-top: 1px solid var(--line); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-grid > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid > div:first-child .eyebrow { margin-top: 0.8rem; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer-grid a { display: block; margin-bottom: 0.45rem; color: var(--ink-soft); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.4rem 0 2rem; font-size: 0.78rem; color: var(--muted); }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */

.empty { text-align: center; padding: 3rem 0; display: grid; justify-items: center; gap: 1rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  z-index: 50;
  transition: transform 0.35s ease;
  max-width: calc(100% - 32px);
  box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { text-decoration: underline; margin-left: 0.6rem; white-space: nowrap; }

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

/* Collections on the home page: rows of 3 (centred), then 2, then 1 */
.grid.grid-kits { display: flex; flex-wrap: wrap; justify-content: center; --cols: 3; --gap: clamp(1.2rem, 3vw, 2.2rem); }
.grid-kits > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); max-width: 360px; }
@media (max-width: 900px) { .grid.grid-kits { --cols: 2; } }
@media (max-width: 600px) { .grid.grid-kits { --cols: 1; } }

.trio { margin-top: 0.8rem; }
.trio span { margin: 0 0.5em; }
.footer-grid .trio { white-space: nowrap; font-size: 0.62rem; letter-spacing: 0.16em; }
.footer-grid .trio span { margin: 0 0.35em; }

/* ---------- PayPal / Apple Pay / Google Pay checkout ---------- */

.pay-online { position: relative; }
.pay-online .form { margin-bottom: 1.2rem; }
.pay-buttons { display: grid; gap: 10px; }
.wallet-btn { height: 48px; }
.wallet-btn[hidden] { display: none; }
.wallet-btn > * { width: 100%; height: 100%; }
apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 48px;
  --apple-pay-button-border-radius: 4px;
  display: block;
}
#paypal-buttons { min-height: 48px; }
.pay-msg { min-height: 1.2em; margin: 0.8rem 0 0; font-size: 0.86rem; }
.pay-msg[data-kind="error"] { color: var(--accent); }
.pay-msg[data-kind="info"] { color: var(--ink-soft); }
.secure { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-soft); margin-top: 0.6rem; }
.secure svg { width: 18px; flex: none; margin-top: 2px; }
.pay-online.is-busy::after {
  content: "Processing your payment…";
  position: absolute;
  inset: -8px;
  display: grid;
  place-items: center;
  background: rgba(253, 252, 249, 0.92);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  z-index: 5;
}
.success h2 { text-transform: uppercase; }
.success-mark { font-size: 1.8rem; color: var(--accent); }
