:root {
  --paper: #f4efe4;
  --paper-2: #fbf8f1;
  --ink: #1d1813;
  --ink-soft: #5f564b;
  --oxblood: #6e2a2a;
  --oxblood-hi: #8a3838;
  --line: rgba(29, 24, 19, 0.14);
  --max: 640px;
  --shadow: 0 18px 50px -28px rgba(29, 24, 19, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--oxblood);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---------- masthead ---------- */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14vh 28px 0;
  text-align: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 1.4rem;
  font-weight: 600;
}

.masthead h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 auto;
}

/* ---------- note ---------- */
.note {
  max-width: var(--max);
  margin: 8vh auto 10vh;
  padding: 0 28px;
}

.note p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.note p:first-child {
  color: var(--ink);
}

.note .why {
  font-size: 0.98rem;
}

.note strong {
  color: var(--oxblood);
  font-weight: 600;
}

/* ---------- shop ---------- */
.shop {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.product {
  padding: 6vh 0;
  border-top: 1px solid var(--line);
}

.product:first-child {
  border-top: none;
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.product-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.1;
  margin: 0;
}

.product-head .variant {
  color: var(--ink-soft);
  font-weight: 400;
}

.price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  color: var(--oxblood);
  margin: 0;
  white-space: nowrap;
}

.feature img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  background: var(--paper-2);
}

.alts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.alts img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
  background: var(--paper-2);
  transition: opacity 0.2s ease;
}

.alts img:hover {
  opacity: 0.86;
}

/* ---------- product footer ---------- */
.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 1.8rem;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--oxblood);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-outline:hover {
  background: transparent;
  color: var(--oxblood);
  box-shadow: inset 0 0 0 1px var(--oxblood);
}

.live,
.live-group a {
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.live:hover,
.live-group a:hover {
  color: var(--oxblood);
}

.live-group {
  display: inline-flex;
  gap: 1rem;
}

/* ---------- colophon ---------- */
.colophon {
  max-width: var(--max);
  margin: 6vh auto 0;
  padding: 5vh 28px 12vh;
  border-top: 1px solid var(--line);
  text-align: center;
}

.colophon p {
  margin: 0 auto 1rem;
  max-width: 32rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.colophon .sig {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 2rem;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .alts {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
