/* ============================================================================
   Joy Candle Co. — Teaser landing site
   Static, fully responsive. Built from the Joy Candle Co. Design System tokens.
   "Cleaner Candles. Brighter Impact."
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------
   DM Sans + Le Jour Serif are the real brand faces. "Le Jour Script" (provided
   in the asset pack) is used for the engraved-lid lettering. */
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Le Jour Serif";
  src: url("assets/fonts/LeJourSerif.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Le Jour Script";
  src: url("assets/fonts/LeJourScript.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Canvas & ink */
  --white: #ffffff;
  --cream: #f6f2ec;
  --sand: #ece4d8;
  --ink: #2c2722;
  --ink-soft: #6b6258;
  --ink-faint: #a89d8e;

  /* Scent palette */
  --camel: #b19478;        --camel-deep: #8a6f55;
  --sage: #829d6f;         --sage-deep: #5f774a;
  --slate: #537b82;        --slate-deep: #21373b;
  --terracotta: #c66946;   --terracotta-deep: #9c4d30;
  --clay: #aa5042;         --clay-deep: #823a2f;

  /* Brand accent */
  --forest: #536241;       --forest-deep: #3a4630;       --forest-soft: #8b9a6b;

  /* Tonal washes */
  --wash-camel: #f3ede5;
  --wash-sage: #eef1e7;
  --wash-slate: #e9eeef;
  --wash-terracotta: #f8ece5;
  --wash-clay: #f6e9e5;
  --wash-forest: #ebeee3;

  /* Borders */
  --border-hair: #e7ded2;
  --border-soft: #d9cebd;
  --border-strong: #c2b39e;

  /* Type */
  --font-serif: "Le Jour Serif", "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Le Jour Script", "Dancing Script", "Le Jour Serif", cursive;
  --font-display: var(--font-serif);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows — low, warm, diffuse */
  --shadow-sm: 0 2px 8px rgba(44, 39, 34, 0.06);
  --shadow-md: 0 10px 28px rgba(44, 39, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(44, 39, 34, 0.12);
  --shadow-focus: 0 0 0 3px rgba(139, 154, 107, 0.45);

  /* Layout & motion */
  --container: 1200px;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

a { color: var(--forest); text-decoration: none; transition: color var(--dur-fast) var(--ease-soft); }
a:hover { color: var(--forest-deep); }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; width: 100%; }

/* ---- Shared type treatments --------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--forest { color: var(--forest); }
.eyebrow--light { color: rgba(255, 255, 255, 0.72); }

.display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.script { font-family: var(--font-script); font-weight: 400; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 17px 36px; font-size: 15px; }
.btn--sm { padding: 9px 18px; font-size: 13px; }

.btn--primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn--primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); box-shadow: var(--shadow-md); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--ink); background: var(--cream); }

.btn--ghost { background: transparent; color: var(--forest); border-color: transparent; letter-spacing: 0.06em; }
.btn--ghost:hover { color: var(--forest-deep); background: var(--wash-forest); }

.btn--on-forest { background: #fff; color: var(--forest-deep); border-color: #fff; }
.btn--on-forest:hover { background: var(--cream); border-color: var(--cream); box-shadow: var(--shadow-md); }

/* ---- Announcement bar ---------------------------------------------------- */
.announce {
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Header -------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hair);
}
.header__inner {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.header__nav { display: flex; gap: 28px; }
.navlink {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1.5px solid transparent; transition: color var(--dur-fast) var(--ease-soft);
}
.navlink:hover { color: var(--ink); }
.wordmark {
  background: none; border: none; cursor: pointer; justify-self: center;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; font-size: 16px; color: var(--ink); white-space: nowrap;
}
.header__cta { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header__soon {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--white); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 36%, rgba(255,255,255,0.18) 68%, rgba(255,255,255,0) 100%);
}
.hero__content { position: relative; }
.hero__copy { max-width: 560px; display: flex; flex-direction: column; gap: 22px; padding: 80px 0; }
.hero__badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill); padding: 6px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest);
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.hero h1 { font-size: 68px; color: var(--ink); }
.hero__sub { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 440px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* ---- Value row ----------------------------------------------------------- */
.values { border-top: 1px solid var(--border-hair); border-bottom: 1px solid var(--border-hair); background: #fff; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--border-hair); }
.value:first-child { border-left: none; }
.value__icon { width: 24px; height: 24px; color: var(--forest); }
.value__t { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.value__d { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ---- Section heading ----------------------------------------------------- */
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 640px; margin: 0 auto; }
.section-head h2 { font-size: 44px; line-height: 1.08; color: var(--ink); }
.section-head p { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }

/* ---- Scent grid ---------------------------------------------------------- */
.scent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }

.product-card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hair);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease-soft);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__field {
  aspect-ratio: 4 / 4.2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 28px 20px; text-align: center;
}
.product-card__brand {
  font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.product-card__name {
  font-family: var(--font-display); font-size: 46px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.product-card__desc {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; max-width: 90%;
}
.product-card__footer { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.product-card__saying { font-family: var(--font-script); font-size: 24px; line-height: 1; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__price { font-size: 17px; font-weight: 600; color: var(--ink); }
.tag-soon {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill); padding: 6px 12px;
}

/* scent field colorways */
.s-camel { background: var(--camel); }            .s-camel .product-card__name { color: var(--camel-deep); }       .s-camel .product-card__saying { color: var(--camel-deep); }
.s-sage { background: var(--sage); }              .s-sage .product-card__name { color: var(--sage-deep); }         .s-sage .product-card__saying { color: var(--sage-deep); }
.s-slate { background: var(--slate); }            .s-slate .product-card__name { color: var(--slate-deep); }       .s-slate .product-card__saying { color: var(--slate-deep); }
.s-terracotta { background: var(--terracotta); }  .s-terracotta .product-card__name { color: var(--terracotta-deep); } .s-terracotta .product-card__saying { color: var(--terracotta-deep); }
.s-clay { background: var(--clay); }              .s-clay .product-card__name { color: var(--clay-deep); }         .s-clay .product-card__saying { color: var(--clay-deep); }

.scent-note { text-align: center; margin-top: 40px; font-size: 14px; color: var(--ink-faint); letter-spacing: 0.02em; }

/* ---- Gift band ----------------------------------------------------------- */
.giftband { background: var(--wash-camel); }
.giftband__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.giftband__copy { padding: 96px 64px 96px 0; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.giftband__copy h2 { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1.08; color: var(--ink); }
.giftband__copy p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 420px; }
.giftband__script { font-family: var(--font-script); font-size: 40px; color: var(--camel-deep); line-height: 1; }
.giftband__media { position: relative; min-height: 480px; }
.giftband__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Mission band -------------------------------------------------------- */
.mission { background: var(--forest); color: #fff; }
.mission__inner { max-width: 860px; margin: 0 auto; padding: 104px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mission h2 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.18; color: #fff; }
.mission p { font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.mission__quote { font-family: var(--font-display); font-size: 22px; line-height: 1.5; color: rgba(255,255,255,0.95); max-width: 620px; }

/* ---- Waitlist ------------------------------------------------------------ */
.waitlist { background: var(--cream); border-top: 1px solid var(--border-hair); }
.waitlist__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.waitlist__media { position: relative; min-height: 460px; }
.waitlist__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.waitlist__copy { padding: 96px 0 96px 64px; display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.waitlist__copy h2 { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1.1; color: var(--ink); }
.waitlist__copy p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.signup { display: flex; gap: 10px; margin-top: 6px; max-width: 420px; }
.signup input {
  flex: 1; font-family: var(--font-sans); font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 13px 14px; outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.signup input:focus { border-color: var(--forest-soft); box-shadow: var(--shadow-focus); }
.signup__note { font-size: 12px; color: var(--ink-faint); }
.signup__ok { font-size: 14px; color: var(--forest); font-weight: 600; display: none; }
.signup__ok.show { display: block; }

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--cream); border-top: 1px solid var(--border-hair); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding: 72px 40px 40px; max-width: var(--container); margin: 0 auto; }
.footer__brand-mark { font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; font-size: 15px; color: var(--ink); }
.footer__tag { font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--forest); margin-top: 14px; }
.footer__desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; max-width: 260px; margin-top: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__h { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.footer__link { font-size: 14px; color: var(--ink-soft); background: none; border: none; padding: 0; text-align: left; cursor: pointer; }
.footer__link:hover { color: var(--ink); }
.footer__bottom { border-top: 1px solid var(--border-hair); }
.footer__bottom-inner { max-width: var(--container); margin: 0 auto; padding: 18px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero h1 { font-size: 56px; }
  .giftband__copy { padding: 72px 40px 72px 0; }
  .giftband__copy h2 { font-size: 38px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .container { padding: 0 24px; }
  .header__nav { gap: 18px; }

  .hero { min-height: 0; }
  .hero__img { object-position: 65% 30%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.74) 45%, rgba(255,255,255,0.82) 100%); }
  .hero__copy { padding: 64px 0; max-width: 100%; }
  .hero h1 { font-size: 46px; }

  .values__grid { grid-template-columns: 1fr 1fr; }
  .value { border-left: 1px solid var(--border-hair); }
  .value:nth-child(odd) { border-left: none; }
  .value:nth-child(3), .value:nth-child(4) { border-top: 1px solid var(--border-hair); }

  .section { padding: 72px 0; }
  .section-head h2 { font-size: 36px; }
  .scent-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .giftband__grid { grid-template-columns: 1fr; }
  .giftband__copy { padding: 56px 0; order: 2; }
  .giftband__media { min-height: 340px; order: 1; }

  .mission__inner { padding: 80px 24px; }
  .mission h2 { font-size: 34px; }

  .waitlist__grid { grid-template-columns: 1fr; }
  .waitlist__media { min-height: 280px; order: 1; }
  .waitlist__copy { padding: 56px 0; order: 2; max-width: 100%; }
  .waitlist__copy h2 { font-size: 34px; }

  .footer__top { grid-template-columns: 1fr 1fr; padding: 56px 24px 32px; }
}

@media (max-width: 600px) {
  /* Collapse the cramped 3-up header to wordmark + single CTA */
  .header__inner { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .header__soon { display: none; }
  .wordmark { justify-self: start; font-size: 15px; letter-spacing: 0.14em; }
}

@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .wordmark { font-size: 14px; letter-spacing: 0.1em; }
  .header__cta .btn--sm { padding: 9px 14px; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 38px; }
  .hero__sub { font-size: 17px; max-width: 100%; }
  .hero__actions .btn { flex: 1; }

  .values__grid { grid-template-columns: 1fr; }
  .value { border-left: none; }
  .value:nth-child(n+2) { border-top: 1px solid var(--border-hair); }

  .scent-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 30px; }
  .section-head p { font-size: 17px; }

  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; }
}
