/* Mental Props — light shop theme
   Palette from the Victorian badge logo: navy, antique gold, cream. */

:root {
  --navy: #0f2350;
  --navy-deep: #061e3b;
  --navy-soft: #1a3a6b;
  --gold: #aa894b;
  --gold-light: #c4a86a;
  --cream: #fbf0d8;
  --cream-deep: #f3e6c4;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #1c1a17;
  --mute: #5c564c;
  --line: rgba(15, 35, 80, 0.12);
  --shadow: 0 10px 30px rgba(15, 35, 80, 0.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: rgba(15, 35, 80, 0.3); }
a:hover { color: var(--navy-soft); }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand .logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 35, 80, 0.08);
  background: var(--cream);
}
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold); }

/* Intro */
.shop-intro {
  padding: 56px 0 20px;
  text-align: center;
}
.shop-intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 68px);
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.shop-intro .tagline {
  margin: 0;
  color: var(--mute);
  font-size: 18px;
}
.rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto 0;
  border: 0;
}

/* Product grid */
.catalog { padding: 28px 0 80px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 35, 80, 0.12);
}
.card-media {
  background: #f7f3ea;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f3ea;
}
.card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-body h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}
.card-body h2 a { text-decoration: none; color: inherit; }
.byline {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.blurb {
  margin: 4px 0 8px;
  color: var(--mute);
  font-size: 15.5px;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 12px;
}
.price {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.ship {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
  align-self: flex-start;
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--cream);
  border-color: var(--navy-deep);
}
.btn-buy,
a.gumroad-button.btn-buy {
  background: var(--navy) !important;
  color: var(--cream) !important;
  border: 1px solid var(--navy) !important;
  border-radius: 0 !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  padding: 14px 22px !important;
  box-shadow: none !important;
  background-image: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}
a.gumroad-button.btn-buy:hover {
  background: var(--navy-deep) !important;
  color: var(--cream) !important;
}
/* Hide Gumroad's default badge/icon/wordmark if injected */
.gumroad-button img,
.gumroad-button svg,
.gumroad-button .logo-full,
.gumroad-button .logo-full::before,
.gumroad-button .logo-full::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  content: none !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* Product page */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0 20px;
}
.gallery .stage {
  margin: 0;
  background: #f7f3ea;
  border: 1px solid var(--line);
  padding: 12px;
}
.gallery .stage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f3ea;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background: #f7f3ea;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb.is-active { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.kicker {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.product-info h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  color: var(--navy);
  margin: 6px 0 4px;
  line-height: 1.05;
}
.tagline {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--navy-soft);
}
.lead { margin: 0 0 12px; font-size: 18px; }
.sublead { margin: 0 0 20px; color: var(--mute); }
.price-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 8px 0 6px;
}
.price-block .price { font-size: 36px; }
.ship-note { margin: 0 0 18px; color: var(--mute); font-size: 15px; }

.checkout { margin: 8px 0 10px; }
.paypal-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 16px 8px;
  margin-bottom: 10px;
}
.paypal-panel-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.paypal-fallback {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
}
.paypal-fallback .linkish { text-decoration: underline; }
.checkout.sdk-failed .paypal-panel { display: none; }
.checkout-note { margin: 8px 0 0; color: var(--mute); font-size: 14.5px; }

.product-body { padding: 10px 0 72px; }
.block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.block:has(.includes),
.block:has(.about-grid) {
  max-width: none;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 8px;
}
.block h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.15;
}
.deck { color: var(--mute); margin: 0 0 16px; }
.block p { margin: 0 0 12px; max-width: 42em; }
.bullets {
  margin: 0;
  padding-left: 1.15em;
  color: var(--ink);
}
.bullets li { margin: 0 0 8px; }
.product-bullets {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.inc {
  background: var(--cream);
  padding: 18px 18px 16px;
}
.inc .num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 600;
}
.inc h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--navy);
}
.inc p { margin: 0; color: var(--mute); font-size: 15px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.about-card {
  border: 1px solid var(--line);
  padding: 20px 22px;
  background: var(--white);
}
.about-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0;
  color: var(--navy);
}
.about-card .role {
  margin: 2px 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.about-card p { margin: 0; color: var(--mute); }

.faq { max-width: 720px; }
details { border-top: 1px solid var(--line); padding: 2px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  color: var(--navy);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex: 0 0 auto;
  margin-top: -4px;
}
details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
details p { margin: 0 0 16px; color: var(--mute); max-width: 40em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 28px 0 36px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}
.site-footer .legal {
  font-size: 12px;
  margin-top: 4px;
}
.site-footer .placeholder {
  font-style: italic;
  color: var(--mute);
}
#footer-credit {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 860px) {
  .product-grid,
  .product-hero,
  .includes,
  .about-grid { grid-template-columns: 1fr; }
  .product-hero { gap: 24px; padding-top: 24px; }
  .shop-intro { padding-top: 36px; }
  .brand .wordmark { font-size: 22px; }
  .brand .logo { width: 44px; height: 44px; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
}

@media (max-width: 520px) {
  .site-nav { letter-spacing: 0.08em; }
  .card-body { padding: 18px 16px 20px; }
  .card-body h2 { font-size: 28px; }
}
