/* ═══════════════════════════════════════════════════════════════
   thecutguide.com — shared design system
   Fonts: Cormorant Garamond (display) · DM Mono (labels) · Instrument Sans (body)
═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:    #E8E3DB;
  --white: #FDFAF6;
  --rule:  #D0C9BE;
  --ink:   #161210;
  --mid:   #3A3430;
  --soft:  #6B6360;
  --gold:  #8B6914;
  --red:   #7A1A1A;
  --green: #1A5A1A;
  --mono:  'DM Mono', monospace;
  --body:  'Instrument Sans', sans-serif;
  --disp:  'Cormorant Garamond', serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  background: var(--ink);
  padding: 0 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--disp);
  font-size: 17px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.logo em { font-weight: 300; font-style: italic; color: rgba(255,255,255,0.45); font-size: 15px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: white; }
.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: white;
  color: var(--ink);
  padding: 7px 16px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--rule); }

/* ── Page wrapper ───────────────────────────────────────────── */
.wrapper {
  max-width: 1800px;
  margin: 0 auto;
  padding: 36px 28px 64px;
  overflow-x: auto;          /* scroll rather than collapse */
  overflow-y: visible;
}

/* ── Spread (two-page book layout) ─────────────────────────── */
.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Never narrower than two 430px pages. If the wrapper is narrower,
     the spread overflows and the wrapper scrolls horizontally. */
  width: max(100%, 862px);
  background: var(--rule);
  gap: 2px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.22);
}
.pg {
  background: var(--white);
  padding: 48px 44px 36px;
  position: relative;
  min-height: 820px;
  display: flex;
  flex-direction: column;
}
/* Page numbers always anchor to the bottom of the flex page,
   regardless of how much content fills each side. !important
   overrides the per-page inline margin-top: 20px declarations. */
.pn { margin-top: auto !important; }

/* ── Running header ─────────────────────────────────────────── */
.run {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--soft);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.run-right { color: var(--gold); }

/* ── Opening block ──────────────────────────────────────────── */
.open {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.gem-frame { background: var(--ink); padding: 3px; }
.gem-stage {
  background: #0B0B0A;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gem-cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--soft);
  text-align: center;
  padding-top: 7px;
  border-top: 1px solid var(--rule);
  margin-top: 5px;
}
.cut-eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 10px;
}
.cut-name {
  font-family: var(--disp);
  font-size: 54px;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}
.cut-name em { font-style: italic; color: var(--soft); }
.cut-family {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}
.open-deck {
  font-family: var(--disp);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--mid);
}

/* ── Body text ──────────────────────────────────────────────── */
.left-body p, .right-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 14px;
}
.left-body p:last-child, .right-body p:last-child { margin-bottom: 0; }
.section-head {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
  margin-top: 28px;
}
.section-head:first-child { margin-top: 0; }

/* ── Spec table ─────────────────────────────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
.spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--mid);
  font-size: 14px;
}
.spec-table td:first-child {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--soft);
  padding-right: 20px;
  width: 38%;
}
.spec-table strong { color: var(--ink); }

/* ── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  margin-bottom: 28px;
}
.stat-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--rule);
}
.stat-cell:last-child { border-right: none; }
.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 4px;
}
.stat-value {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--soft);
  margin-top: 2px;
}

/* ── Verdict box ────────────────────────────────────────────── */
.verdict {
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  background: var(--bg);
  margin-bottom: 24px;
}
.verdict-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.verdict p {
  font-family: var(--disp);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

/* ── Comparison table ───────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 24px; }
.compare-table th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.compare-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--mid);
  font-size: 14px;
}
.compare-table td:first-child { font-weight: 500; color: var(--ink); }
.compare-table tr.highlight td { background: rgba(139,105,20,0.06); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 24px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-mark {
  font-family: var(--disp);
  font-size: 14px;
  color: var(--soft);
  font-style: italic;
}
.footer-rule {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
}

/* ── Cut index grid (homepage / index pages) ────────────────── */
.cut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
}
.cut-card {
  background: var(--white);
  padding: 20px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.12s;
}
.cut-card:hover { background: var(--bg); }
.cut-card:hover .cut-card-gem {
  transform: translateY(-3px) scale(1.03);
}
.cut-card-gem {
  width: 52px;
  height: 52px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform 0.22s ease-out;
}
.cut-card.soon .cut-card-gem { transition: none; }
.cut-card-name {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.cut-card-meta {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--soft);
}

/* ── Hamburger nav ──────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--soft);
  transition: transform 0.2s, opacity 0.2s, width 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); background: white; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); background: white; }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--ink);
  z-index: 99;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu ul { list-style: none; padding: 8px 24px 16px; }
.nav-mobile-menu li a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.nav-mobile-menu li:last-child a { border-bottom: none; }
.nav-mobile-menu li a:hover { color: white; }

/* ── Mobile page nav bar ────────────────────────────────────── */
.mobile-pg-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: var(--ink);
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 200;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mpn-btn {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 4px;   /* tall touch target */
  min-width: 80px;
  transition: color 0.15s;
}
.mpn-btn:disabled { opacity: 0.2; pointer-events: none; }
.mpn-btn:not(:disabled):hover { color: white; }
.mpn-dots { display: flex; gap: 7px; align-items: center; }
.mpn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.2s;
}
.mpn-dot.active { background: white; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta  { display: none; }
  .nav-hamburger { display: flex; }
  .wrapper { padding: 20px 0 48px; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
  .open { grid-template-columns: 160px 1fr; }
}

/* ── Mobile: horizontal card-stack ─────────────────────────── */
@media (max-width: 580px) {
  .wrapper {
    max-width: 100%;
    overflow: hidden;
    padding: 0;
  }
  .spread {
    display: flex;
    flex-direction: row;
    align-items: flex-start;  /* each page only as tall as its content */
    width: 200%;
    gap: 0;
    background: none;
    box-shadow: none;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }
  .pg {
    flex: 0 0 50%;
    width: 50%;
    min-height: 0;
    box-shadow: none;
    padding: 24px 20px 80px;
  }
  .open { grid-template-columns: 1fr; }
  .mobile-pg-nav { display: flex; }
  footer { display: none; } /* footer shows after both pages — reconsider later */
}
