/* ---------- theme tokens ---------- */
:root,
:root[data-theme="dark"] {
  --bg: #313438;
  --bg2: #2a2c2f;
  --panel: #4e5256;
  --card: #4e5256;
  --card-hover: #585c61;
  --gold-border: rgba(212, 175, 55, 0.55);
  --gold-border-strong: #d4af37;
  --text: #f2f1ee;
  --muted: #b7b6bb;
  --gold: #e3b341;
  --gold2: #f0c86a;
  --shadow: rgba(0, 0, 0, 0.5);
}
:root[data-theme="light"] {
  --bg: #f7f6f3;
  --bg2: #efeee9;
  --panel: #ffffff;
  --card: #ffffff;
  --card-hover: #fbf8f0;
  --gold-border: rgba(196, 155, 58, 0.5);
  --gold-border-strong: #c49b3a;
  --text: #201f1c;
  --muted: #6b6a66;
  --gold: #b6862f;
  --gold2: #c9a13a;
  --shadow: rgba(60, 50, 20, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Left-anchored on purpose, not centered - the pinned charm lives in the
   open space this leaves on the right. */
.wrap {
  max-width: 1080px;
  margin: 0;
  padding: 0 24px 0 clamp(20px, 5vw, 64px);
  position: relative;
}

a { color: inherit; }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 30px); text-align: left; font-family: "Playfair Display", Georgia, serif; }
h3 { font-size: 16px; }
p { color: var(--muted); line-height: 1.6; }

.sectionLede {
  text-align: left;
  max-width: 520px;
  margin: 0 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btnPrimary {
  background: linear-gradient(160deg, var(--gold2), var(--gold-border-strong));
  color: #2a1f04;
}
.btnPrimary:hover { filter: brightness(1.06); }
.btnGhost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--gold-border);
}
.btnGhost:hover { background: rgba(212, 175, 55, 0.08); }
.btnSmall { padding: 9px 18px; font-size: 13px; }
.btnWide { width: 100%; padding: 15px 0; font-size: 15px; }

/* ---------- theme toggle (no header bar - floats free, top-left) ---------- */
.themeToggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  background: var(--bg);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.themeToggle:hover { background: rgba(212, 175, 55, 0.1); }
.themeToggleFloating {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
}
.themeIconLight { display: none; }
:root[data-theme="light"] .themeIconDark { display: none; }
:root[data-theme="light"] .themeIconLight { display: inline; }

/* ---------- pinned rope+charm (hangs on the bare page, no frame) ----------
   A real physically-simulated cord (verlet rope, same as the app) drawn on
   canvas - purely visual (pointer-events:none), app.js hit-tests proximity
   itself via document-level listeners so it doesn't block page clicks. */
#ropeCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 40px; position: relative; }
.heroGrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.heroSpacer { min-height: 1px; }

.heroTitleWrap { position: relative; display: inline-block; }
.heroWatermark {
  position: absolute;
  left: -30px;
  top: -30px;
  width: 220px;
  height: 300px;
  fill: var(--gold);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}
.heroTitle {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 76px);
  letter-spacing: 0.5px;
  background: linear-gradient(160deg, var(--gold2), var(--gold-border-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(212, 175, 55, 0.25));
  margin: 0;
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  color: var(--gold2);
}
.heroSubtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  margin: 6px 0 18px;
}
.lede { font-size: 16px; max-width: 460px; }
.heroCtas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.heroHint { font-size: 12.5px; color: var(--muted); opacity: 0.8; }

/* ---------- make it yours ---------- */
.makeYours { padding: 30px 0 64px; }
.makeYoursGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
}
.myCard {
  background: var(--card);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  padding: 22px;
}
.myIcon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.myCard h3 { font-family: "Playfair Display", Georgia, serif; font-size: 17px; }
.myCard p { font-size: 13px; margin: 0; }

/* ---------- gallery ---------- */
.gallery { padding: 56px 0; background: var(--bg2); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); }
.galleryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
}
.gcard {
  background: var(--card);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  padding: 0 18px 20px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.gcard:hover { background: var(--card-hover); transform: translateY(-2px); }
.gcard.active { border-color: var(--gold-border-strong); border-width: 2px; }
.gcardTick {
  width: 2px;
  height: 18px;
  background: var(--gold-border-strong);
  margin: 0 auto;
}
.gcardImg {
  height: 190px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 8px;
}
.gcardImg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px var(--shadow));
}
.gcardName { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.gcardTag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  color: var(--muted);
  margin-bottom: 10px;
}
.gcardDesc { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---------- pricing ---------- */
.pricing { padding: 64px 0; }
.priceCard {
  max-width: 380px;
  margin: 28px 0 0;
  background: var(--panel);
  border: 1.5px solid var(--gold-border-strong);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 50px var(--shadow);
}
.priceTier {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.priceAmount { font-size: 42px; font-weight: 800; color: var(--gold2); font-family: "Playfair Display", Georgia, serif; }
.priceNote { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.priceList {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  text-align: left;
  font-size: 13.5px;
}
.priceList li {
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px solid var(--gold-border);
}
.priceList li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.priceList li:last-child { border-bottom: none; }
.priceFine { font-size: 11.5px; margin-top: 14px; }

/* ---------- updates (placeholder) ---------- */
.updates { padding: 56px 0; background: var(--bg2); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); }
.updatesBadge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ---------- suggest ---------- */
.suggest { padding: 56px 0 72px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--gold-border); padding: 22px 0; }
.footerBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.footerLinks { display: flex; align-items: center; gap: 18px; }
.footerLinks a:hover { color: var(--text); }
.igLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  color: var(--muted);
}
.igLink:hover { color: var(--gold); border-color: var(--gold-border-strong); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .heroGrid { grid-template-columns: 1fr; }
  .makeYoursGrid { grid-template-columns: repeat(2, 1fr); }
  .galleryGrid { grid-template-columns: repeat(2, 1fr); }
  /* rope canvas sizing/scale is computed responsively in app.js from
     window.innerWidth, nothing to override here */
}
@media (max-width: 480px) {
  .makeYoursGrid { grid-template-columns: 1fr; }
  .galleryGrid { grid-template-columns: 1fr; }
  .footerBar { flex-direction: column; gap: 10px; text-align: center; }
  #ropeCanvas { display: none; }
}
