:root {
  --paper: #F5F2EA;
  --paper-raised: #FFFFFF;
  --ink: #1B2530;
  --ink-soft: #4A5568;
  --ink-faint: #8A9BAD;
  --line: #DDD8CC;
  --line-soft: #EAE6DC;
  --gold: #8C6D1F;
  --gold-deep: #6B5118;
  --gold-tint: #F2EACC;
  --stone: #6B7A8A;
  --stone-tint: #E8EDF2;
  --shadow: 0 18px 40px -20px rgba(27, 37, 48, 0.35);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141C24;
    --paper-raised: #1D2835;
    --ink: #EDE9DF;
    --ink-soft: #B0BBCA;
    --ink-faint: #6A7D90;
    --line: #2E3D4F;
    --line-soft: #243040;
    --gold: #C9A44A;
    --gold-deep: #E0C070;
    --gold-tint: #2C2410;
    --stone: #8FA3B8;
    --stone-tint: #1D2835;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --paper: #141C24;
  --paper-raised: #1D2835;
  --ink: #EDE9DF;
  --ink-soft: #B0BBCA;
  --ink-faint: #6A7D90;
  --line: #2E3D4F;
  --line-soft: #243040;
  --gold: #C9A44A;
  --gold-deep: #E0C070;
  --gold-tint: #2C2410;
  --stone: #8FA3B8;
  --stone-tint: #1D2835;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
body { transition: background 0.2s ease, color 0.2s ease; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 66ch; }
a { color: inherit; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  font-family: "Cinzel", serif; font-size: 1.15rem; letter-spacing: 0.04em;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand span { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  font-size: 1.2rem; padding: 4px 10px; cursor: pointer; color: var(--ink);
}
.main-nav ul {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-deep); }
.header-cta { flex-shrink: 0; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px;
  padding: 13px 28px; font-size: 0.98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -12px rgba(140, 109, 31, 0.6); }
.btn-primary:hover { background: var(--gold-deep); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-deep); }
.btn-outline:hover { background: var(--gold-tint); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper-raised); border-bottom: 1px solid var(--line); padding: 18px 24px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .header-cta .btn { padding: 10px 18px; font-size: 0.88rem; }
}

/* ---- Sections ---- */
.section { padding: 72px 24px; }
.section-sub { color: var(--ink-soft); max-width: 62ch; margin-left: auto; margin-right: auto; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Hero ---- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 64px 24px 56px;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero .subhead { font-size: 1.1rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-soft); }
.trust-row strong { color: var(--ink); }

/* ---- Placeholder art tile (no fabricated imagery — honest CSS placeholder) ---- */
.art-placeholder {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 30% 25%, rgba(140,109,31,0.16), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(107,122,138,0.14), transparent 60%),
    var(--paper-raised);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  aspect-ratio: 4 / 5; text-align: center; padding: 20px;
}
.art-placeholder .glyph { font-size: 2rem; color: var(--gold); margin-bottom: 8px; opacity: 0.8; }
.art-placeholder .label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.art-placeholder.hero-placeholder { aspect-ratio: 4 / 5; }
.placeholder-caption { text-align: center; font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }

/* ---- Real watercolor art (hero, catalog, about) ---- */
.hero-art, .catalog-card img, .about-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block;
}
.about-figure { max-width: 420px; margin: 0 auto 40px; }
.about-figure figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }

/* ---- Process steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-deep);
  font-family: "IBM Plex Mono", monospace; font-weight: 600; margin-bottom: 14px;
}

/* ---- Gift occasions ---- */
.occasion-band { background: var(--gold-tint); }
.occasion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1120px; margin: 30px auto 0; }
@media (max-width: 860px) { .occasion-grid { grid-template-columns: repeat(2, 1fr); } }
.occasion-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; font-weight: 600; font-size: 0.98rem;
}

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.price-card-featured { border-color: var(--gold); border-width: 2px; }
.price-card-tbd { border-style: dashed; opacity: 0.82; }
.price-label { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.price-amount { font-family: "IBM Plex Mono", monospace; font-size: 1.8rem; color: var(--gold-deep); font-weight: 600; margin: 4px 0 10px; }
.price-amount span { font-size: 0.85rem; color: var(--ink-faint); font-family: "Source Sans 3", sans-serif; }
.price-features { padding-left: 20px; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.price-features li { margin-bottom: 6px; }
.price-btn { text-align: center; margin-top: 12px; }

/* ---- Checkout ---- */
.checkout-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
@media (max-width: 720px) { .checkout-panel { grid-template-columns: 1fr; } }
.checkout-form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 6px; }
.checkout-form select, .checkout-form input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; background: var(--paper); color: var(--ink);
}
.checkout-form-note { font-size: 0.85rem; color: var(--ink-faint); }
.checkout-submit { width: 100%; margin-top: 16px; }
.checkout-notice {
  background: var(--gold-tint); border: 1px solid var(--gold); border-radius: 8px;
  padding: 12px 14px; font-size: 0.88rem; color: var(--gold-deep); margin-top: 14px; display: none;
}
.checkout-notice.is-visible { display: block; }
.checkout-summary { border-right: 1px solid var(--line-soft); padding-right: 24px; }
@media (max-width: 720px) { .checkout-summary { border-right: none; padding-right: 0; } }
.checkout-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.checkout-row-total { font-weight: 700; border-bottom: none; }

/* ---- Social proof placeholder ---- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card {
  background: var(--paper-raised); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center; color: var(--ink-faint);
}
.proof-card .glyph { font-size: 1.6rem; color: var(--gold); opacity: 0.6; margin-bottom: 10px; }
.proof-card .label { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Catalog (temples.html) ---- */
.catalog-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-chip {
  border: 1px solid var(--line); background: var(--paper-raised); border-radius: 999px;
  padding: 8px 18px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.filter-chip.is-active { background: var(--gold); color: #fff; border-color: var(--gold); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 860px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }
.catalog-card figcaption { padding: 12px 4px 0; font-size: 0.92rem; font-weight: 600; }
.catalog-card .region { font-size: 0.8rem; color: var(--ink-faint); }
.notify-form { max-width: 480px; margin: 40px auto 0; text-align: center; }
.notify-form form { display: flex; gap: 10px; margin-top: 12px; }
.notify-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }

/* ---- About page ---- */
.about-copy { max-width: 720px; margin: 0 auto; }
.about-copy h2 { margin-top: 1.4em; }

/* ---- Legal disclaimer / footer ---- */
.disclaimer-band { background: var(--stone-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclaimer-band p { max-width: 760px; margin: 0 auto; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; line-height: 1.7; }
.site-footer { padding: 40px 24px; text-align: center; color: var(--ink-faint); font-size: 0.9rem; }
.site-footer a { text-decoration: underline; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  background: var(--ink); color: var(--paper); border-radius: 10px;
  padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); max-width: 640px; margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: 0.88rem; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--gold-tint); }
.cookie-banner button {
  background: var(--gold); color: #fff; border: none; border-radius: 999px;
  padding: 9px 20px; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}
.cookie-banner[hidden] { display: none; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-faint); padding: 16px 24px 0; max-width: 1120px; margin: 0 auto; }
.breadcrumbs a { text-decoration: none; color: var(--ink-faint); }

/* ---- Page hero (interior pages) ---- */
.page-hero { background: linear-gradient(135deg, var(--ink) 0%, #33475c 100%); color: #fff; padding: 56px 24px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.82); margin: 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(page-content) { animation-duration: 0.35s; animation-timing-function: ease; }
  ::view-transition-old(page-content) { animation-name: slide-out; }
  ::view-transition-new(page-content) { animation-name: slide-in; }
  main { view-transition-name: page-content; }
  @keyframes slide-out { to { translate: -6vw 0; opacity: 0; } }
  @keyframes slide-in { from { translate: 6vw 0; opacity: 0; } }
}
