/* ============================================================
   merch.mikee.ai — storefront styles
   Vintage-editorial. Warm off-white + ink black + cranberry.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --paper:   #f5eedd;
  --paper-2: #ebe3cf;
  --ink:     #0a0a0a;
  --ink-2:   #2b2a28;
  --ink-mute:#6a645a;
  --cranberry: #8b1e3f;
  --cranberry-deep: #6a1530;
  --midnight: #0e2a47;
  --rule: rgba(10,10,10,0.14);
  --rule-2: rgba(10,10,10,0.32);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 48px);
  --max:    1440px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- paper grain overlay ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- typography primitives ---------- */
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.caps  {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}
.num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-mute);
}
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--ink); margin: 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(48px, 9vw, 148px); line-height: 0.92; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.08; }
p  { margin: 0 0 1em; }
p.lede { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; font-weight: 300; }

::selection { background: var(--cranberry); color: var(--paper); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 100%; padding-inline: var(--gutter); }
.flex   { display: flex; }
.between { display: flex; justify-content: space-between; align-items: center; }
.baseline { align-items: baseline; }
.col-gap-md { gap: 24px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: saturate(140%);
}
.site-nav .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 14px;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1;
  justify-self: start;
}
.brand em { font-style: italic; color: var(--cranberry); font-weight: 400; }
.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-block: 6px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-end { justify-self: end; display: flex; gap: 16px; align-items: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-end .dot { width: 6px; height: 6px; background: var(--cranberry); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(48px, 9vw, 120px) clamp(64px, 10vw, 140px);
  position: relative;
  border-bottom: 1px solid var(--ink);
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}
.hero-meta .left { display: flex; gap: 16px; align-items: baseline; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
}
.hero-title .swash {
  font-style: italic;
  color: var(--cranberry);
  font-weight: 400;
}
.hero-lede {
  margin-top: 36px;
  max-width: 740px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 72px;
  align-items: start;
}
.hero-row .small { max-width: 460px; }
.hero-row .small p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.hero-cta { display: inline-flex; gap: 10px; align-items: center; margin-top: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--cranberry); border-color: var(--cranberry); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.block { display: flex; width: 100%; justify-content: center; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 24px;
  padding-block: 44px 28px;
  border-top: 1px solid var(--ink);
}
.section-head .idx { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-mute); letter-spacing: 0; }
.section-head h2 { max-width: 820px; }
.section-head .aside { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); text-align: right; max-width: 240px; line-height: 1.4; }

/* ---------- product grid ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pcard {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background .3s;
  min-height: 480px;
}
.pcard:hover { background: rgba(139,30,63,0.04); }
.pcard .media {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
}
.pcard .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.pcard:hover .media img { transform: scale(1.04); }
.pcard .tagrow {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 12px;
}
.pcard .tagrow .cat { color: var(--cranberry); font-weight: 600; }
.pcard h3 { margin-bottom: 14px; }
.pcard .foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 13px;
}
.pcard .price { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.pcard .price .from { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-right: 6px; }
.pcard .view { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; position: relative; }
.pcard .view::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s;
}
.pcard:hover .view::after { transform: scaleX(1); transform-origin: left; }

/* skeleton */
.pcard.skeleton .media,
.pcard.skeleton h3,
.pcard.skeleton .tagrow span,
.pcard.skeleton .price,
.pcard.skeleton .view {
  background: linear-gradient(90deg, var(--paper-2) 0%, #ddd4be 50%, var(--paper-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  color: transparent;
  border-radius: 0;
}
.pcard.skeleton h3 { height: 32px; }
.pcard.skeleton .price { width: 60px; height: 20px; }
.pcard.skeleton .view { width: 40px; height: 11px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- concepts section ---------- */
.concepts {
  border-top: 1px solid var(--ink);
  padding-top: 48px;
}
.concept-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 48px;
  padding-block: 48px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.concept-row:hover { background: rgba(139,30,63,0.03); }
.concept-row .num-big {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.concept-row .num-big em { color: var(--cranberry); font-style: italic; }
.concept-row .title-col h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 14px;
}
.concept-row .meta-line {
  display: flex; gap: 16px; align-items: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.concept-row .meta-line .era { color: var(--cranberry); font-weight: 600; }
.concept-row .meta-line .dotsep { width: 3px; height: 3px; background: var(--ink-mute); border-radius: 50%; }
.concept-row .body-col p { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 440px; }
.concept-row .body-col .shop-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  margin-top: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.concept-row .body-col .shop-link:hover { color: var(--cranberry); border-bottom-color: var(--cranberry); }

/* ---------- filters (shop) ---------- */
.filters {
  position: sticky; top: 54px; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding-block: 20px;
}
.filters .row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.filters .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-right: 4px; }
.filters .pill {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink-2);
  transition: all .2s;
  cursor: pointer;
}
.filters .pill:hover { border-color: var(--ink); color: var(--ink); }
.filters .pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .count { font-family: var(--serif); font-style: italic; color: var(--ink-mute); margin-left: auto; font-size: 14px; }

/* ---------- product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(32px, 5vw, 72px);
}
.pdp .gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp .gallery .main {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
}
.pdp .gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp .gallery .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pdp .gallery .thumbs button {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--rule);
  transition: border-color .2s;
}
.pdp .gallery .thumbs button.active { border-color: var(--ink); }
.pdp .gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp .info .crumb { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 24px; }
.pdp .info .crumb a { color: var(--ink); }
.pdp .info .crumb .sep { margin-inline: 10px; color: var(--rule-2); }
.pdp .info h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 24px;
}
.pdp .price-block {
  display: flex; align-items: baseline; gap: 14px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.pdp .price-block .big {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
}
.pdp .price-block .from { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

.pdp .opt-group { margin-bottom: 20px; }
.pdp .opt-group .opt-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
}
.pdp .opt-group .opt-head .chosen { color: var(--ink); font-weight: 500; letter-spacing: 0.08em; text-transform: none; font-size: 13px; }
.pdp .opt-group .opt-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp .opt-group .opt-list button {
  padding: 10px 14px;
  border: 1px solid var(--rule-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: transparent;
  transition: all .18s;
}
.pdp .opt-group .opt-list button:hover { border-color: var(--ink); }
.pdp .opt-group .opt-list button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.pdp .about-design {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.pdp .about-design .caps { color: var(--cranberry); margin-bottom: 10px; }
.pdp .about-design h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; font-weight: 400; }
.pdp .about-design p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-bottom: 8px; }
.pdp .about-design .era { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

.pdp .desc {
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

/* ---------- about page ---------- */
.manifesto {
  padding-block: clamp(56px, 10vw, 120px);
  max-width: 880px;
  margin: 0 auto;
}
.manifesto .kicker { margin-bottom: 24px; color: var(--cranberry); }
.manifesto h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin-bottom: 40px;
}
.manifesto h1 em { font-style: italic; color: var(--cranberry); font-weight: 400; }
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 1.2em;
  color: var(--ink-2);
}
.manifesto p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 5em;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--cranberry);
  font-weight: 400;
}
.manifesto .divider {
  text-align: center;
  margin-block: 48px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--ink);
  padding-block: 56px 24px;
  margin-top: 80px;
}
.site-foot .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.site-foot h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; color: var(--ink-mute); }
.site-foot .big-mark {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.85;
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.site-foot .big-mark em { color: var(--cranberry); font-style: italic; }
.site-foot ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.9; }
.site-foot .foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- empty state ---------- */
.empty {
  padding: 80px 40px;
  text-align: center;
  border: 1px solid var(--rule);
  margin: 40px 0;
}
.empty h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.empty p { color: var(--ink-mute); max-width: 440px; margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .site-nav .inner { grid-template-columns: 1fr auto; }
  .nav-end { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-row { grid-template-columns: 1fr; gap: 32px; }
  .concept-row { grid-template-columns: 1fr; gap: 16px; padding-block: 32px; }
  .concept-row .num-big { font-size: 48px; }
  .pdp { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: auto 1fr; }
  .section-head .aside { grid-column: 1 / -1; text-align: left; max-width: none; }
  .site-foot .inner { grid-template-columns: 1fr 1fr; }
  .site-foot .big-mark { grid-column: 1 / -1; }
}
