/* ============================================================
   Caribbean Art Source — tokens
   Luxury Caribbean editorial. Aperture × Phillips × Caribbean light.
   ============================================================ */

:root {
  /* ---- Palette (strict) ---- */
  --teal:        #063F46;   /* primary ocean structure */
  --teal-deep:   #022B31;   /* deep ocean */
  --teal-soft:   #0A6E78;   /* blue-green teal */
  --sky:         #18A7A5;   /* lagoon highlight */
  --sky-pale:    #B9E5E1;   /* sea-glass dividers */

  --palm:        #2F6F64;   /* coastal botanical, tags */
  --palm-deep:   #1D514B;

  --mahogany:    #0A6E78;   /* structural rules */
  --mahogany-deep:#022B31;
  --sand:        #D7C6A3;   /* warm supporting neutral */
  --sand-soft:   #E7DBC3;

  --gold:        #D7C6A3;   /* quiet sand highlight */
  --gold-deep:   #B9A06F;

  --hibiscus:    #D95F45;   /* conversion CTA ONLY */
  --hibiscus-deep:#B84831;

  --cream:       #F4F7F1;   /* foam base bg */
  --cream-warm:  #EAF2EA;
  --paper:       #FCFDF8;   /* near-white paper */

  --ink:         #102529;   /* body text */
  --ink-soft:    #2C4245;
  --ink-mute:    #637579;

  /* ---- Type ---- */
  --serif:       "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --sans:        "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:        "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --eyebrow-tracking: 0.18em;
  --display-tracking: -0.015em;

  /* ---- Scale (desktop) ---- */
  --fs-h1: clamp(48px, 7.2vw, 104px);
  --fs-h2: clamp(36px, 4.4vw, 60px);
  --fs-h3: clamp(24px, 2.4vw, 34px);
  --fs-h4: 22px;
  --fs-body: 17px;
  --fs-small: 13px;
  --fs-eyebrow: 11px;

  /* ---- Layout ---- */
  --gutter: clamp(20px, 5vw, 96px);
  --rule: 1px solid var(--mahogany);
  --hairline: 1px solid rgba(6, 63, 70, 0.28);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============================================================
   Base
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-feature-settings: "ss01", "cv11";
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

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

/* Subtle paper grain on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(6,63,70,0.045) 1px, transparent 1px),
    radial-gradient(rgba(24,167,165,0.035) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

#app { position: relative; z-index: 2; }

/* ============================================================
   Type helpers
   ============================================================ */

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: var(--display-tracking);
  line-height: 0.98;
}

.display-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--display-tracking);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--mahogany);
}

.meta {
  font-family: var(--sans);
  font-size: var(--fs-small);
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  padding-inline: var(--gutter);
}

.section-rule {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--mahogany);
  margin-bottom: 56px;
}

.section-rule .right {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mahogany);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tricolor {
  display: inline-flex;
  height: 2px;
  width: 48px;
  overflow: hidden;
}
.tricolor i { display: block; flex: 1; }
.tricolor i:nth-child(1) { background: var(--teal); }
.tricolor i:nth-child(2) { background: var(--mahogany); }
.tricolor i:nth-child(3) { background: var(--gold); }

/* ============================================================
   Art placeholders (.art-ph)
   Striped, retoned to palette, with monospace label
   ============================================================ */

.art-ph {
  position: relative;
  background: var(--sand-soft);
  border: 1px solid var(--mahogany);
  overflow: hidden;
  color: var(--mahogany-deep);
}
.art-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(6,63,70,0.10) 0,
    rgba(6,63,70,0.10) 1px,
    transparent 1px,
    transparent 14px
  );
}
.art-ph .ph-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mahogany-deep);
  background: linear-gradient(to top, rgba(244,247,241,0.92), rgba(244,247,241,0));
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.art-ph.tone-teal     { background: #CFE9E6; }
.art-ph.tone-teal::before     { background-image: repeating-linear-gradient(135deg, rgba(6,63,70,0.14) 0, rgba(6,63,70,0.14) 1px, transparent 1px, transparent 14px); }
.art-ph.tone-cream    { background: var(--paper); }
.art-ph.tone-mahog    { background: #B9D6D2; }
.art-ph.tone-mahog::before    { background-image: repeating-linear-gradient(135deg, rgba(2,43,49,0.20) 0, rgba(2,43,49,0.20) 1px, transparent 1px, transparent 14px); }
.art-ph.tone-palm     { background: #BFD3CA; }
.art-ph.tone-palm::before     { background-image: repeating-linear-gradient(135deg, rgba(29,81,75,0.18) 0, rgba(29,81,75,0.18) 1px, transparent 1px, transparent 14px); }
.art-ph.tone-hibiscus { background: #EAB6A9; }
.art-ph.tone-hibiscus::before { background-image: repeating-linear-gradient(135deg, rgba(184,72,49,0.18) 0, rgba(184,72,49,0.18) 1px, transparent 1px, transparent 14px); }
.art-ph.tone-gold     { background: #E8DAB7; }
.art-ph.tone-gold::before     { background-image: repeating-linear-gradient(135deg, rgba(185,160,111,0.20) 0, rgba(185,160,111,0.20) 1px, transparent 1px, transparent 14px); }
.art-ph.tone-sky      { background: var(--sky-pale); }
.art-ph.tone-sky::before      { background-image: repeating-linear-gradient(135deg, rgba(10,110,120,0.16) 0, rgba(10,110,120,0.16) 1px, transparent 1px, transparent 14px); }

/* ============================================================
   Art card
   ============================================================ */

.art-card {
  display: block;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.art-card .frame {
  border: 1px solid var(--mahogany);
  background: var(--paper);
  padding: 10px;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.art-card:hover .frame {
  box-shadow: 0 24px 50px -28px rgba(2, 43, 49, 0.38);
  transform: translateY(-3px);
}
.art-card .art-ph {
  width: 100%;
  border: none;
}
/* Center every artwork / artist image within its frame (all artists) */
.art-card .frame,
.ap-hero .frame { text-align: center; }
.art-card .frame img,
.ap-hero .frame img,
.frame > img,
.frame > a > img { margin-left: auto; margin-right: auto; }
.art-card .caption {
  padding-top: 14px;
  display: grid;
  gap: 4px;
}
.art-card .caption .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
}
.art-card .caption .artist {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.art-card .caption .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  gap: 10px;
}
.art-card .caption .medium {
  font-size: 12px;
  color: var(--ink-mute);
}
.art-card .caption .price {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mahogany-deep);
  text-align: right;
  letter-spacing: 0.04em;
}
.art-card .caption .price .ttd {
  display: block;
  color: var(--ink-mute);
  font-size: 10px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  min-height: 44px;
}
.btn:hover { background: var(--ink); color: var(--cream); }

.btn-primary {
  background: var(--hibiscus);
  border-color: var(--hibiscus);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--hibiscus-deep);
  border-color: var(--hibiscus-deep);
  color: var(--cream);
}

.btn-ghost {
  border-color: var(--mahogany);
  color: var(--mahogany-deep);
}
.btn-ghost:hover {
  background: var(--mahogany);
  color: var(--cream);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--mahogany); border-color: var(--mahogany); }

/* ============================================================
   Madras-inspired divider (desaturated, simple cross-weave)
   ============================================================ */

.madras {
  height: 16px;
  width: 100%;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(6,63,70,0.34) 0 14px,
      rgba(217,95,69,0.18) 14px 17px,
      rgba(10,110,120,0.34) 17px 30px,
      rgba(215,198,163,0.34) 30px 33px,
      rgba(6,63,70,0.34) 33px 48px,
      rgba(24,167,165,0.28) 48px 51px),
    repeating-linear-gradient(0deg,
      rgba(2,43,49,0.18) 0 1px,
      transparent 1px 8px);
  opacity: 0.55;
}

/* ============================================================
   Chrome / nav
   ============================================================ */

.chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mahogany);
}
.chrome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.brand .word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand .sub {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mahogany);
}
.nav {
  display: flex;
  gap: 28px;
}
.nav button {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav button.active { color: var(--teal); }
.nav button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--teal);
}
.nav button:hover { color: var(--teal); }

.chrome-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.chrome-right .pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  border: 1px solid var(--mahogany);
  padding: 6px 10px;
  border-radius: 999px;
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 1px;
  background: var(--ink); position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: var(--ink);
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top: 6px; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 80px var(--gutter) 40px;
  margin-top: 120px;
}
.footer .colophon {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer .word {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.footer .col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .col a {
  font-size: 14px;
  color: rgba(246,240,228,0.75);
  transition: color 0.2s;
}
.footer .col a:hover { color: var(--gold); }
.footer .lower {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(246,240,228,0.18);
  padding-top: 24px;
  margin-top: 64px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(246,240,228,0.55);
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 860px) {
  .nav, .chrome-right .pill { display: none; }
  .hamburger { display: inline-flex; }
  .footer .colophon {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer { padding-top: 56px; margin-top: 80px; }
  .section-rule { margin-bottom: 36px; }
}

@media (max-width: 520px) {
  .footer .colophon { grid-template-columns: 1fr; }
}

/* Mobile menu sheet */
.menu-sheet {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}
.menu-sheet.open { transform: translateY(0); }
.menu-sheet .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.menu-sheet .close {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mahogany);
}
.menu-sheet nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.menu-sheet nav button {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  font-style: italic;
}
.menu-sheet nav button.active { color: var(--teal); }

/* ============================================================
   PDP-specific (sticky inquire on mobile)
   ============================================================ */

.sticky-inquire {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: var(--cream);
  border-top: 1px solid var(--mahogany);
  padding: 12px var(--gutter);
  gap: 12px;
}
.sticky-inquire .btn { flex: 1; justify-content: center; }
@media (max-width: 860px) {
  .sticky-inquire.show { display: flex; }
}

/* ============================================================
   Mobile tap targets (#4) + WooCommerce cart/checkout brand styling (#3)
   ============================================================ */
.hamburger { width: 44px; height: 44px; }
.cart-link:hover { color: var(--teal); }

/* WooCommerce blocks (cart / checkout / account) — align to brand */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .woocommerce-account, .woocommerce { font-family: var(--sans); color: var(--ink); }
.wp-block-woocommerce-cart h1, .wp-block-woocommerce-checkout h1,
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--serif) !important; color: var(--ink) !important; }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--hibiscus) !important; background-color: var(--hibiscus) !important;
  color: var(--cream) !important; border: 1px solid var(--hibiscus) !important; border-radius: 0 !important;
  font-family: var(--sans) !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; min-height: 48px;
}
.wc-block-components-button:not(.is-link):hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--hibiscus-deep) !important; border-color: var(--hibiscus-deep) !important; color: var(--cream) !important;
}
.wc-block-components-button.is-link, a.wc-block-cart__submit-container-link,
.wc-block-cart__submit-container a { color: var(--teal) !important; }
.wc-block-formatted-money-amount, .wc-block-components-totals-item__value,
.wc-block-components-order-summary__content .wc-block-formatted-money-amount { font-family: var(--serif); }
.wc-block-components-text-input input, .wc-block-components-select .wc-block-components-select__container,
.wc-block-components-address-form input { border-radius: 0 !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border: 1px solid var(--mahogany); }
.wc-block-components-checkout-step__title { font-family: var(--serif) !important; }
