/* ==========================================================
   The Untethered Garden — site styles
   Colors and fonts live in :root so they're easy to change.
   ========================================================== */

:root {
  --cream: #FBF7EF;
  --moss: #3F4F36;
  --moss-dark: #2E3A27;
  --sage: #E4E8DC;
  --sand: #ECE3D0;
  --blush: #F3E1D6;
  --gold: #D2AE63;
  --gold-soft: #F7EEDB;
  --terracotta: #9A5536;
  --text-soft: #4E5845;
  --line: #E2D8C2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--moss);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--moss); }
a:hover { color: var(--terracotta); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1; }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 26px; }
p { margin: 0; text-wrap: pretty; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta); }
.lead { font-size: 18px; color: var(--text-soft); }
.soft { color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid var(--moss);
  background: var(--moss); color: var(--cream); text-align: center;
}
.btn:hover { background: var(--moss-dark); color: var(--cream); }
.btn-outline { background: transparent; color: var(--moss); }
.btn-outline:hover { background: var(--moss); color: var(--cream); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--moss-dark); }
.btn-gold:hover { background: #E0BE77; color: var(--moss-dark); }
.btn-light { background: transparent; border-color: #E3E8DB; color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--moss); }
.btn-small { padding: 11px 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 62px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav .btn { padding: 11px 22px; font-size: 15px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 40px; }
.bg-sage { background: var(--sage); }
.bg-moss { background: var(--moss); color: var(--cream); }
.bg-moss .kicker { color: var(--gold); }
.bg-moss .soft, .bg-moss .lead { color: #E3E8DB; }
.bg-blush { background: var(--blush); }

/* Hero */
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.arch {
  width: 100%; max-width: 470px; aspect-ratio: 4 / 5; background: var(--moss);
  border-radius: 240px 240px 24px 24px; display: flex; align-items: center; justify-content: center;
}
.arch img { width: 72%; margin-top: 8%; }

/* Cards and grids */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--cream); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 28px; }

/* Journals */
.book { display: flex; flex-direction: column; gap: 16px; }
.book-cover { aspect-ratio: 2 / 3; border-radius: 6px; padding: 18px; display: flex; box-shadow: 0 18px 30px rgba(0,0,0,0.25); }
.book-cover .frame { flex: 1; border: 1.5px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px; }
.book-cover .label { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; color: var(--gold); }
.book-cover .title { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1; }
.book-cover .seasons { font-family: var(--serif); font-style: italic; font-size: 15px; }
.cover-1 { background: #4B5C41; } .cover-1 .seasons { color: #E9E1CC; }
.cover-2 { background: #4E2C40; } .cover-2 .seasons { color: #EEDFE4; }
.cover-3 { background: #24484A; } .cover-3 .seasons { color: #DCE9E4; }

/* Candles */
.product { display: flex; flex-direction: column; gap: 12px; }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.product .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product .price { font-weight: 700; white-space: nowrap; }
.product .btn { margin-top: auto; }

/* Retreat teaser */
.teaser { display: flex; flex-wrap: wrap; border-radius: 24px; overflow: hidden; background: var(--sand); }
.teaser img { flex: 1 1 380px; min-width: 0; min-height: 260px; object-fit: cover; }
.teaser-text { flex: 1 1 380px; min-width: 0; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; color: var(--cream); background: var(--terracotta); padding: 6px 14px; border-radius: 999px; }

/* Newsletter */
.signup { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.signup form { width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.signup input[type="email"] { flex: 1 1 260px; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #C9A38C; background: var(--cream); font: inherit; color: var(--moss); }
.signup button { height: 52px; padding: 0 28px; border-radius: 999px; border: none; background: var(--moss); color: var(--cream); font: inherit; font-weight: 700; cursor: pointer; }
.signup-msg { min-height: 1.4em; font-weight: 700; color: var(--moss); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Blog ---------- */
.blog-hero { padding: 72px 0 40px; text-align: center; }
.blog-hero .narrow { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--moss); }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.post-card .date { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta); }
.post-card:hover h3 { color: var(--terracotta); }

.post { padding: 64px 0 88px; }
.post-header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.post-header h1 { font-size: clamp(38px, 6vw, 60px); }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; margin-bottom: 36px; }
.post-body { font-size: 18px; color: #3F4A37; display: flex; flex-direction: column; gap: 20px; }
.post-body h2 { font-size: 34px; margin-top: 16px; }
.post-body ul, .post-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.post-body blockquote { margin: 8px 0; padding: 18px 24px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 14px 14px 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--moss); }
.post-body img { border-radius: 16px; }
.back-link { display: inline-block; margin-top: 40px; font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-dark); color: #E3E8DB; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.site-footer img { height: 130px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.site-footer a { color: #E3E8DB; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #5E6E52; display: flex; align-items: center; justify-content: center; }
.copyright { border-top: 1px solid #445238; }
.copyright p { max-width: 1200px; margin: 0 auto; padding: 18px 24px; font-size: 13px; color: #B9C2AF; }

/* Candle cards open a pop-out */
.product-open { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.product-open:hover h3 { color: var(--terracotta); }
.product-open:focus-visible, .modal-close:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.product button.btn { margin-top: auto; cursor: pointer; font: inherit; font-weight: 700; }

.candle-modal { border: 0; padding: 0; border-radius: 24px; width: calc(100% - 32px); max-width: 940px; max-height: calc(100vh - 32px); overflow: auto; background: var(--cream); color: var(--moss); }
.candle-modal::backdrop { background: rgba(30, 38, 26, 0.6); }
.modal-inner { display: flex; flex-wrap: wrap; }
.modal-inner > img { flex: 1 1 360px; min-width: 0; aspect-ratio: 1 / 1; object-fit: cover; }
.modal-info { flex: 1 1 360px; min-width: 0; padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.modal-info h2 { font-size: clamp(36px, 5vw, 48px); }
.modal-price { font-size: 22px; font-weight: 700; }
.modal-label { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sage); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.specs dt { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta); }
.specs dd { margin: 2px 0 0; }
.modal-info .btn { align-self: flex-start; }
.fine { font-size: 13px; color: var(--text-soft); }
.modal-close { position: sticky; top: 14px; z-index: 2; display: block; margin: 14px 14px -56px auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); color: var(--moss); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

/* Journal cards and pop-outs */
.book-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 18px 30px rgba(0,0,0,0.3); }
.book .product-open:hover h3 { color: var(--gold); }
.book-modal { max-width: 1000px; }
.gallery { flex: 1 1 380px; min-width: 0; background: var(--sand); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gallery-stage { position: relative; width: 100%; display: flex; justify-content: center; padding: 0 28px; }
.gallery-main { height: min(58vh, 540px); width: auto; max-width: 100%; aspect-ratio: 2 / 3; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,0.18); background: var(--cream); }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); color: var(--moss); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.gal-prev { left: 0; } .gal-next { right: 0; }
.gal-btn:focus-visible, .thumbs button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.gallery-caption { font-size: 14px; font-weight: 700; }
.thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; }
.thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--terracotta); }
.thumbs img { width: 46px; height: 69px; object-fit: cover; border-radius: 2px; }

/* Candle sizes, sold out, details */
.img-wrap { position: relative; display: block; }
.soldout-badge { position: absolute; top: 12px; left: 12px; background: var(--cream); color: var(--terracotta); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); color: var(--moss); cursor: pointer; }
.size[aria-pressed="true"] { border-color: var(--moss); background: var(--sage); }
.size:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.alert { background: var(--blush); border-left: 3px solid var(--terracotta); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: 15px; color: #5A3322; }
.alert a { color: #5A3322; font-weight: 700; }
.btn[disabled] { background: #B8BDB0; border-color: #B8BDB0; color: var(--cream); cursor: not-allowed; align-self: flex-start; }
.modal-info details { border-top: 1px solid var(--line); padding-top: 12px; }
.modal-info summary { cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.details-body { padding-top: 10px; font-size: 15px; color: var(--text-soft); }
.details-body h4 { margin: 10px 0 4px; font-family: var(--sans); font-size: 14px; color: var(--moss); }
.details-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Reviews */
.reviews { padding-top: 0; }
.review-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.review { margin: 0; background: var(--sage); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.stars { color: var(--gold); font-size: 20px; letter-spacing: 3px; }
.review blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.35; color: var(--moss); }
.review figcaption { margin-top: auto; font-size: 14px; color: var(--text-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.review-product { background: var(--cream); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }

/* Journal bundle */
.bundle { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; background: var(--moss-dark); border: 1.5px solid rgba(210, 174, 99, 0.5); border-radius: 24px; padding: 40px; }
.bundle-covers { flex: 1 1 320px; min-width: 0; position: relative; height: 300px; }
.bundle-covers img { position: absolute; left: 50%; top: 40px; width: 150px; margin-left: -75px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35); }
.bundle-covers img:nth-child(1) { transform: translateX(-95px) rotate(-8deg); }
.bundle-covers img:nth-child(2) { top: 18px; z-index: 2; }
.bundle-covers img:nth-child(3) { transform: translateX(95px) rotate(8deg); }
.bundle-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bundle h3 { font-size: clamp(32px, 4vw, 46px); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--moss); background: #FFFDF8; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sage); border-color: var(--moss); }
.contact-form .btn { align-self: flex-start; cursor: pointer; font: inherit; font-weight: 700; }
.form-msg { min-height: 1.4em; font-weight: 700; }
.product button.btn-small { font-size: 14px; }

/* Mobile menu */
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--cream); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--moss); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
@media (max-width: 760px) {
  .site-header .container { flex-wrap: wrap; }
  .logo img { height: 52px; }
  .nav-toggle { display: flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 6px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-top: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 12px; border-top: 0; padding: 14px 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle span { transition: none; } }

@media (max-width: 640px) {
  .bundle { padding: 28px 20px; }
  .bundle-covers { height: 230px; }
  .bundle-covers img { width: 112px; margin-left: -56px; top: 30px; }
  .bundle-covers img:nth-child(1) { transform: translateX(-70px) rotate(-8deg); }
  .bundle-covers img:nth-child(3) { transform: translateX(70px) rotate(8deg); }

  .gallery-main { height: auto; width: 78%; }

  section { padding: 64px 0; }
  .nav { gap: 16px; font-size: 14px; }
  .teaser-text { padding: 28px; }
}
