/* ==========================================================================
   MUSA LABS — Design Tokens
   Palette: quiet stone, deep ink, warm clay — echoing the product labels.
   Type: Cormorant Garamond (display, letterspaced) + Jost (label/utility)
   ========================================================================== */

:root {
  /* Color */
  --stone-50:  #F3EFE7;   /* page background */
  --stone-100: #EAE4D8;   /* card / panel background */
  --stone-300: #D9D1C0;   /* hairlines, borders */
  --stone-600: #8C8373;   /* muted secondary text */
  --ink:       #211F1C;   /* primary text */
  --ink-soft:  #3A3733;
  --charcoal:  #171614;   /* dark panels (Unwind) */
  --deep-sea:  #263840;   /* dark teal panels (Restore) */
  --clay:      #A9876A;   /* accent — used sparingly */
  --clay-soft: #C9B8A0;   /* Soothe panel */
  --cream-text:#EFE9DD;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', serif;
  --font-label: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --rule: 1px solid var(--stone-300);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.rule {
  border: none;
  border-top: var(--rule);
  margin: 20px 0;
  width: 40px;
}

.rule--full {
  width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.wordmark {
  font-family: var(--font-label);
  font-size: 15px;
  letter-spacing: 0.32em;
  font-weight: 500;
}
.wordmark span { display: block; font-size: 15px; }

.main-nav {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-soft);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--stone-50);
  font-size: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--stone-50); }

.btn--solid {
  background: var(--ink);
  color: var(--stone-50);
}
.btn--solid:hover {
  background: var(--ink-soft);
}

.btn--ghost-light {
  border-color: rgba(239,233,221,0.6);
  color: var(--cream-text);
}
.btn--ghost-light:hover {
  background: var(--cream-text);
  color: var(--charcoal);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn[disabled]:hover { background: transparent; color: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 18px; }

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  max-width: 11ch;
}

.hero-copy p.lede {
  margin-top: 24px;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ripple-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ripple-stage svg { width: 100%; height: 100%; }

.ripple-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.6;
  opacity: 0;
  transform-origin: center;
  animation: ripple-out 4.5s cubic-bezier(.2,.6,.3,1) infinite;
}
.ripple-ring:nth-child(2) { animation-delay: 1.1s; }
.ripple-ring:nth-child(3) { animation-delay: 2.2s; }
.ripple-ring:nth-child(4) { animation-delay: 3.3s; }

@keyframes ripple-out {
  0%   { r: 4;  opacity: 0.55; stroke-width: 1.4; }
  70%  { opacity: 0.12; }
  100% { r: 140; opacity: 0; stroke-width: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .ripple-ring { animation: none; opacity: 0.25; }
}

section { padding: clamp(48px, 8vw, 96px) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 48px);
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

.philosophy {
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.philosophy .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 48px);
}

.philosophy-item .eyebrow { margin-bottom: 14px; }
.philosophy-item p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  padding: 26px 24px;
  overflow: hidden;
  isolation: isolate;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 30% 20%, currentColor 0, transparent 45%),
    radial-gradient(circle at 75% 65%, currentColor 0, transparent 40%);
  z-index: -1;
}

.product-card .eyebrow { position: relative; }
.product-card .eyebrow::after {
  content: "";
  display: block;
  width: 22px;
  border-top: 1px solid currentColor;
  opacity: 0.5;
  margin-top: 14px;
}

.product-card h3 {
  margin-top: auto;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.05;
}

.product-card .kind {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.75;
}

.product-card .benefits {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.product-card .meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  opacity: 0.9;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.product-card .price {
  font-family: var(--font-display);
  font-size: 20px;
}

.product-card-link {
  display: block;
  color: inherit;
  height: 100%;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.product-card-link:hover { transform: translateY(-4px); }

.product-card[data-tone="charcoal"] { background: var(--charcoal); color: var(--cream-text); }
.product-card[data-tone="stone"]    { background: var(--stone-100); color: var(--ink); }
.product-card[data-tone="pale"]     { background: #DAD3C5; color: var(--ink); }
.product-card[data-tone="sea"]      { background: var(--deep-sea); color: var(--cream-text); }
.product-card[data-tone="clay"]     { background: var(--clay-soft); color: var(--ink); }

.site-footer {
  border-top: var(--rule);
  padding: 48px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.made-in {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.product-detail .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-top: clamp(32px, 6vw, 56px);
}

.product-visual {
  position: sticky;
  top: 110px;
  aspect-ratio: 4 / 5;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-visual .eyebrow::after {
  content: "";
  display: block;
  width: 24px;
  border-top: 1px solid currentColor;
  opacity: 0.5;
  margin: 14px 0 20px;
}

.product-visual h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.product-visual .kind {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.product-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}
.product-info .price-row .price {
  font-family: var(--font-display);
  font-size: 30px;
}
.product-info .size {
  color: var(--stone-600);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.product-info .desc {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.spec-list {
  margin-top: 28px;
  border-top: var(--rule);
}
.spec-list dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px 20px;
  padding: 20px 0;
  border-bottom: var(--rule);
  margin: 0;
}
.spec-list dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-600);
}
.spec-list dd { margin: 0; font-size: 14px; }

.qty-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stone-300);
}
.qty-control button {
  width: 40px;
  height: 44px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.qty-control input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--stone-300);
  border-right: 1px solid var(--stone-300);
  font-family: var(--font-label);
  font-size: 14px;
  background: transparent;
}

.stock-note {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone-600);
}

.cart-page .wrap { padding-top: 16px; }

.cart-list { border-top: var(--rule); }

.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: var(--rule);
}

.cart-swatch {
  width: 88px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.cart-swatch .eyebrow { font-size: 9px; letter-spacing: 0.2em; }

.cart-row h3 { font-size: 20px; }
.cart-row .kind { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-600); margin-top: 4px; }

.cart-row .row-price { font-family: var(--font-display); font-size: 18px; text-align: right; min-width: 70px; }

.remove-btn {
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-600);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.remove-btn:hover { color: var(--ink); }

.cart-summary {
  margin-top: 32px;
  margin-left: auto;
  max-width: 360px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: var(--rule);
  margin-top: 8px;
  padding-top: 18px;
  font-family: var(--font-display);
  font-size: 20px;
}

.empty-state {
  text-align: center;
  padding: 80px 0;
}
.empty-state p { color: var(--stone-600); margin-top: 12px; }
.empty-state .btn { margin-top: 24px; }

.notice-banner {
  background: var(--stone-100);
  border: var(--rule);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 24px;
}

.about-hero { padding-bottom: 0; }
.about-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  max-width: 16ch;
}
.about-body {
  max-width: 62ch;
}
.about-body p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.value-card .eyebrow { margin-bottom: 12px; }
.value-card h3 { font-size: 22px; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: 15px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--stone-50);
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .ripple-stage { max-width: 320px; margin: 0 auto; }
  .philosophy .wrap { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .product-detail .wrap { grid-template-columns: 1fr; }
  .product-visual { position: static; aspect-ratio: 16/10; }
  .cart-row { grid-template-columns: 60px 1fr; }
  .cart-row .row-price, .cart-row .remove-btn-cell { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .site-header .wrap { height: 72px; }
  .cart-summary { max-width: none; }
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.faq-list {
  border-top: var(--rule);
  max-width: 74ch;
}

.faq-item {
  border-bottom: var(--rule);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .plus {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--stone-600);
  transition: transform 0.25s ease;
}

.faq-item[open] .plus { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding: 0 0 24px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 15px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 8px;
}

.contact-form .field { margin-bottom: 22px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--stone-300);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-label);
  font-size: 15px;
  color: var(--ink);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.contact-details .eyebrow { margin-bottom: 14px; }
.contact-details p { color: var(--ink-soft); margin-bottom: 10px; }
.contact-details a { text-decoration: underline; text-underline-offset: 3px; }

.policy-body {
  max-width: 68ch;
}
.policy-body h2 {
  font-size: 22px;
  margin: 40px 0 14px;
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.policy-body ul { padding-left: 20px; }
.policy-updated {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone-600);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: block;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
