/* Spice Signature: shared styles, taken from the Claude Design files. */

:root {
  --navy: #2E3B55;
  --red: #A3282A;
  --red-dark: #7B2A24;
  --muted: #545C6E;
  --cream: #F2EFE8;
  --bg: #EAE5DA;
  --bg-2: #E3DED4;
  --blue: #CBD2DB;
  --blue-2: #A5B8CD;
  --sand: #DCD3C2;
  --rule: #A9A39D;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --caps: 'Unbounded', 'Arial Black', sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--navy); font: 16px/1.55 var(--sans); }
img { max-width: 100%; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.app__main { flex: 1 0 auto; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ── Type ── */
.label { font: 600 10px/1.4 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; }
.caps { font-family: var(--caps); text-transform: uppercase; }
.eyebrow { margin: 0; font: 600 11px/1.4 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.display { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 0.82; letter-spacing: -0.045em; text-transform: uppercase; color: var(--red); }
.display--xl { font-size: clamp(72px, 8.4vw, 128px); }
.display--page { font-size: clamp(80px, 9vw, 136px); }
.title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.03em; color: var(--red); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.placeholder { color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--navy); border-radius: 0;
  background: var(--navy); color: var(--cream); text-decoration: none; cursor: pointer;
  font: 600 12px/1.3 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}
.btn--ghost { background: transparent; color: var(--navy); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 11px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-btn {
  min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--navy); cursor: pointer;
  font: 600 11px/1 var(--caps); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px;
}

/* ── Test-site banner (staging only) ── */
.test-banner { position: sticky; top: 0; z-index: 20; padding: 8px 24px; background: #F2C94C; color: #2E3B55; text-align: center; font: 700 11px/1.4 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; }
.test-banner + .site-header { top: 33px; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--navy); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.brand { min-height: 56px; padding: 4px 0; border: 0; background: transparent; color: var(--red); cursor: pointer; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand__word { font: 400 40px/1 var(--serif); font-style: italic; }
.brand__sig { position: relative; top: -3px; font: 700 11px/1 var(--caps); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy); text-decoration: none;
  font: 600 11px/1 var(--caps); letter-spacing: 0.08em; text-transform: uppercase;
}
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.cart-btn { position: relative; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.cart-btn__count {
  position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font: 700 11px/1 var(--sans);
}

/* ── Tiles (decorative squares) ── */
.tile { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.tile svg { width: 58%; height: 58%; }

/* ── Home ── */
.hero { position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--navy); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px; padding-top: 40px; padding-bottom: 56px; }
.hero__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero__tag { margin: 0; max-width: 24ch; font: 600 clamp(15px, 1.5vw, 20px)/1.35 var(--caps); text-transform: uppercase; }
.hero__art { position: relative; min-height: 520px; }
.hero__panel { position: absolute; inset: 0; background: var(--blue); overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 4%; }
.hero__panel::before { content: ''; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 0 36%, rgba(46, 59, 85, 0.1) 36% 60%, transparent 60%); }
.hero__bag { position: relative; width: 34%; display: block; }
.hero__tile { position: absolute; width: 76px; }
.hero__tile--a { top: 28px; right: 28px; }
.hero__tile--b { bottom: 36px; right: 120px; }
.hero__tile--c { top: 44%; left: -24px; width: 64px; }
.hero__tile .tile { box-shadow: 0 10px 18px -12px rgba(46, 59, 85, 0.6); }

.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--navy); }
.intro__words { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; align-self: stretch; padding: 8px 0; }
.intro__words h2 { margin: 0; font: 600 clamp(17px, 1.7vw, 22px)/1.35 var(--caps); text-transform: uppercase; }
.intro__words p { margin: 0; font: 400 clamp(15px, 1.4vw, 18px)/1.45 var(--caps); text-transform: uppercase; }
.stair { display: flex; align-items: flex-end; gap: 16px; }
.stair .tile { width: 80px; flex: none; }
.stair__n { font: 30px/1 var(--serif); color: var(--red); }
.stair__t { font: 500 11px/1.45 var(--caps); letter-spacing: 0.04em; text-transform: uppercase; max-width: 22ch; }

.section-title { margin: 0; font: 600 clamp(16px, 1.6vw, 20px)/1.35 var(--caps); text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 40px; }
.product-card { color: var(--navy); text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.product-card__img { position: relative; width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card__img > svg { width: 50%; height: auto; }
.product-card__img > img { width: 100%; height: 100%; object-fit: cover; }
.product-card__tone { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font: 700 clamp(18px, 2vw, 26px)/1 var(--caps); text-transform: uppercase; }
.product-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-card__name { font: 28px/1.1 var(--serif); }
.product-card__price { font: 600 13px/1 var(--caps); }
.stamp { position: absolute; top: 20px; left: 20px; padding: 8px 12px; border: 1px solid var(--red); color: var(--red); background: var(--cream); font: 600 10px/1 var(--caps); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Product page ── */
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 56px; align-items: start; }
.gallery__main { position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__main > svg { width: 52%; height: auto; }
.gallery__main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count { position: absolute; right: 16px; bottom: 16px; padding: 7px 10px; background: var(--cream); border: 1px solid var(--navy); font: 600 10px/1 var(--caps); letter-spacing: 0.06em; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--navy); border-radius: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--navy); font: 600 9px/1.3 var(--caps); letter-spacing: 0.06em; text-transform: uppercase; }
.thumb[aria-pressed="true"] { border: 2px solid var(--red); }
.thumb > svg { width: 54%; height: auto; }
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.swatches { display: flex; gap: 14px; }
.swatch { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--navy); cursor: pointer; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px transparent; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--red); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--navy); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); font: 500 20px/1 var(--sans); cursor: pointer; }
.stepper--small button { width: 40px; height: 40px; }
.stepper span { min-width: 32px; text-align: center; font: 600 14px/1 var(--caps); }
.specs { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); font-size: 15px; }
.specs dt { padding: 14px 0; border-bottom: 1px solid var(--rule); font: 600 10px/1.9 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; }
.specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.notice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 16px; border: 1px solid var(--navy); background: var(--blue); }
.alert { margin: 0; padding: 12px 16px; border: 1px solid var(--red); color: var(--red-dark); font-weight: 600; font-size: 15px; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--navy); border-radius: 0;
  background: transparent; color: var(--navy); font: 17px/1.4 var(--sans);
}
.field textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 22px 24px; }
.field-grid--tight { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 18px 24px; }

/* ── Checkout ── */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--rule); color: var(--muted); font: 600 10px/1 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; }
.steps li span:first-child { font: 20px/1 var(--serif); letter-spacing: 0; }
.steps li.is-done { border-color: var(--navy); background: var(--blue); color: var(--navy); }
.steps li.is-now { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.checkout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: start; }
.box { border: 1px solid var(--navy); background: var(--cream); padding: 28px; }
.cart-line { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid rgba(46, 59, 85, 0.25); }
.mini { width: 76px; height: 76px; flex: none; border: 1px solid var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mini > svg { width: 60%; height: auto; }
.mini > img { width: 100%; height: 100%; object-fit: cover; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--navy); }
.pay-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--navy); background: var(--cream); }
.qr { padding: 12px; background: #FFFFFF; border: 1px solid var(--navy); width: 204px; }
.qr img, .qr svg { width: 180px; height: 180px; display: block; }
.pay-details { margin: 0; flex: 1 1 220px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; font-size: 15px; align-items: baseline; }
.pay-details dt { font: 600 10px/1.6 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; }
.pay-details dd { margin: 0; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 24px; border: 1px dashed var(--navy); background: var(--cream); cursor: pointer; text-align: center; }
.drop.has-file { background: #DDE3EA; }
.drop:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.drop__title { font: 600 12px/1.4 var(--caps); letter-spacing: 0.06em; text-transform: uppercase; word-break: break-all; }
.slip-preview { width: 160px; max-height: 280px; object-fit: contain; border: 1px solid var(--navy); background: #FFFFFF; }
fieldset.box { margin: 0; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
fieldset.box legend { padding: 0 8px; font: 600 11px/1.4 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Done ── */
.order-no { margin: 0; padding: 16px 28px; border: 1px solid var(--navy); background: var(--cream); font: 600 26px/1 var(--caps); letter-spacing: 0.04em; }
.conditions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.conditions li { display: flex; gap: 18px; align-items: flex-start; }
.conditions__n { flex: none; width: 32px; font: 36px/0.9 var(--serif); color: var(--red); }

/* ── My order ── */
.pill { display: inline-block; padding: 8px 12px; border: 1px solid; font: 600 10px/1 var(--caps); letter-spacing: 0.08em; text-transform: uppercase; }
.pill--checking { border-color: var(--red); color: var(--red); background: transparent; }
.pill--preparing { border-color: var(--navy); color: var(--navy); background: var(--blue); }
.pill--shipped { border-color: var(--navy); color: var(--cream); background: var(--navy); }
.pill--cancelled { border-color: var(--red-dark); color: var(--cream); background: var(--red-dark); }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.progress li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 3px solid #CFC7B8; color: var(--muted); }
.progress li.is-done { border-top-color: var(--navy); color: var(--navy); }
.progress li.is-now { border-top-color: var(--red); color: var(--navy); }
.tracking { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--blue); border: 1px solid var(--navy); }

/* ── About ── */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.values li { display: flex; flex-direction: column; gap: 16px; }
.values__n { font: 64px/0.8 var(--serif); color: var(--red); }
.h3 { margin: 0; font: 600 15px/1.35 var(--caps); text-transform: uppercase; }
.photo-ph { min-height: 300px; border: 1px solid var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; font: 600 11px/1.5 var(--caps); letter-spacing: 0.06em; text-transform: uppercase; }
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 40px; }
.three-col > div { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--navy); }

/* ── Footer ── */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--navy); background: var(--bg); }
.tile-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); grid-auto-rows: 110px; opacity: 0.32; }
.tile-wall .tile { aspect-ratio: auto; }
.site-footer__inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.contact-box { width: min(380px, 100%); padding: 28px; border: 1px solid var(--navy); background: rgba(242, 239, 232, 0.94); display: flex; flex-direction: column; gap: 18px; }
.contact-box dl { margin: 0; display: flex; flex-direction: column; }
.contact-box dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--navy); }
.contact-box dd { margin: 0; font-size: 15px; }
.footer-note { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 12px 16px; background: rgba(234, 229, 218, 0.9); }

.prose { max-width: 70ch; }
.prose h2 { font: 600 14px/1.4 var(--caps); text-transform: uppercase; letter-spacing: 0.04em; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }

.loading { padding: 120px 24px; text-align: center; }
@media (max-width: 520px) {
  .nav-row { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .nav a { padding: 0 8px; font-size: 10px; }
  .hero__art { min-height: 380px; }
  .hero__tile--c { display: none; }
}
