/* Uncharted Works — store site styles
   Direction: Boutique — curated grid of product cards
   Palette and dark-mode tokens ported verbatim from uw-site/src/assets/style.css.
   Typography: Inter body, Cardo reserved for product titles and prices. */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #231f20;
  --text-muted: #6a6255;
  --border: #c8c0ae;
  --border-soft: #e2dcca;
  --accent: #2190c1;
  --chip: #efeadc;

  /* Cross-site bar tokens (shared/styles/crosssite.css) */
  --cs-bg: var(--chip);
  --cs-fg: var(--text-muted);
  --cs-fg-strong: var(--text);
  --cs-rule: var(--border);
  --cs-accent: var(--accent);
  --cs-hover: rgba(35, 31, 32, 0.05);
}
:root[data-theme="dark"] {
  --bg: #1a1713;
  --surface: #24201a;
  --text: #e8e2d3;
  --text-muted: #968c7a;
  --border: #3a342c;
  --border-soft: #2c2721;
  --accent: #4ab5e8;
  --chip: #2a251e;

  /* Dark-mode cross-site bar hover */
  --cs-hover: rgba(232, 226, 211, 0.06);
}

/* ---------- Base ----------
   Universal reset (box-sizing, html/body margin-zero, antialiasing, line-height)
   lives in shared/styles/base.css. Only Store-specific body typography below. */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  font-size: 16px;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- Header ---------- */
.site-header {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--border-soft);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
}
.brand img { height: 36px; width: auto; }
.logo-light { display: block; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.brand-text .wordmark {
  font-family: 'Cardo', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-text .tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.top-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.top-nav a:hover { color: var(--text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-sign {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.header-sign:hover { color: var(--text); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}
.hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero .eyebrow::before,
.hero .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--text-muted);
}
.hero h1 {
  font-family: 'Cardo', Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.hero h1 em { font-style: italic; color: var(--text-muted); }
.hero p.lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ---------- Collection meta ---------- */
.collection-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 18px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 40px;
}
.collection-meta .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}
.collection-meta .count {
  font-size: 13px;
  color: var(--text-muted);
}
.collection-meta .count strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 36px 0 20px;
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(35, 31, 32, 0.18);
  border-color: var(--border);
}
:root[data-theme="dark"] .card:hover {
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}

.card .art {
  aspect-ratio: 1 / 1;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.card .art img {
  width: 60%;
  height: auto;
  max-height: 62%;
  object-fit: contain;
}
.card .art .chip {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--surface);
  color: var(--accent);
  padding: 5px 9px;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}
.card .art .chip.ghost {
  color: var(--text-muted);
}

.card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card h3 {
  font-family: 'Cardo', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.card h3 em { font-style: italic; color: var(--text-muted); }
.card p.tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  min-height: 42px;
}
.card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.card .meta-row .pill {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--chip);
  padding: 4px 9px;
  border-radius: 999px;
}
.card .foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.card .price {
  font-family: 'Cardo', Georgia, serif;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}
.card .price small {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 4px;
}
.card .view {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .view svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.card:hover .view svg { transform: translateX(3px); }
.card .view:hover { color: var(--accent); }

/* Coming-soon variant */
.card.soon { opacity: 0.72; }
.card.soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-soft);
}
.card.soon .art { background: transparent; }
.card.soon .art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--border-soft) 10px,
    var(--border-soft) 11px
  );
  opacity: 0.5;
}
.card.soon h3 { color: var(--text-muted); }
.card.soon .price {
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.card.soon .price small { display: none; }
.card.soon .view {
  color: var(--text-muted);
  pointer-events: none;
}

/* ---------- Info strip (trust row) ---------- */
.info-strip {
  margin: 48px 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.info-strip .col .ic {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 10px;
}
.info-strip .col h4 {
  font-family: 'Cardo', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 4px;
}
.info-strip .col p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 24px;
  padding: 32px 0 34px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-nav a {
  color: var(--text-muted);
  margin: 0 11px;
  font-size: 13px;
}
.footer-nav a:hover { color: var(--text); }

/* Centered UW marker. [data-bouncy-marker] is picked up by
   shared/scripts/footer-marker.js — hard scrolls give it a
   velocity kick and it falls back under gravity. */
.footer-marker-wrap {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  will-change: transform;
}
.footer-marker {
  height: 36px;
  width: auto;
  display: block;
  transform-origin: 50% 100%;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- Small viewports ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .info-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .wrap { padding: 0 24px; }
  .grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .collection-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .top-nav ul { gap: 18px; }
}
