/* ============================================================
   PATINA TIMES — styles
   Aesthetic: white ground, hairline rules, small tracked labels,
   serif wordmark, product photography does the talking.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f2ef;       /* photo ground, like the reference's light grey */
  --ink: #111111;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --hair: rgba(0, 0, 0, 0.12);
  --hair-soft: rgba(0, 0, 0, 0.06);
  --accent: #7a4a2a;         /* saddle leather, used only for the swatch */

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.7, 0.16, 1);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
#bag { scroll-margin-top: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin-bottom: 22px;
  max-width: 18ch;
}
.body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 52ch;
}
.body + .body { margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2a2a2a; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 40px; padding: 0 22px; }

/* ============================================================
   NAV — full-width white bar at the top; on scroll it animates
   down into a floating, blurred pill (borrowed from 2ndorder.ai)
   ============================================================ */
.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid var(--hair-soft);
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    width 0.55s var(--ease),
    top 0.55s var(--ease),
    height 0.55s var(--ease),
    padding 0.55s var(--ease),
    border-radius 0.55s var(--ease),
    background 0.4s,
    box-shadow 0.5s,
    border-color 0.4s;
}
.nav.scrolled {
  width: min(var(--container), 100% - 28px);
  top: 14px;
  height: 56px;
  padding: 0 14px 0 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hair-soft);
  border-radius: 999px;
  box-shadow: 0 16px 50px rgba(20, 20, 20, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: font-size 0.55s var(--ease);
}
.nav.scrolled .nav__brand { font-size: 18px; }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav__link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.nav__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  transition: background 0.25s;
}
.nav__icon:hover { background: rgba(0,0,0,0.05); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile overlay menu */
.overlay {
  position: fixed; inset: 0; z-index: 46; /* above the buy bar (45), below the nav (50) */
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s, transform 0.5s var(--ease), visibility 0s 0.4s;
}
.overlay.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s, transform 0.5s var(--ease); }
.overlay__link {
  font-family: var(--serif); font-size: 34px; padding: 10px 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.overlay.is-open .overlay__link { opacity: 1; transform: none; }
.overlay.is-open .overlay__link:nth-child(1) { transition-delay: 0.08s; }
.overlay.is-open .overlay__link:nth-child(2) { transition-delay: 0.14s; }
.overlay.is-open .overlay__link:nth-child(3) { transition-delay: 0.20s; }
.overlay.is-open .overlay__link:nth-child(4) { transition-delay: 0.26s; }
.overlay.is-open .overlay__link:nth-child(5) { transition-delay: 0.32s; }
.overlay__link--cta { margin-top: 16px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding: 4px 0; }

/* ============================================================
   HERO — two full-height panels, edge to edge
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  background: var(--bg-soft);
}
.hero__panel {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero__panel + .hero__panel { border-left: 1px solid rgba(255,255,255,0.6); }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; }

/* placeholder rendered when an asset is missing */
.placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, #f1efeb 0%, #e9e6e0 100%);
  color: var(--ink-3);
}
.placeholder__label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; line-height: 1.8;
  border: 1px dashed rgba(0,0,0,0.18);
  padding: 14px 20px;
  max-width: 320px;
}

/* ============================================================
   INTRO — title, price, one paragraph, two actions
   ============================================================ */
.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(56px, 7vw, 96px);
  text-align: center;
}
.intro__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.intro__price { margin-top: 14px; font-size: 14px; letter-spacing: 0.06em; color: var(--ink-2); }
.intro__desc { margin: 24px auto 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); max-width: 48ch; }
.intro__actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }

/* ============================================================
   LEATHER — full-bleed looping video, copy beneath
   ============================================================ */
.leather { padding-bottom: clamp(64px, 9vw, 120px); }
.leather__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  width: 100%;
  overflow: hidden;
  background: #1a1917;
}
.leather__video { width: 100%; height: 100%; object-fit: cover; }
.leather__media .placeholder { background: linear-gradient(135deg, #2b2926 0%, #1a1917 100%); color: rgba(255,255,255,0.55); }
.leather__media .placeholder__label { border-color: rgba(255,255,255,0.2); }
.leather__toggle {
  position: absolute; right: 22px; bottom: 22px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 0.25s;
}
.leather__toggle:hover { background: rgba(255,255,255,0.14); }
.leather__toggle[hidden] { display: none; }

.leather__copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 96px);
}
.leather__copy .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.leather__copy .h2 { margin-bottom: 0; }
.leather__copy .specs--inline { grid-column: 2; }

/* ---------- spec lists ---------- */
.specs--inline { margin-top: 28px; border-top: 1px solid var(--hair); }
.specs--inline li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.specs--inline li span:first-child { color: var(--ink-3); letter-spacing: 0.04em; }

.specs--grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
  border-top: 1px solid var(--hair);
  margin-top: 8px;
}
.specs--grid > div { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.specs--grid dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.specs--grid dd { font-size: 14px; }

/* ============================================================
   DETAILS — two stacked photos left, sticky copy right
   ============================================================ */
.details {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.details__media { display: grid; gap: 16px; }
.details__figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-soft); }
.details__figure img { width: 100%; height: 100%; object-fit: cover; }
.details__copy { position: sticky; top: calc(var(--nav-h) + 24px); }

.diagram { color: var(--ink); margin: 8px 0 28px; }
.diagram svg { width: 100%; max-width: 440px; height: auto; }
.diagram__labels { font-family: var(--sans); letter-spacing: 0.04em; }

/* accordion */
.accordion { margin-top: 36px; border-top: 1px solid var(--hair); }
.accordion details { border-bottom: 1px solid var(--hair); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 13px; letter-spacing: 0.02em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
  margin-right: 4px;
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion details > *:not(summary) { padding-bottom: 20px; }
.list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.list li::before { content: "·"; position: absolute; left: 2px; }

/* ============================================================
   STORY — photo left, copy right
   ============================================================ */
.story {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.story__figure { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.story__figure img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   BUY — centered purchase block with PayPal Smart Buttons
   ============================================================ */
.buy {
  border-top: 1px solid var(--hair);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--bg-soft);
}
.buy__inner { max-width: 480px; margin: 0 auto; text-align: center; }
.buy__inner .h2 { margin: 0 auto 8px; }
.buy__price { font-size: 15px; letter-spacing: 0.06em; }
.buy__meta { margin-top: 8px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent); vertical-align: -1px; margin: 0 4px 0 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.qty { margin: 32px 0 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 12px 0; }
.qty label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.qty__control { display: inline-flex; align-items: center; border: 1px solid var(--hair); background: #fff; }
.qty__btn { width: 36px; height: 36px; font-size: 16px; }
.qty__btn:hover { background: rgba(0,0,0,0.04); }
.qty input {
  width: 44px; height: 36px; text-align: center; border: 0; font: inherit; font-size: 14px;
  border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.paypal { min-height: 100px; }
.paypal--error { padding: 20px; border: 1px dashed var(--hair); font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.buy__status { margin-top: 12px; font-size: 13px; min-height: 1.2em; }
.buy__status.is-ok { color: #2f6b3a; }
.buy__status.is-err { color: #9b2c2c; }
.buy__note { margin-top: 14px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ============================================================
   STICKY BUY BAR — slides up after the hero, hides on the buy section
   ============================================================ */
.buybar {
  position: fixed; z-index: 45;
  left: 50%; bottom: 16px;
  transform: translate(-50%, calc(100% + 24px));
  width: min(var(--container), 100% - 28px);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 22px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--hair-soft);
  box-shadow: 0 16px 50px rgba(20,20,20,0.12);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.55s var(--ease);
}
.buybar.is-visible { transform: translate(-50%, 0); }
.buybar__color { color: var(--ink-3); }
.buybar__price { letter-spacing: 0.04em; text-transform: none; font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.footer__brand { font-family: var(--serif); font-size: 16px; letter-spacing: 0.14em; color: var(--ink); }
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { text-align: right; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
  .leather__copy, .details, .story { grid-template-columns: 1fr; }
  .leather__copy .specs--inline { grid-column: auto; }
  .details__copy { position: static; }
  .specs--grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .hero { grid-template-columns: 1fr; }
  .hero__panel { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .hero__panel + .hero__panel { border-left: 0; border-top: 1px solid rgba(255,255,255,0.6); }
  .intro__actions { flex-direction: column; }
  .btn { width: 100%; }
  .buybar { grid-template-columns: 1fr auto; gap: 12px; bottom: 10px; }
  .buybar__color, .buybar__price { display: none; }
  .buybar .btn { width: auto; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer__copy { text-align: center; }
  .nav.scrolled { height: 52px; padding: 0 8px 0 18px; }
  .nav__brand { font-size: 18px; }
  .nav.scrolled .nav__brand { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .buybar, .overlay, .overlay__link, .nav__link::after { transition: none; }
}
