:root {
  --cocoa: #4b3d34;
  --cocoa-light: #69584c;
  --oyster: #eee7dd;
  --slate-blue: #34485c;
  --sand: #d9c7b2;
  --white: #ffffff;
  --line: #d8cabb;
  --accent-oyster: #cfb49a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--cocoa);
  background: var(--oyster);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: .65rem max(calc((100vw - 1180px) / 2), 3vw);
  border-bottom: 1px solid var(--line);
  background: rgba(238, 231, 221, .96);
  backdrop-filter: blur(8px);
}

.brand-logo { display: flex; align-items: center; gap: .45rem; color: var(--cocoa); font-family: "Archivo Black", sans-serif; font-size: 1rem; text-decoration: none; }
.logo-img, .footer-logo { width: 47px; height: 47px; object-fit: contain; }
.topbar nav { display: flex; align-items: center; gap: 1.35rem; }
.topbar nav a { color: var(--cocoa-light); font-size: .9rem; font-weight: 700; text-decoration: none; }
.topbar nav a:hover { color: var(--cocoa); }
.topbar nav .nav-candles { padding: .56rem .76rem; border: 1px solid var(--cocoa); color: var(--cocoa); }
.topbar .nav-cta { padding: .62rem .86rem; color: var(--white); background: var(--cocoa); }

.hero {
  position: relative;
  display: flex;
  min-height: 590px;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: var(--slate-blue);
  background-image: repeating-linear-gradient(135deg, transparent 0 44px, rgba(255,255,255,.06) 45px 46px);
}

.hero-content, .hero-index { position: relative; z-index: 1; }
.hero-content { width: min(1180px, 92vw); margin: 0 auto; }
.hero-logo {
  position: absolute;
  right: max(calc((100vw - 1180px) / 2), 4vw);
  bottom: 5.5rem;
  width: min(36vw, 520px);
  height: auto;
  opacity: .27;
  z-index: 0;
}
.eyebrow { margin: 0 0 .8rem; color: var(--cocoa-light); font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { color: #ecd7c0; }
h1, h2 { font-family: "Archivo Black", sans-serif; }
h1 { max-width: 800px; margin: 0; font-size: clamp(3rem, 6.8vw, 5.8rem); line-height: .98; }
.hero-content > p:not(.eyebrow) { max-width: 53ch; margin: 1.2rem 0 0; color: #edf2f3; font-size: 1.1rem; line-height: 1.7; }
.hero-index { position: absolute; right: max(calc((100vw - 1180px) / 2), 4vw); bottom: 1.5rem; color: #d7e2e6; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }

.button { display: inline-flex; min-height: 46px; align-items: center; gap: .5rem; justify-content: center; margin-top: 1.5rem; padding: .72rem 1rem; border: 0; border-radius: 4px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { color: var(--white); background: var(--cocoa); }
.button-primary:hover { background: #342a24; }
.copy-panel .button-candles {
  border: 1px solid var(--cocoa);
  color: var(--cocoa);
  background: transparent;
}

.copy-panel .button-candles:hover {
  color: var(--cocoa);
  background: var(--sand);
}

.content-section, .signup-section, .candles-section { width: min(1180px, 92vw); margin-right: auto; margin-left: auto; }
.content-section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 1.5rem; }
.section-heading h2, .signup-intro h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; }
.section-heading > p:last-child, .signup-intro > p:last-child { color: var(--cocoa-light); line-height: 1.65; }
.copy-panel { padding: 1.7rem 2rem; border-left: 4px solid var(--accent-oyster); background: #fffcf7; }
.about-section .copy-panel { border-left-color: var(--sand); }
.copy-panel p { max-width: 80ch; margin: .7rem 0 0; color: var(--cocoa-light); line-height: 1.7; }
.copy-panel p:first-child { margin-top: 0; }
.copy-panel a, footer a { color: #a84027; font-weight: 700; }
.copy-panel .no-cost { color: var(--cocoa); font-weight: 700; }

.signup-section { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 3rem; padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.signup-intro { max-width: 380px; }
.signup-form { display: grid; gap: .85rem; padding: 2rem; border-top: 4px solid var(--accent-oyster); background: #fffcf7; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
label { display: block; margin-bottom: .35rem; font-weight: 700; }
.optional { color: #536661; font-weight: 400; }
input, select, textarea { width: 100%; min-height: 45px; padding: .65rem; border: 1px solid var(--sand); border-radius: 4px; color: var(--cocoa); font: inherit; background: var(--white); }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(207, 180, 154, .45); border-color: var(--accent-oyster); }
.signup-form .button { width: fit-content; margin-top: .2rem; }
.form-status { min-height: 1.5rem; margin: 0; color: var(--cocoa); font-weight: 700; }

.candles-section { padding: 4.5rem 0; }
.candles-heading > p:last-child { max-width: 70ch; }
.candle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.candle-card { overflow: hidden; background: #fffcf7; box-shadow: 0 12px 28px rgba(75, 61, 52, .13); }
.candle-card:first-child { grid-column: 1 / span 1; }
.candle-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.candle-card > div { padding: 1rem; }
.candle-card h3 { margin: 0 0 .6rem; font-size: 1.08rem; }
details { border-top: 1px solid var(--line); }
summary { padding: .7rem 0; color: #a84027; font-weight: 700; cursor: pointer; }
details h4 { margin: 0 0 .65rem; }
details p { margin: 0 0 .65rem; color: var(--cocoa-light); line-height: 1.6; }

footer { display: flex; min-height: 100px; align-items: center; justify-content: center; gap: .7rem; padding: 1.5rem 4vw; color: #fff5e9; background: var(--cocoa); font-size: .9rem; }
footer .footer-logo { width: 36px; height: 36px; }

@media (max-width: 860px) {
  .signup-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .signup-intro { max-width: 680px; }
  .candle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: .5rem; padding: .6rem 5vw .8rem; }
  .topbar nav { gap: .65rem 1rem; flex-wrap: wrap; }
  .topbar nav a { font-size: .8rem; }
  .hero { min-height: 530px; }
  .hero-content { width: 90vw; }
  .hero-logo { right: -9vw; bottom: 5rem; width: 76vw; opacity: .2; }
  .hero-index { display: none; }
  .content-section, .signup-section, .candles-section { width: 90vw; }
  .content-section, .signup-section, .candles-section { padding: 3rem 0; }
  .copy-panel, .signup-form { padding: 1.3rem; }
  .field-pair, .candle-grid { grid-template-columns: 1fr; }
  .candle-card img { aspect-ratio: 16 / 9; }
  footer { align-items: flex-start; flex-direction: column; }
}
