/* Order Soap — v1 rebuild of the Shopify theme. Visual rework comes next. */
:root {
  --ink: #2b2828;
  --ink-soft: #5a5555;
  --paper: #fdfcf7;
  --paper-2: #f2f0e8;
  --product-bg: #e5e3da;
  --gold: #fdb71a;
  --oxblood: #661414;
  --oxblood-dark: #4d0f0f;
  --line: #dcd8cc;
  --font: "Cardo", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; font-weight: 400; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(40px, 7vw, 80px); }
.lede { font-size: 1.25rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--ink-soft); margin-bottom: .25em; }
.eyebrow a { text-decoration: none; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-size: 1.4rem; letter-spacing: .06em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav { display: flex; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 1rem; letter-spacing: .05em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }
@media (max-width: 640px) {
  .header-inner { padding-top: 10px; padding-bottom: 6px; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; }
  .nav a { font-size: .95rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--oxblood); color: #fff; text-decoration: none;
  padding: 14px 32px; border-radius: var(--radius); font-size: 1.05rem; letter-spacing: .06em;
  border: 0; cursor: pointer; text-align: center; margin: 0;
}
.btn:hover { background: var(--oxblood-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e9a50f; }
.btn-disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn-disabled:hover { background: var(--line); }
.link-arrow { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(80vh, 760px); display: grid; overflow: hidden; background: var(--ink); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,18,.15) 0%, rgba(20,18,18,.65) 100%); }
.hero-text { position: relative; z-index: 1; align-self: end; color: #fff; padding: var(--gutter); padding-bottom: clamp(40px, 8vw, 96px); max-width: 820px; margin: 0 auto; text-align: center; }
.hero-text p { font-size: 1.3rem; }

/* ---------- bands ---------- */
.band { padding: clamp(48px, 8vw, 96px) 0; }
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark h2 { color: var(--gold); }
.band-dark .lede { color: #d9d4c8; }
.band .narrow { margin: 0 auto; }
.big-quote { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-style: italic; margin: 0; color: var(--gold); }
.big-quote cite, blockquote cite { display: block; font-size: 1rem; font-style: normal; margin-top: .75em; color: inherit; opacity: .8; }

/* ---------- story rows ---------- */
.story { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(20px, 4vw, 40px); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: clamp(48px, 8vw, 96px); }
.story-row.flip .story-media { order: 2; }
.story-media img { width: 100%; border-radius: var(--radius); }
.story-media-contain img { max-width: 360px; margin: 0 auto; }
@media (max-width: 800px) {
  .story-row { grid-template-columns: 1fr; }
  .story-row.flip .story-media { order: 0; }
}

/* ---------- product grid ---------- */
.page-head { padding-top: clamp(32px, 6vw, 64px); }
.notice { background: var(--paper-2); border-left: 3px solid var(--gold); padding: 14px 18px; max-width: 760px; }
.section > h2 + .lede { margin-bottom: 1.5em; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); margin: 24px 0 40px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 1; background: var(--product-bg); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .5s ease; }
.card-alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.02); }
.card-title { font-size: 1.15rem; margin: 12px 0 2px; }
.card-price { color: var(--ink-soft); margin: 0; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--paper); font-size: .8rem; padding: 3px 10px; border-radius: 99px; z-index: 1; }
.is-sold-out .card-media img { opacity: .7; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 32px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles, .tiles-3 { grid-template-columns: 1fr; } }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.tile p { font-size: 1.02rem; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(48px, 8vw, 96px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product-gallery { position: sticky; top: 88px; }
@media (max-width: 860px) { .product-gallery { position: static; } }
.product-main { background: var(--product-bg); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.product-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; background: var(--product-bg); border-radius: var(--radius); width: 72px; height: 72px; overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.price { font-size: 1.6rem; margin-bottom: 20px; }
.field { display: block; margin-bottom: 20px; }
.field span { display: block; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: 6px; }
.field select { font: inherit; font-size: 1.05rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 220px; max-width: 100%; }
.product-info .btn { width: 100%; max-width: 420px; }
.order-note { font-size: .95rem; color: var(--ink-soft); margin-top: 12px; max-width: 420px; }
.prose { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .checks { list-style: none; padding-left: 0; }
.prose .checks li::before { content: "\2713"; color: var(--oxblood); font-weight: 700; margin-right: .5em; }
blockquote { margin: 0 0 1.2em; font-style: italic; font-size: 1.15rem; border-left: 3px solid var(--gold); padding-left: 16px; }
.mottos { padding-left: 1.4em; font-size: 1.15rem; }
.mottos li { margin-bottom: .3em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9d4c8; padding: 56px 0 40px; text-align: center; }
.footer-quote { font-size: 1.3rem; font-style: italic; color: var(--gold); }
.footer-quote span { display: block; font-size: .95rem; font-style: normal; color: #d9d4c8; margin-top: 4px; }
.footer-nav, .footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0; }
.footer-nav a, .footer-social a { text-decoration: none; }
.footer-nav a:hover, .footer-social a:hover { color: var(--gold); }
.footer-copy { font-size: .9rem; opacity: .7; margin: 0; }

.contact-social a { text-decoration: none; border-bottom: 1px solid var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
