@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400&family=Geologica:wght@400;700;900&family=JetBrains+Mono:wght@700&display=swap");

:root {
  --sage-main: #9cb39e;
  --sage-hover: #b5ccb7;
  --sage-bg: rgba(156,179,158,.15);
  --sky-bg: radial-gradient(circle at 50% 50%, #0c1412 0%, #060908 100%);
  --star-color: 255,255,255;
  --star-opacity: .15;
  --cursor-glow-color: rgba(156,179,158,.15);
  --text-dark: #f0f0f0;
  --text-muted: #a0a5ab;
  --bg-page: #0a0e14;
  --bg-card: rgba(255,255,255,.04);
  --nav-bg: rgba(15,20,28,.75);
  --border-color: rgba(255,255,255,.08);
  --card-shadow: 0 8px 30px rgba(0,0,0,.4);
  --btn-text: #0a0e14;
  --ui-bg: transparent;
  --mouse-x: .5;
  --mouse-y: .5;
}

[data-theme="light"] {
  --sage-main: #6b8e70;
  --sage-hover: #527057;
  --sage-bg: #eef2ef;
  --sky-bg: var(--bg-page);
  --star-color: 107,142,112;
  --star-opacity: .35;
  --cursor-glow-color: rgba(107,142,112,.12);
  --text-dark: #3d3d3c;
  --text-muted: #6f6f6d;
  --bg-page: #f7f7f6;
  --bg-card: #ffffff;
  --nav-bg: rgba(247,247,246,.85);
  --border-color: rgba(0,0,0,.08);
  --card-shadow: 0 4px 20px rgba(0,0,0,.05);
  --btn-text: #fff;
  --ui-bg: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

a { color: inherit; }

/* ── background ─────────────────────────────────────────────── */
.global-glow {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999;
  background: radial-gradient(circle 300px at calc(var(--mouse-x) * 100vw) calc(var(--mouse-y) * 100vh), var(--cursor-glow-color), transparent 100%);
  transition: background .5s ease;
}
.night-sky {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; background: var(--sky-bg); pointer-events: none;
  transition: background .6s ease; perspective: 600px; overflow: hidden;
}
.sky-parallax {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translate(calc((var(--mouse-x) - .5) * 25px), calc((var(--mouse-y) - .5) * 25px));
  transition: transform .15s ease-out;
}
.star-rotation {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  animation: sky-drift 300s linear infinite;
}
@keyframes sky-drift { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.stars {
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle, rgba(var(--star-color), var(--star-opacity)) 1px, transparent 1px),
    radial-gradient(circle, rgba(var(--star-color), calc(var(--star-opacity) * .6)) 1px, transparent 1px);
  background-size: 100px 100px, 180px 180px;
  background-position: 0 0, 40px 60px;
  transition: background-image .6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .star-rotation { animation: none; }
  .sky-parallax, .global-glow { transition: none; }
}

/* ── nav ────────────────────────────────────────────────────── */
.nav-container { position: sticky; top: 1rem; z-index: 50; padding: 0 1.5rem; pointer-events: none; }
.navbar {
  max-width: 980px; margin: 0 auto; background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  padding: .6rem .7rem .6rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; pointer-events: auto; transition: background .4s, border-color .4s;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Geologica", sans-serif; font-weight: 900; font-size: 1.1rem;
  color: var(--sage-hover); text-decoration: none; white-space: nowrap;
}
.brand-mark { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a {
  text-decoration: none; color: var(--text-dark);
  font-family: "Geologica", sans-serif; font-weight: 700; font-size: .88rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--sage-main); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-cta {
  background: var(--sage-main); color: var(--btn-text); text-decoration: none;
  padding: .5rem 1.1rem; border-radius: 999px;
  font-family: "Geologica", sans-serif; font-weight: 700; font-size: .85rem;
  transition: background .2s;
}
.nav-cta:hover { background: var(--sage-hover); }
.nav-burger {
  display: none; background: none; border: none; color: var(--text-dark);
  cursor: pointer; padding: 4px; border-radius: 8px;
}

/* theme switch */
.theme-switch { position: relative; display: inline-block; width: 58px; height: 30px; flex: none; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: rgba(255,255,255,.05); transition: .4s; border-radius: 34px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; border: 1px solid var(--border-color);
}
[data-theme="light"] .slider { background-color: rgba(0,0,0,.06); }
.slider:before {
  position: absolute; content: ""; height: 24px; width: 24px; left: 2px; bottom: 2px;
  background-color: transparent; border: 2px solid var(--sage-main);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s;
  border-radius: 50%; box-sizing: border-box; z-index: 2;
  box-shadow: 0 0 8px rgba(156,179,158,.4);
}
input:checked + .slider:before { transform: translateX(28px); }
.icon {
  font-size: 13px; z-index: 1; line-height: 1; user-select: none;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

.mobile-menu {
  max-width: 980px; margin: .6rem auto 0; pointer-events: auto;
  background: var(--nav-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: 20px;
  padding: .75rem 1rem; display: flex; flex-direction: column; gap: .1rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  text-decoration: none; color: var(--text-dark); padding: .6rem .25rem;
  font-family: "Geologica", sans-serif; font-weight: 700; font-size: .95rem;
}
.mobile-menu a:hover { color: var(--sage-main); }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  text-align: center; padding: 4rem 1.5rem 3rem;
  display: flex; flex-direction: column; align-items: center;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
}
.title {
  font-family: "Geologica", sans-serif; font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.03em;
  margin: .5rem 0; color: var(--text-dark); transition: color .4s;
}
.divider { width: 50px; height: 3px; background: var(--sage-main); border-radius: 2px; }
.subtitle {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.3rem;
  margin-top: 1rem; color: var(--text-muted); max-width: 440px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--sage-main); color: var(--btn-text); text-decoration: none;
  font-family: "Geologica", sans-serif; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .2s, transform .1s;
}
.btn:hover { background: var(--sage-hover); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--text-dark); border-color: var(--border-color); }
.btn-ghost:hover { background: var(--sage-bg); border-color: var(--sage-main); }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 3.5rem auto 0; padding: 1.75rem 1.5rem 0;
  border-top: 1px solid var(--border-color); width: 100%;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block; font-family: "Geologica", sans-serif; font-weight: 900;
  font-size: 1.4rem; color: var(--sage-main);
}
.hero-stats span { font-size: .78rem; color: var(--text-muted); }

/* ── section head ───────────────────────────────────────────── */
.section-head { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem .5rem; }
.section-head h2 {
  font-family: "Geologica", sans-serif; font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin-top: .3rem;
}

/* ── grid & cards ───────────────────────────────────────────── */
.store-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 4rem;
  list-style: none; scroll-margin-top: 6rem;
}
.card {
  background: var(--bg-card); border-radius: 20px; overflow: hidden;
  box-shadow: var(--card-shadow); border: 1px solid var(--border-color);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, background .4s, border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.img-wrap { position: relative; width: 100%; aspect-ratio: 1/1; background: rgba(0,0,0,.05); overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .product-img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--sage-main); color: var(--btn-text);
  font-family: "JetBrains Mono", monospace; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 999px;
}
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.card-header h3 {
  font-family: "Geologica", sans-serif; font-weight: 700; font-size: 1.12rem;
  line-height: 1.2; color: var(--text-dark);
}
.price { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--text-dark); font-size: .95rem; white-space: nowrap; }
.description { font-size: .85rem; color: var(--text-muted); line-height: 1.45; }

.variants { margin-top: .25rem; }
.variant-label-title {
  font-family: "JetBrains Mono", monospace; font-size: .62rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: .45rem;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.v-btn input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.v-ui {
  display: flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--border-color); border-radius: 99px;
  font-size: .75rem; font-weight: 500; cursor: pointer; transition: all .2s;
  color: var(--text-muted); background: var(--ui-bg);
}
.v-btn input[type="radio"]:checked + .v-ui { border-color: var(--sage-main); background: var(--sage-bg); color: var(--text-dark); }
.v-btn input[type="radio"]:focus-visible + .v-ui { outline: 2px solid var(--sage-main); outline-offset: 2px; }
.v-btn:hover input:not(:checked) + .v-ui { border-color: var(--sage-main); }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(128,128,128,.35); flex: none; }
.note { font-family: "JetBrains Mono", monospace; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage-main); }

.text-input, .field input, .field select, .field textarea {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--border-color);
  border-radius: 10px; font-family: inherit; font-size: .88rem; outline: none;
  transition: border-color .2s; background: var(--ui-bg); color: var(--text-dark);
}
.text-input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage-main); }
.field select option { background: var(--bg-page); color: var(--text-dark); }
.card-cta { margin-top: auto; width: 100%; }

/* ── order form ─────────────────────────────────────────────── */
.order-section {
  max-width: 760px; margin: 0 auto 5rem; padding: 2.5rem 1.5rem;
  scroll-margin-top: 6rem;
}
.order-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 24px; padding: 2rem 1.75rem; box-shadow: var(--card-shadow);
}
.order-card h2 {
  font-family: "Geologica", sans-serif; font-weight: 900;
  font-size: 1.7rem; margin: .4rem 0 .6rem; text-align: center;
}
.order-intro { color: var(--text-muted); font-size: .9rem; line-height: 1.6; text-align: center; max-width: 46ch; margin: 0 auto 1.75rem; }
.order-intro strong { color: var(--sage-main); }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .78rem; font-weight: 700; color: var(--text-muted); font-family: "Geologica", sans-serif; }
.field-wide { grid-column: 1 / -1; }
.order-note { grid-column: 1 / -1; text-align: center; font-size: .75rem; color: var(--text-muted); }
@media (max-width: 560px) { .order-form { grid-template-columns: 1fr; } }

/* ── inner page header (mirrors the home hero) ──────────────── */
.page-head {
  text-align: center; padding: 3.5rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
}
.page-title {
  font-family: "Geologica", sans-serif; font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -.03em;
  margin: .5rem 0 .8rem; color: var(--text-dark);
}
.page-sub {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 1.2rem; color: var(--text-muted); max-width: 48ch; margin-top: 1rem;
}

.legal-nav {
  display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: 2rem;
}
.chip {
  text-decoration: none; font-family: "JetBrains Mono", monospace;
  font-size: .66rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); border: 1px solid var(--border-color);
  padding: .4rem .8rem; border-radius: 999px; transition: all .2s;
}
.chip:hover { border-color: var(--sage-main); color: var(--text-dark); }
.chip-on { background: var(--sage-bg); border-color: var(--sage-main); color: var(--text-dark); }

.paper {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 24px; padding: 2.25rem 2rem; box-shadow: var(--card-shadow);
}
.legal-foot { text-align: center; font-size: .78rem; color: var(--text-muted); margin-top: 1.5rem; }
.legal-foot a { color: var(--sage-main); }

/* ── about page ─────────────────────────────────────────────── */
.about-split {
  max-width: 1000px; margin: 0 auto; padding: 1rem 1.5rem 0;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
}
.about-split p { color: var(--text-muted); line-height: 1.75; font-size: .95rem; margin-bottom: 1rem; }
.about-split img { width: 100%; border-radius: 24px; border: 1px solid var(--border-color); display: block; }
@media (max-width: 760px) { .about-split { grid-template-columns: 1fr; } }

.value-grid {
  max-width: 1000px; margin: 3rem auto 0; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.1rem;
}
.value-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 18px; padding: 1.4rem;
}
.value-card h3 {
  font-family: "Geologica", sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text-dark); margin-bottom: .45rem;
}
.value-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }
.value-num {
  font-family: "JetBrains Mono", monospace; font-size: .65rem;
  color: var(--sage-main); letter-spacing: .1em; display: block; margin-bottom: .5rem;
}
.cta-band {
  max-width: 1000px; margin: 3.5rem auto 4rem; padding: 2.25rem 1.5rem;
  text-align: center; border-top: 1px solid var(--border-color);
}
.cta-band h2 { font-family: "Geologica", sans-serif; font-weight: 900; font-size: 1.5rem; margin-bottom: .6rem; }
.cta-band p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.4rem; }

/* ── legal / text pages ─────────────────────────────────────── */
.legal { max-width: 800px; margin: 0 auto; padding: .5rem 1.5rem 4rem; }
.legal-body { color: var(--text-muted); font-size: .95rem; line-height: 1.75; }
.legal-body p { margin-bottom: 1rem; }
.legal-body h2 {
  font-family: "Geologica", sans-serif; font-weight: 700; font-size: 1.15rem;
  color: var(--text-dark); margin: 2rem 0 .6rem;
}
.legal-body ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-body li { margin-bottom: .35rem; }
.legal-body a { color: var(--sage-main); text-decoration: underline; }
.legal-body a:hover { color: var(--sage-hover); }
.legal-body em { color: var(--text-muted); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 18px; padding: 1.4rem;
}
.info-card h2 { font-family: "Geologica", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-dark); margin-bottom: .5rem; }
.info-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.info-card a { color: var(--sage-main); }

/* ── footer ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border-color); background: var(--bg-card); margin-top: 2rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col h3 {
  font-family: "JetBrains Mono", monospace; font-size: .65rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--sage-main); margin-bottom: .3rem;
}
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .85rem; }
.footer-col a:hover { color: var(--sage-main); }
.footer-brand p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; max-width: 34ch; margin-top: .5rem; }
.footer-bottom {
  border-top: 1px solid var(--border-color); max-width: 1200px; margin: 0 auto;
  padding: 1.2rem 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: space-between; font-size: .75rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--sage-main); }
@media (max-width: 780px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
