/* THYME PIECES — hip-hop zine × high art */

:root {
  --ink: #0a0906;
  --paper: #ebe6db;
  --paper-warm: #e3dccb;
  --paper-cool: #d8d2c4;
  --gold: #b88746;
  --gold-deep: #8a5a1f;
  --bleed: #1c1813;
  --blood: #9a1f1f;
  --ultramarine: #1a2960;
  --smoke: rgba(10, 9, 6, 0.55);
  --whisper: rgba(10, 9, 6, 0.35);
  --hairline: rgba(10, 9, 6, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* xerox grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.035  0 0 0 0 0.025  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
}
/* second layer — warm paper cast */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 99;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(184,135,70,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(154,31,31,0.08), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 100%);
}

/* --- type --- */
.display {
  font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.mono  { font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace; }
.script { font-family: 'Petit Formal Script', 'Snell Roundhand', cursive; }
.black-letter { font-family: 'UnifrakturCook', 'UnifrakturMaguntia', serif; font-weight: 700; }

/* links */
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* --- page scaffold --- */
.page {
  min-height: 100vh;
  padding: 0 32px 120px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

/* --- masthead (zine-style newspaper nameplate) --- */
.masthead {
  padding: 18px 0 12px;
  border-bottom: 3px double var(--ink);
  position: relative;
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 12px;
}
.masthead-top .dot { color: var(--blood); }
.masthead-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.masthead-title .lockup {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  flex: 1;
}
.masthead-title .lockup em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.38em;
  letter-spacing: 0;
  color: var(--blood);
  text-transform: none;
  vertical-align: super;
  margin-left: -8px;
}
.masthead-title .ornament {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-align: right;
  font-size: 14px;
  max-width: 260px;
  opacity: 0.8;
  line-height: 1.3;
}

/* --- nav bar --- */
.zine-nav {
  display: flex;
  gap: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.zine-nav a {
  padding: 4px 14px;
  border-right: 1px solid var(--hairline);
  transition: background-color 0.15s, color 0.15s;
}
.zine-nav a:first-child { padding-left: 0; }
.zine-nav a:hover { background: var(--ink); color: var(--paper); }
.zine-nav a.active {
  background: var(--ink);
  color: var(--paper);
}
.zine-nav .spacer { flex: 1; border: none; }
.zine-nav .cart { color: var(--blood); }

/* --- specimen grid (home) --- */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px;
}
.specimen {
  grid-column: span 4;
  background: var(--bleed);
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s;
}
.specimen.wide { grid-column: span 6; aspect-ratio: 3 / 2; }
.specimen.tall { grid-column: span 4; aspect-ratio: 2 / 3; }
.specimen.half { grid-column: span 6; aspect-ratio: 16 / 9; }
.specimen.small { grid-column: span 3; aspect-ratio: 1 / 1; }
.specimen:hover { z-index: 3; }
.specimen:hover .specimen-label { transform: translateY(-4px); }
.specimen:hover .specimen-gem { transform: scale(1.04) rotate(-1deg); }

.specimen-gem {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.specimen-gem-name {
  font-family: 'Anton', Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 96px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 16px;
  mix-blend-mode: overlay;
  color: rgba(255,255,255,0.85);
}
.specimen-plate {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.specimen-label {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  transition: transform 0.3s;
}
.specimen-label .name {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}
.specimen-label .meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.7;
  line-height: 1.3;
}
.specimen-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--blood);
  color: var(--paper);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  padding: 3px 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(3deg);
}
.specimen-tag.sold { background: var(--ink); border: 1px solid var(--paper); }
.specimen-tag.custom { background: var(--gold-deep); }

/* gem gradients (dark, cinematic) */
.gem-amethyst   { background: radial-gradient(ellipse at 30% 30%, #a073d1 0%, #4a2478 40%, #150824 100%); }
.gem-lapis      { background: radial-gradient(ellipse at 70% 40%, #3a5ab8 0%, #1a2960 45%, #050a26 100%); }
.gem-quartz     { background: radial-gradient(ellipse at 40% 30%, #e8f0f5 0%, #8fa5b0 40%, #1d2a30 100%); }
.gem-obsidian   { background: radial-gradient(ellipse at 30% 30%, #3a3540 0%, #14111a 50%, #000000 100%); }
.gem-tiger      { background: radial-gradient(ellipse at 30% 40%, #d89a3a 0%, #8a4a15 45%, #2a1405 100%); }
.gem-malachite  { background: radial-gradient(ellipse at 40% 30%, #4fc290 0%, #1d6a45 45%, #041a10 100%); }
.gem-carnelian  { background: radial-gradient(ellipse at 30% 30%, #e8641a 0%, #9a2a0a 45%, #2a0805 100%); }
.gem-jade       { background: radial-gradient(ellipse at 40% 40%, #9ad49a 0%, #3a7a4a 45%, #0a1f14 100%); }
.gem-garnet     { background: radial-gradient(ellipse at 30% 30%, #c43a3a 0%, #6a0a1a 45%, #20040a 100%); }
.gem-onyx       { background: radial-gradient(ellipse at 30% 30%, #2a2528 0%, #0a0608 50%, #000000 100%); }
.gem-agate      { background: radial-gradient(ellipse at 30% 30%, #5aa4d4 0%, #2a5a8a 45%, #0a1a2a 100%); }
.gem-copper     { background: radial-gradient(ellipse at 30% 30%, #d47a3a 0%, #8a3a1a 45%, #2a0a05 100%); }
.gem-pearl      { background: radial-gradient(ellipse at 40% 30%, #f5ede0 0%, #b8a89a 45%, #4a3a2a 100%); }
.gem-turquoise  { background: radial-gradient(ellipse at 30% 30%, #5adac4 0%, #1a7a8a 45%, #03202a 100%); }

/* shimmer overlay when hovered */
.specimen::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.specimen:hover::after { transform: translateX(100%); }

/* photo-mode tile: actual product photo with vignette so labels read */
.specimen-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.specimen.has-photo:hover .specimen-photo { transform: scale(1.04); }
.specimen.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}
.specimen.has-photo .specimen-plate,
.specimen.has-photo .specimen-tag,
.specimen.has-photo .specimen-label {
  z-index: 2;
}
.specimen.has-photo .specimen-plate {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* hero photo (panel-center on home) */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero-piece .panel-center.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-piece .panel-center.has-photo:hover .hero-photo {
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}

/* dossier photo (left side of piece detail page) */
.dossier-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.dossier-image.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.dossier-image.has-photo .plate-hot,
.dossier-image.has-photo .stone-dot,
.dossier-image.has-photo .stone-callout { z-index: 3; }

/* editorial figure (about, customs, techniques) — newspaper-style captioned image */
.editorial-figure {
  margin: 32px 0;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  position: relative;
}
.editorial-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.05);
}
.editorial-figure figcaption {
  background: var(--paper);
  padding: 12px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  border-top: 2px solid var(--ink);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.editorial-figure figcaption .num {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blood);
  flex-shrink: 0;
  padding-top: 2px;
}

/* --- feature row (hero strap) --- */
.strap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 4px;
}
.strap-left {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
  max-width: 420px;
}
.strap-left .drop {
  float: left;
  font-family: 'UnifrakturCook', serif;
  font-size: 76px;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--blood);
}
.strap-center {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(28px, 4vw, 60px);
  line-height: 0.82;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.strap-center .red { color: var(--blood); }
.strap-right {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}
.strap-right .big {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 60px;
  letter-spacing: 0;
  line-height: 0.9;
  display: block;
}

/* --- section titles --- */
.section-rule {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 64px 0 20px;
}
.section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
}
.section-rule .kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
}
.section-rule .title {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.9;
  text-transform: uppercase;
}
.section-rule .sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  opacity: 0.7;
}

/* --- ticker --- */
.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  overflow: hidden;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: tick 40s linear infinite;
  padding-right: 36px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 36px; }
.ticker-track .sep { color: var(--blood); }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { background: var(--blood); border-color: var(--blood); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.gold { background: var(--gold-deep); border-color: var(--gold-deep); }

/* --- stamp --- */
.stamp {
  display: inline-block;
  border: 2px solid var(--blood);
  color: var(--blood);
  padding: 6px 14px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  background: rgba(154,31,31,0.05);
}
.stamp.ink { border-color: var(--ink); color: var(--ink); background: none; }
.stamp.gold { border-color: var(--gold-deep); color: var(--gold-deep); }

/* --- dossier layout --- */
.dossier {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
@media (max-width: 960px) {
  .dossier { grid-template-columns: 1fr; }
}
.dossier-image {
  aspect-ratio: 3/4;
  position: relative;
  border: 2px solid var(--ink);
  overflow: hidden;
}
.dossier-image .specimen-gem-name {
  font-size: clamp(48px, 8vw, 140px);
}
.dossier-image .plate-hot {
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--paper);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
/* clickable stone dots on dossier piece */
.stone-dot {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
}
.stone-dot:hover, .stone-dot.active {
  background: rgba(255,255,255,0.2);
  border: 2px solid var(--paper);
  transform: scale(1.15);
}
.stone-callout {
  position: absolute;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 12px 14px;
  width: 240px;
  font-size: 13px;
  line-height: 1.35;
  z-index: 5;
  box-shadow: 6px 6px 0 var(--ink);
}
.stone-callout h5 {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.stone-callout .data {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-top: 6px;
}

.dossier-body h1 {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.85;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dossier-body h1 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--blood);
  font-size: 0.4em;
}
.dossier-body .byline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  opacity: 0.75;
  margin-bottom: 24px;
}
.dossier-body .price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.dossier-body .price .big {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 56px;
  line-height: 1;
}
.dossier-body .price .edition {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}

.data-table {
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 18px 0;
  border-top: 1px solid var(--ink);
}
.data-table .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.data-table .k {
  text-transform: uppercase;
  color: var(--smoke);
  letter-spacing: 0.14em;
  font-size: 10px;
}
.data-table .v { text-transform: none; }

/* edition bar */
.edition-bar {
  display: flex;
  gap: 3px;
  margin: 10px 0;
}
.edition-bar .unit {
  flex: 1;
  height: 18px;
  background: var(--paper-warm);
  border: 1px solid var(--ink);
}
.edition-bar .unit.sold {
  background: var(--ink);
  position: relative;
}
.edition-bar .unit.sold::after {
  content: "✕";
  position: absolute;
  inset: 0;
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* --- certificate --- */
.certificate {
  background: #f1e9d4;
  border: 8px double var(--gold-deep);
  padding: 32px 40px;
  position: relative;
  color: #2a1f10;
  font-family: 'Cormorant Garamond', serif;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 2px 0 var(--gold-deep);
  max-width: 920px;
  margin: 0 auto;
  background-image:
    repeating-linear-gradient(45deg, rgba(184,135,70,0.05) 0, rgba(184,135,70,0.05) 1px, transparent 1px, transparent 8px),
    radial-gradient(ellipse at center, rgba(241,233,212,0.3) 0%, rgba(234,220,190,0.8) 100%);
}
.certificate::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid var(--gold-deep);
  pointer-events: none;
}
.certificate::after {
  content: "";
  position: absolute; inset: 20px;
  border: 1px solid var(--gold-deep);
  pointer-events: none;
  opacity: 0.5;
}
.cert-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.cert-head .side {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.cert-head .side.r { text-align: right; }
.cert-seal {
  width: 100px; height: 100px;
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gold-deep);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 14px;
  text-align: center;
  line-height: 1;
  position: relative;
}
.cert-seal::after {
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed var(--gold-deep);
  border-radius: 50%;
}
.cert-title {
  text-align: center;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.cert-title h2 {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 44px;
  letter-spacing: 0.04em;
  color: #2a1f10;
  line-height: 1;
  text-transform: uppercase;
}
.cert-title .script {
  font-size: 48px;
  color: var(--blood);
  margin: 4px 0 2px;
}
.cert-title .sub {
  font-style: italic;
  font-size: 15px;
  opacity: 0.8;
}
.cert-body {
  margin: 20px 0;
  font-size: 15px;
  text-align: center;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
  line-height: 1.55;
  position: relative; z-index: 1;
}
.cert-body em { color: var(--blood); }
.cert-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  margin: 24px 0;
  position: relative; z-index: 1;
}
.cert-data .cell {
  padding: 10px 12px;
  border-right: 1px solid var(--gold-deep);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cert-data .cell:last-child { border-right: none; }
.cert-data .k { color: var(--gold-deep); opacity: 0.8; margin-bottom: 4px; }
.cert-data .v { font-family: 'Cormorant Garamond', serif; font-size: 16px; text-transform: none; color: #2a1f10; letter-spacing: 0; }
.cert-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
  position: relative; z-index: 1;
}
.cert-foot .sig {
  font-family: 'Petit Formal Script', cursive;
  font-size: 32px;
  color: #2a1f10;
  border-bottom: 1px solid var(--gold-deep);
  padding: 0 40px 2px 0;
}
.cert-foot .sig-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
}

/* huge watermark on cert */
.cert-watermark {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 240px;
  letter-spacing: -0.02em;
  color: var(--gold-deep);
  opacity: 0.05;
  pointer-events: none;
  text-transform: uppercase;
  line-height: 0.8;
}

/* --- floating hero piece (home) --- */
.hero-piece {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2px;
  background: var(--ink);
  margin-bottom: 2px;
  min-height: 520px;
  position: relative;
}
.hero-piece .panel {
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-piece .panel-left {
  font-family: 'Cormorant Garamond', serif;
}
.hero-piece .panel-left .quote {
  font-style: italic;
  font-size: 24px;
  line-height: 1.25;
}
.hero-piece .panel-left .quote::before {
  content: "";
  display: block;
  font-family: 'UnifrakturCook', serif;
  font-size: 100px;
  line-height: 0.6;
  color: var(--blood);
  content: '\201C';
}
.hero-piece .panel-left .attr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 18px;
  opacity: 0.6;
}
.hero-piece .panel-center {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-piece .panel-center .specimen-gem-name {
  font-size: clamp(60px, 10vw, 160px);
}
.hero-piece .panel-right {
  border-left: 2px solid var(--ink);
}
.hero-piece .panel-right h3 {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-piece .panel-right h3 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--blood);
  font-size: 0.5em;
}
.hero-piece .panel-right .spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 14px 0;
}

/* --- technique cards --- */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px;
}
.technique {
  background: var(--paper);
  padding: 28px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.technique:hover { background: var(--paper-warm); }
.technique .num {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 80px;
  line-height: 0.85;
  color: var(--blood);
}
.technique h4 {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 6px;
}
.technique .alias {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 10px;
}
.technique .blurb { font-size: 15px; line-height: 1.45; }
.technique .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--smoke);
  display: flex;
  gap: 16px;
}

/* --- gemstone index --- */
.gem-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px;
}
.gem-card {
  background: var(--bleed);
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  transition: all 0.2s;
}
.gem-card:hover { transform: scale(0.98); }
.gem-card .gem-name {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(20px, 2.4vw, 38px);
  line-height: 0.85;
  text-transform: uppercase;
}
.gem-card .gem-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.gem-card .chakra {
  position: absolute;
  top: 14px; right: 14px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--paper);
}

/* --- consultant quiz --- */
.quiz {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border: 2px solid var(--ink);
  margin-bottom: 32px;
}
.quiz h3 {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 40px;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 8px;
}
.quiz .question {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  margin: 20px 0 14px;
}
.quiz .options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quiz .opt {
  padding: 10px 16px;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.quiz .opt:hover, .quiz .opt.active {
  background: var(--paper);
  color: var(--ink);
}
.quiz .result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.45;
}

/* --- wrist tool --- */
.wrist-tool {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .wrist-tool { grid-template-columns: 1fr; } }
.wrist-diagram {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  aspect-ratio: 4/3;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.wrist-ruler {
  width: 100%;
  height: 42px;
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent calc(100% / 16)) bottom/100% 14px no-repeat,
              repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 2px, transparent 2px, transparent calc(100% / 8)) bottom/100% 22px no-repeat,
              var(--paper);
  border: 1px solid var(--ink);
  position: relative;
}
.wrist-ruler input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 42px;
  padding: 0;
  outline: none;
}
.wrist-ruler input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 48px;
  background: var(--blood);
  border: 2px solid var(--ink);
  cursor: grab;
}
.wrist-ruler input::-moz-range-thumb {
  width: 12px; height: 48px;
  background: var(--blood);
  border: 2px solid var(--ink);
  cursor: grab;
}
.wrist-readout {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 72px;
  line-height: 1;
}
.wrist-readout .unit { font-size: 32px; color: var(--blood); }
.wrist-labels {
  display: flex; justify-content: space-between;
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- cart --- */
.cart-table {
  border: 2px solid var(--ink);
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto 120px auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--ink);
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 80px; aspect-ratio: 1; }
.cart-thumb .specimen-gem-name { font-size: 18px; }
.cart-name {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}
.cart-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}
.cart-price {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 24px;
  text-align: right;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  align-items: baseline;
}
.cart-total .label { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.cart-total .num { font-family: 'Anton', Impact, sans-serif; font-size: 64px; }

/* --- footer --- */
.footer {
  margin-top: 120px;
  padding: 40px 0 24px;
  border-top: 3px double var(--ink);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .foot-title {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 42px;
  line-height: 0.9;
  text-transform: uppercase;
}
.footer h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.footer ul { list-style: none; font-size: 14px; }
.footer li { padding: 4px 0; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* floating stamp */
.floating-stamp {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 20;
  transform: rotate(-6deg);
}

/* about page */
.about-wrap {
  max-width: 900px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.55;
}
.about-wrap .lede {
  font-size: 26px;
  font-style: italic;
  margin-bottom: 32px;
}
.about-wrap h2 {
  font-family: 'Anton', Impact, sans-serif;
  text-transform: uppercase;
  font-size: 44px;
  margin: 40px 0 14px;
  line-height: 0.9;
}
.about-wrap p { margin-bottom: 16px; }
.about-wrap .pull {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 48px;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
}
.about-wrap .pull em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--blood);
  font-size: 0.7em;
}

/* filter bar */
.filter-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
  background: var(--ink);
  padding: 2px;
  border: 2px solid var(--ink);
  flex-wrap: wrap;
}
.filter-bar button {
  padding: 10px 14px;
  background: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex: 1;
  min-width: 120px;
}
.filter-bar button.active { background: var(--ink); color: var(--paper); }

/* gem modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,9,6,0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.2s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper);
  border: 3px solid var(--ink);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
  position: relative;
  box-shadow: 12px 12px 0 var(--blood);
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 28px;
}


/* ============================================================
   PAGE HEROES — editorial photo treatments for sub-pages
   ============================================================ */

/* --- EDITIONS hero --- */
.editions-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}
.editions-hero-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bleed);
  overflow: hidden;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--blood);
}
.editions-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.05);
}
.editions-hero-img::after {
  content: "EDITION OF TEN — VOL. 001";
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
}
.editions-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editions-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.editions-stats .n {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 64px;
  line-height: 0.9;
  color: var(--blood);
}
.editions-stats .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* --- CUSTOMS hero --- */
.customs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}
.customs-hero-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  background: var(--bleed);
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--gold-deep);
}
.customs-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.plate-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
  z-index: 2;
}
.customs-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slot-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--paper-warm);
  padding: 16px 22px;
  margin-top: 8px;
}
.slot-counter-label .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.slot-counter-num {
  font-family: 'Anton', Impact, sans-serif;
  display: flex;
  align-items: baseline;
  color: var(--blood);
}
.slot-counter-num .big { font-size: 76px; line-height: 0.85; }
.slot-counter-num .slash { font-size: 38px; opacity: 0.4; margin: 0 4px; color: var(--ink); }
.slot-counter-num .tot { font-size: 38px; color: var(--ink); }

/* --- TECHNIQUES hero + photo cards --- */
.tech-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}
.technique.with-photo {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}
.technique.with-photo .tech-thumb {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
  border-right: 1px solid var(--ink);
}
.technique.with-photo .tech-body {
  padding: 24px 28px 24px 0;
}
.technique.with-photo .num {
  font-size: 56px;
  line-height: 0.9;
  margin-bottom: 8px;
}
@media (max-width: 720px) {
  .technique.with-photo { grid-template-columns: 1fr; }
  .technique.with-photo .tech-thumb { min-height: 180px; border-right: none; border-bottom: 1px solid var(--ink); }
  .technique.with-photo .tech-body { padding: 20px; }
}

/* --- GEMS hero + glyph tile --- */
.gems-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}
.gems-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.gems-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid var(--ink);
}
.gem-card {
  position: relative;
  overflow: hidden;
}
.gem-glyph {
  position: absolute;
  inset: -10%;
  z-index: 0;
  filter: blur(20px);
  opacity: 0.55;
}
.gem-card > * { position: relative; z-index: 1; }
.gem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, transparent 0%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}
.gem-card .chakra { z-index: 2; }

@media (max-width: 720px) {
  .editions-hero, .customs-hero, .tech-hero, .gems-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* gem specimen stamp — upper-left of each gem card, balances chakra dot upper-right */
.gem-specimen-stamp {
  position: absolute;
  top: 12px; left: 12px;
  width: 56px; height: 56px;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 4px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.gem-specimen-stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}
.gem-card:hover .gem-specimen-stamp {
  transform: rotate(-3deg) translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--blood);
}
/* shift gem text down a touch so stamp doesn't crowd it */
.gem-card .gem-name { padding-top: 4px; }
@media (max-width: 720px) {
  .gem-specimen-stamp { width: 44px; height: 44px; top: 10px; left: 10px; }
}


/* macro mineral photo inside the specimen stamp */
.gem-specimen-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.05);
}


/* ============================================================
   LEGAL / POLICY PAGES
   ============================================================ */
.legal-wrap { max-width: 760px; }
.legal-wrap h2 {
  font-size: 30px;
  margin: 34px 0 10px;
}
.legal-wrap p { font-size: 17px; line-height: 1.6; margin-bottom: 14px; }
.legal-wrap .lede { font-size: 22px; margin-bottom: 20px; }
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.legal-notice {
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--blood);
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 28px;
}
.legal-notice .ph { color: var(--blood); }
.legal-wrap .legal-list {
  margin: 6px 0 16px 0;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.6;
}
.legal-wrap .legal-list li { margin-bottom: 8px; }
.legal-foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 3px double var(--ink);
  font-style: italic;
  font-size: 16px;
}
/* bracketed placeholders pop so they're easy to find + replace */
.legal-wrap p, .legal-wrap li, .legal-meta, .legal-notice { }

/* footer legal links row */
.footer-bottom { flex-direction: column; gap: 14px; align-items: stretch; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legal-links a {
  padding: 4px 14px;
  border-right: 1px solid var(--hairline);
  transition: color 0.15s;
}
.legal-links a:first-child { padding-left: 0; }
.legal-links a:hover { color: var(--blood); }
.footer-legal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}


/* ===== Gemstone index: larger specimen image ===== */
.gem-specimen-stamp-lg {
  width: 58%;
  height: auto;
  aspect-ratio: 1;
  padding: 5px;
  box-shadow: 4px 4px 0 var(--ink);
}
.gem-card:hover .gem-specimen-stamp-lg {
  transform: rotate(-3deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--blood);
}
.gem-card-text {
  margin-top: auto;
  position: relative;
  z-index: 2;
}
.gem-card-text .gem-name { padding-top: 2px; }
.gem-card-mohs { margin-top: 5px; }
@media (max-width: 720px) {
  .gem-specimen-stamp-lg { width: 54%; }
}

/* ===== Gemstone modal: framed specimen photo fills the space beside the name ===== */
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.modal-head-text { flex: 1; min-width: 0; }
.modal-gem-photo {
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blood);
  overflow: hidden;
  background: var(--bleed);
}
.modal-gem-photo img,
.modal-gem-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 560px) {
  .modal-head { flex-direction: column-reverse; align-items: flex-start; }
  .modal-gem-photo { width: 120px; height: 120px; }
}
