/* Joenydoll — direction A "dark luxury". Palette and rules per .claude/skills/joenydoll-design. */

:root {
  --ink-bg: #161114;
  --ink-bg-deep: #100C0F;
  --surface: #1D161C;
  --text: #EDE4D7;
  --text-muted: #A79A8C;
  --gold: #C6A15B;
  --gold-hover: #DDBB78;
  --hairline: rgba(198, 161, 91, 0.28);
  --hairline-soft: rgba(198, 161, 91, 0.22);
  --hairline-faint: rgba(198, 161, 91, 0.18);
  --font-display: Marcellus, Georgia, serif;
  --font-body: Karla, "Gill Sans", "Segoe UI", sans-serif;
  --pad-x: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink-bg); padding: 10px 18px; font-size: 13px;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.eyebrow--sm { font-size: 10px; }
.muted { color: var(--text-muted); }

.wordmark { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.42em; color: var(--text); }
.wordmark--footer { font-size: 18px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--pad-x);
  border-bottom: 1px solid var(--hairline-soft);
}
.site-header--checkout { justify-content: center; }
.site-nav { display: flex; gap: 40px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--text); }
.header-tools { display: flex; gap: 8px; align-items: center; }
.tool-link { color: var(--text); display: flex; align-items: center; padding: 12px 10px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700; text-align: center;
}
.btn--primary { background: var(--gold); color: var(--ink-bg); padding: 17px 34px; }
.btn--primary:hover { background: var(--gold-hover); color: var(--ink-bg); }
.btn--outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 15px 34px; }
.btn--outline:hover { color: var(--gold-hover); border-color: var(--gold-hover); }
.text-link {
  font-size: 13px; letter-spacing: 0.08em; color: var(--text-muted);
  border-bottom: 1px solid rgba(167, 154, 140, 0.5); padding-bottom: 3px;
}
.text-link:hover { color: var(--text); }

/* Sections */
.section { padding: 88px var(--pad-x); }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head--split { flex-direction: row; align-items: baseline; justify-content: space-between; }
.section-title { font-size: 34px; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 640px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 80px 72px; }
.hero-title { font-size: 56px; line-height: 1.14; }
.hero-sub { max-width: 44ch; color: var(--text-muted); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 10px; flex-wrap: wrap; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Product grid & cards */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.product-card { display: flex; flex-direction: column; gap: 16px; color: var(--text); }
.product-card:hover { color: var(--text); }
.product-card:hover .product-card-name { color: var(--gold-hover); }
.product-card-media { aspect-ratio: 4 / 5; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { display: flex; flex-direction: column; gap: 6px; }
.product-card-brand { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.product-card-name { font-family: var(--font-display); font-size: 22px; }
.product-card-spec { font-size: 13px; color: var(--text-muted); }
.product-card-price { font-size: 15px; color: var(--gold); margin-top: 4px; }

/* Category page */
.page-head { padding: 64px var(--pad-x) 0; display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.page-title { font-size: 44px; }
.page-intro { color: var(--text-muted); line-height: 1.85; max-width: 62ch; }

/* Spec plaque (craft band) */
.craft { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.craft-copy { display: flex; flex-direction: column; gap: 22px; padding-right: 40px; }
.craft-title { font-size: 36px; line-height: 1.25; }
.plaque { display: flex; border: 1px solid rgba(198, 161, 91, 0.35); margin-top: 8px; }
.plaque-cell { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.plaque-cell + .plaque-cell { border-left: 1px solid rgba(198, 161, 91, 0.35); }
.plaque-value { font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.plaque-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

/* Assurance strip */
.assurance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding: 64px var(--pad-x); border-top: 1px solid var(--hairline); }
.assurance-item { display: flex; gap: 18px; align-items: flex-start; }
.assurance-item svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.assurance-title { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.assurance-text { font-size: 13px; line-height: 1.7; color: var(--text-muted); }

/* Product page */
.breadcrumb { padding: 22px var(--pad-x) 0; font-size: 12px; letter-spacing: 0.1em; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { margin: 0 10px; color: rgba(167, 154, 140, 0.5); }

.product-main { display: grid; grid-template-columns: minmax(0, 53fr) minmax(0, 43fr); gap: 56px; padding: 28px var(--pad-x) 72px; }

.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-hero { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom {
  position: absolute; right: 16px; top: 16px; width: 38px; height: 38px;
  border: 1px solid rgba(237, 228, 215, 0.4); display: flex; align-items: center; justify-content: center;
  color: var(--text); pointer-events: none;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gallery-thumb { aspect-ratio: 1 / 1; overflow: hidden; padding: 0; border: 0; background: none; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-current="true"] { outline: 1px solid var(--gold); outline-offset: 3px; }

.config { display: flex; flex-direction: column; gap: 26px; }
.config-head { display: flex; flex-direction: column; gap: 10px; }
.product-title { font-size: 40px; line-height: 1.15; }
.price-row { display: flex; align-items: baseline; gap: 18px; }
.price { font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.spec-line { font-size: 13px; color: var(--text-muted); }

.opt-group { display: flex; flex-direction: column; gap: 10px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; }
.opt-label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.opt-current { font-size: 12px; color: var(--text); }

.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
}
.swatch[aria-pressed="true"] { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Image option tiles */
.opt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.opt-tile {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 7px; color: var(--text);
  font-family: var(--font-body);
}
.opt-tile-media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.opt-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .35s ease; }
.opt-tile:hover .opt-tile-media img { transform: scale(1.045); filter: brightness(1.07); }
.opt-tile-media-text {
  display: flex; align-items: center; justify-content: center; height: 100%; padding: 10px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); text-align: center;
}
.opt-tile[aria-pressed="true"] .opt-tile-media { outline: 1px solid var(--gold); outline-offset: 4px; }
.opt-tile[aria-pressed="true"] .opt-tile-name { color: var(--gold); }
.opt-tile-name { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 700; line-height: 1.5; min-height: 3em; }
.opt-tile-delta { font-size: 12px; color: var(--gold); }

.optrow {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border: 1px solid rgba(198, 161, 91, 0.25); padding: 13px 18px;
  background: none; width: 100%; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
}
.optrow[aria-pressed="true"] { border-color: var(--gold); }
.optrow .delta { color: var(--gold); font-size: 13px; white-space: nowrap; }

.config-total {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid rgba(198, 161, 91, 0.4); padding: 20px 22px; background: var(--surface);
}
.config-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.config-total-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.config-total-price { font-family: var(--font-display); font-size: 28px; color: var(--gold); }
.config-total-notes { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.timeline--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.timeline-step { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(198, 161, 91, 0.3); padding-top: 18px; }
.timeline-step:first-child { border-top-color: var(--gold); }
.timeline-title { font-family: var(--font-display); font-size: 17px; }
.timeline-text { font-size: 13px; line-height: 1.7; color: var(--text-muted); }

/* Spec tables */
.spec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.spec-table { display: flex; flex-direction: column; }
.spec-row { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--hairline-faint); font-size: 14px; }

/* Footer */
.site-footer { background: var(--ink-bg-deep); padding: 56px var(--pad-x) 40px; display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 64px; font-size: 13px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-legal {
  border-top: 1px solid var(--hairline); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
}

/* Age gate */
.gate-open { overflow: hidden; }
.age-gate {
  position: fixed; inset: 0; z-index: 90; background: rgba(16, 12, 15, 0.96);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.age-gate[hidden] { display: none; }
.age-gate-panel {
  max-width: 460px; border: 1px solid var(--hairline); padding: 48px 44px;
  display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center;
  background: var(--ink-bg);
}
.age-gate-panel h2 { font-size: 30px; }
.age-gate-panel p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.age-gate-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; align-items: center; }
.age-gate-leave { font-size: 13px; color: var(--text-muted); }

/* Pagination */
.pagination-wrap { padding: 0 var(--pad-x) 88px; }

/* Checkout steps */
.steps { display: flex; gap: 0; margin-bottom: 10px; }
.step { display: flex; align-items: center; gap: 10px; padding: 0 22px 12px 0; border-bottom: 1px solid var(--hairline-faint); }
.step-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.step--current { border-bottom-color: var(--gold); }
.step--current .step-label, .step--done .step-label { color: var(--gold); }

/* Cart */
.cart-lines { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--hairline-faint); align-items: start; }
.cart-line-media img { width: 160px; height: 200px; object-fit: cover; }
.cart-line-body { display: flex; flex-direction: column; gap: 8px; }
.cart-line-options { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cart-line-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cart-summary { padding-top: 36px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.field-label .muted { text-transform: none; letter-spacing: normal; font-weight: 400; }
.field-input {
  background: var(--surface); border: 1px solid rgba(198, 161, 91, 0.25); color: var(--text);
  /* 16px floor: below it, iOS zooms the page on focus */
  font-family: var(--font-body); font-size: 16px; padding: 13px 16px; width: 100%;
}
.field-input:focus { outline: none; border-color: var(--gold); }
.field-error { font-size: 12px; color: #C97B6B; }
select.field-input { appearance: none; }

/* Payment methods */
.pay-method {
  display: flex; gap: 16px; align-items: flex-start; cursor: pointer;
  border: 1px solid rgba(198, 161, 91, 0.25); padding: 18px 20px;
}
.pay-method:has(input:checked) { border-color: var(--gold); background: var(--surface); }
.pay-method input { accent-color: #C6A15B; margin-top: 4px; }
.pay-method-body { display: flex; flex-direction: column; gap: 4px; }
.pay-method-label { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.pay-method-desc { font-size: 13px; line-height: 1.7; }

/* Header cart count */
.cart-count {
  font-size: 11px; color: var(--gold); font-weight: 700; margin-left: 6px;
}

.config-total form { display: flex; flex-direction: column; }

/* Static pages */
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 24px; margin-top: 26px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); font-size: 15px; line-height: 1.9; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--gold); }
.prose a { border-bottom: 1px solid var(--hairline-soft); }
.placeholder-fact { color: var(--gold); background: rgba(198, 161, 91, 0.12); padding: 0 6px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--hairline-faint); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-family: var(--font-display); font-size: 19px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-family: var(--font-body); font-size: 20px; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 24px; color: var(--text-muted); font-size: 15px; line-height: 1.9; max-width: 64ch; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 96px minmax(0, 1fr); }
  .cart-line-media img { width: 96px; height: 120px; }
  .cart-line-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: baseline; }
}

/* Mobile buy bar (product page) */
.mobile-buybar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink-bg-deep); border-top: 1px solid var(--hairline);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  align-items: center; justify-content: space-between; gap: 16px;
}
.mobile-buybar .price { font-size: 22px; }
.mobile-buybar .btn { padding: 14px 26px; white-space: nowrap; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 480px; }
  .hero-media img { object-position: 32% 22%; } /* keep the subject in frame on narrow crops */
  .hero-copy { padding: 48px 32px; }
  .hero-title { font-size: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .product-main { grid-template-columns: 1fr; }
  .craft { grid-template-columns: 1fr; }
  .craft-copy { padding-right: 0; }
  .assurance { grid-template-columns: 1fr; gap: 28px; }
  .timeline, .timeline--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-cols { grid-template-columns: 1fr; gap: 32px; }
  .mobile-buybar { display: flex; }
  body:has(.mobile-buybar) { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 10px; }
  .swatch { width: 44px; height: 44px; } /* thumb-sized touch targets */
  .site-header { padding: 10px var(--pad-x); flex-wrap: wrap; row-gap: 0; }
  .site-nav {
    order: 3; width: 100%; gap: 26px; font-size: 12px;
    padding: 10px 0 12px; border-top: 1px solid var(--hairline-faint); margin-top: 2px;
  }
  .wordmark { font-size: 17px; letter-spacing: 0.3em; }
  .section { padding: 56px var(--pad-x); }
  .hero-media { min-height: 300px; }
  .hero-copy { padding: 40px var(--pad-x); }
  .hero-title { font-size: 33px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-actions .btn { text-align: center; }
  .hero-actions .text-link { text-align: center; border-bottom: none; }
  .page-title { font-size: 31px; }
  .product-title { font-size: 29px; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline, .timeline--five { grid-template-columns: 1fr; }
  .footer-cols { gap: 32px; }
  .steps { flex-wrap: wrap; }
  .step { padding: 0 14px 10px 0; }
  .swatch { width: 42px; height: 42px; }
  .opt-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
  .opt-tile { flex: 0 0 122px; scroll-snap-align: start; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .btn--primary, .btn--outline { padding-top: 16px; padding-bottom: 16px; }
  .age-gate-panel { padding: 36px 24px; }
  .age-gate-actions { align-self: stretch; }
  .age-gate-actions .btn { width: 100%; }
  .config-total-notes { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
