/* Night Sky Above */
:root {
  --sage: #5c7a6b;
  --sage-dark: #4a6357;
  --sage-light: #8fa897;
  --sand: #e8e0d4;
  --sand-dark: #d4c9ba;
  --cream: #faf8f5;
  --charcoal: #2c3330;
  --muted: #6b736f;
  --terracotta: #c4775a;
  --white: #ffffff;
  --border: #ddd6cc;
  --error: #b54a4a;
  --font-serif: 'Literata', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --radius: 4px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--terracotta); }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

.wrap { width: min(1100px, 90vw); margin: 0 auto; }
.wrap.narrow { max-width: 680px; }

.hidden { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(44, 51, 48, 0.06);
}
.header-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 5vw;
  height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--charcoal); font-weight: 600; font-size: 15px;
}
.brand-mark { width: 28px; height: 28px; color: var(--sage); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--sage-dark); }
.cart-btn {
  position: relative; color: var(--charcoal); display: flex; padding: 6px;
}
.cart-badge {
  position: absolute; top: 0; right: -2px;
  background: var(--terracotta); color: var(--white);
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--charcoal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--sage); color: var(--white); border-color: var(--sage); }
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn-full { width: 100%; }

/* Hero — full-bleed constellation */
.hero-sky {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  background: #8fa897;
  overflow: hidden;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-starmap {
  position: absolute;
  top: 50%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: min(1040px, 96vw);
  height: auto;
  opacity: 1;
  filter: brightness(1.12) contrast(1.18) saturate(1.05);
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 42%, transparent 88%);
  mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 42%, transparent 88%);
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: min(720px, 78vw);
  height: min(720px, 78vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 62%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 24, 22, 0.92) 0%, rgba(18, 24, 22, 0.62) 30%, rgba(18, 24, 22, 0.08) 52%, rgba(18, 24, 22, 0.18) 100%),
    radial-gradient(ellipse 55% 70% at 16% 42%, rgba(12, 16, 15, 0.5) 0%, transparent 62%),
    linear-gradient(to bottom, rgba(18, 24, 22, 0.15) 0%, rgba(18, 24, 22, 0.45) 82%, rgba(14, 18, 17, 0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 90vw);
  margin: 0 auto;
  padding: 56px 0 88px;
}
.hero-sky .eyebrow { color: var(--sage-light); }
.hero-sky h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 20px;
  color: #faf8f5;
  max-width: 11ch;
}
.hero-sky h1 em { font-style: italic; color: var(--sand); }
.hero-sky .hero-text {
  color: rgba(250, 248, 245, 0.78);
  max-width: 480px;
  margin-bottom: 28px;
  font-size: 16px;
}
.hero-sky .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-sky .btn-ghost {
  color: #faf8f5;
  border-color: rgba(250, 248, 245, 0.35);
  background: rgba(250, 248, 245, 0.06);
}
.hero-sky .btn-ghost:hover {
  border-color: #faf8f5;
  color: #faf8f5;
  background: rgba(250, 248, 245, 0.12);
}
.hero-sky .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(250, 248, 245, 0.62);
}
.hero-sky .hero-stats li {
  padding-left: 14px;
  border-left: 2px solid rgba(143, 168, 151, 0.55);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
  font-weight: 600;
}

/* Story */
.story { padding: 80px 0; background: var(--white); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.story-block { padding-top: 8px; border-top: 2px solid var(--sand-dark); }
.step-num { font-size: 11px; letter-spacing: 0.1em; color: var(--terracotta); font-weight: 700; }
.story-block h2 { font-family: var(--font-serif); font-size: 1.35rem; margin: 12px 0 10px; }
.story-block p { color: var(--muted); font-size: 14px; }

/* How */
.how { padding: 80px 0; background: var(--sand); }
.section-heading {
  font-family: var(--font-serif); font-size: 1.75rem;
  text-align: center; margin-bottom: 40px;
}
.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: how;
  list-style: none;
}
.how-steps li {
  background: var(--cream); padding: 28px; border-radius: var(--radius);
  counter-increment: how;
}
.how-steps li::before {
  content: counter(how);
  display: block; font-size: 28px; font-family: var(--font-serif);
  color: var(--sage-light); margin-bottom: 12px;
}
.how-steps strong { display: block; margin-bottom: 8px; font-size: 15px; }
.how-steps span { font-size: 13px; color: var(--muted); }

/* Design / product */
.design { padding: 80px 0; background: var(--white); }
.design-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.design-preview { position: sticky; top: calc(var(--header-h) + 24px); }
.pill {
  display: inline-block; background: var(--terracotta); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.preview-caption { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
#previewImage { transition: opacity 0.25s ease; }
#previewImage.is-switching { opacity: 0.45; }
.design-form-wrap h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 8px; }
.product-lead { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.price-display { margin-bottom: 16px; font-size: 15px; }
.price-display del { color: var(--muted); margin-right: 8px; }
.price-display strong { font-size: 22px; color: var(--charcoal); }
.price-from { font-size: 13px; color: var(--muted); margin-right: 6px; }
.feature-list { margin-bottom: 12px; }
.feature-list li {
  font-size: 13px; color: var(--muted); padding: 4px 0 4px 18px;
  position: relative;
}
.feature-list li::before { content: '·'; position: absolute; left: 4px; color: var(--sage); }
.delivery-note { font-size: 12px; color: var(--sage-dark); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field legend, .field > label, .field-row > .field > label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--cream);
}
.field input:focus, .field select:focus { outline: 2px solid var(--sage-light); border-color: var(--sage); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { text-align: center; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
  display: block; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid transparent; margin: 0 auto 4px;
}
.swatch input:checked + span { border-color: var(--charcoal); box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--charcoal); }
.swatch small { font-size: 10px; color: var(--muted); }

.format-list { display: flex; flex-direction: column; gap: 8px; }
.format-card {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}
.format-card:has(input:checked) { border-color: var(--sage); background: rgba(92, 122, 107, 0.06); }
.format-card input {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--sage);
}
.format-name { font-size: 13px; line-height: 1.4; min-width: 0; }
.format-price { font-weight: 600; font-size: 14px; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); }
.qty-btn { background: none; border: none; padding: 8px 14px; cursor: pointer; font-size: 16px; }
.qty input { width: 48px; text-align: center; border: none; background: transparent; padding: 8px 0; }

.form-error { color: var(--error); font-size: 13px; margin-bottom: 12px; padding: 10px; background: #fdf0f0; border-radius: var(--radius); }

/* Reviews */
.reviews { padding: 80px 0; background: var(--cream); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-grid blockquote {
  background: var(--white); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 14px;
}
.review-grid footer { margin-top: 12px; font-size: 12px; color: var(--muted); font-style: normal; }

/* FAQ inline */
.faq-inline { padding: 80px 0; }
.faq-inline details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-inline summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq-inline p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.faq-more { margin-top: 20px; font-size: 14px; }

/* Closing CTA */
.closing-cta {
  padding: 64px 0; text-align: center;
  background: var(--charcoal); color: var(--sand);
}
.closing-cta h2 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 10px; color: var(--white); }
.closing-cta p { margin-bottom: 24px; font-size: 14px; }
.closing-cta .btn-primary { background: var(--sand); color: var(--charcoal); border-color: var(--sand); }
.closing-cta .btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--charcoal); }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--sand); padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px;
  max-width: 1100px; margin: 0 auto; padding: 0 5vw 40px;
}
.footer-logo { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); margin-bottom: 12px; }
.footer-tagline, .footer-meta { font-size: 13px; color: #a8aea9; margin-bottom: 12px; line-height: 1.7; }
.footer-meta a { color: var(--sand); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h6 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links a { color: #a8aea9; font-size: 13px; }
.footer-links a:hover { color: var(--white); }
.footer-note { font-size: 12px; color: #a8aea9; margin-bottom: 10px; }
.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; padding: 10px; border: 1px solid #4a524e; border-radius: var(--radius);
  background: #3a423e; color: var(--white); font-size: 13px;
}
.footer-newsletter button {
  padding: 10px 16px; background: var(--sage); color: var(--white);
  border: none; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid #4a524e; padding: 20px 5vw;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; font-size: 12px; color: #8a918c;
}
.pay-icons { display: flex; gap: 12px; font-size: 11px; }

/* Inner pages */
.inner-hero { padding: 40px 0 24px; background: var(--sand); }
.inner-hero h1 { font-family: var(--font-serif); font-size: 2rem; }
.inner-content { padding: 48px 0 80px; }
.prose h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 28px 0 12px; }
.prose p, .prose li { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.prose details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.contact-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; font-size: 14px; }
.contact-form { margin-top: 32px; }

/* Cart */
.empty-state { text-align: center; padding: 48px 0; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.cart-line {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.cart-line img { border-radius: var(--radius); background: var(--sand); }
.cart-line h3 { font-size: 15px; margin-bottom: 4px; }
.cart-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.cart-line-price { text-align: right; font-weight: 600; }
.link-remove { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; margin-top: 8px; }
.link-remove:hover { color: var(--error); }
.cart-aside {
  background: var(--white); border: 1px solid var(--border);
  padding: 24px; border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-aside h2 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-line.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.summary-line.discount { color: var(--sage-dark); }
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.coupon-note { font-size: 12px; margin-bottom: 12px; }
.coupon-note.ok { color: var(--sage-dark); }
.coupon-note.err { color: var(--error); }
.back-link { display: block; text-align: center; margin-top: 12px; font-size: 13px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.checkout-form fieldset { border: none; margin-bottom: 28px; }
.checkout-form legend { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; }
.radio-line { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.pay-note { font-size: 13px; color: var(--muted); }
.checkout-aside {
  background: var(--white); border: 1px solid var(--border);
  padding: 24px; border-radius: var(--radius);
}
.checkout-aside h2 { font-family: var(--font-serif); margin-bottom: 16px; }
.checkout-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.checkout-line img { border-radius: var(--radius); }
.checkout-line p { color: var(--muted); font-size: 12px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* Success */
.success-panel { text-align: center; padding: 64px 0; }
.success-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sage);
  color: var(--white); font-size: 24px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-panel h1 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 12px; }
.order-id { margin: 16px 0; font-size: 14px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--charcoal); color: var(--white); padding: 12px 24px;
  border-radius: var(--radius); font-size: 14px; opacity: 0; transition: all 0.3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-sky { min-height: auto; }
  .hero-starmap {
    left: 50%;
    width: min(820px, 118vw);
    top: 42%;
    opacity: 1;
    filter: brightness(1.1) contrast(1.15);
  }
  .hero-glow { left: 50%; top: 42%; }
  .hero-gradient {
    background:
      linear-gradient(to bottom, rgba(18, 24, 22, 0.78) 0%, rgba(18, 24, 22, 0.5) 38%, rgba(14, 18, 17, 0.82) 100%),
      radial-gradient(ellipse 100% 65% at 50% 35%, rgba(12, 16, 15, 0.25) 0%, transparent 72%);
  }
  .hero-content { padding-bottom: 64px; }
  .hero-sky h1 { max-width: none; }
  .design-layout, .story-grid, .how-steps, .review-grid,
  .cart-grid, .checkout-grid, .footer-inner, .footer-links { grid-template-columns: 1fr; }
  .design-preview { position: static; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 201;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 5vw;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(44, 51, 48, 0.08);
    gap: 12px;
  }
  .site-nav.open { display: flex; }
  .contact-blocks { grid-template-columns: 1fr; }
  .field-row.three { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
