/* The Lost Discipline site styles
   Palette: charcoal #1A1612 / ivory #E8DCC4 / amber #C8862E / teal #58A6C8
   Mobile-first. Serif headings, readable body. Calm, spare, no hype. */

:root {
  --charcoal: #1A1612;
  --charcoal-soft: #221D18;
  --ivory: #E8DCC4;
  --ivory-dim: #b6ac96;
  --amber: #C8862E;
  --teal: #58A6C8;
  --hairline: #3a332a;
  --serif: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --sans: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --measure: 34rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}

/* Layout ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.4rem;
}

section { padding: 2.6rem 0; }

.divider {
  width: 3.5rem;
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 2.4rem 0;
}

/* Candle motif ------------------------------------------------------ */

.candle {
  display: block;
  margin: 0 auto 1.8rem;
  width: 44px;
  height: auto;
}

.flame {
  transform-origin: center bottom;
  animation: flicker 4.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1) translateY(0); }
  45%      { opacity: 0.86; transform: scaleY(0.96) translateX(0.4px); }
  70%      { opacity: 0.95; transform: scaleY(1.03) translateX(-0.3px); }
}

@media (prefers-reduced-motion: reduce) {
  .flame { animation: none; }
}

/* Typography -------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--amber);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.2px;
}

h1 {
  font-size: 1.85rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 0.9rem;
}

h3 {
  font-size: 1.12rem;
  margin: 0 0 0.4rem;
  color: var(--ivory);
}

p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ivory);
}

.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  color: var(--teal);
  margin: 0 0 1.4rem;
}

.small {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ivory-dim);
}

em { color: var(--ivory); font-style: italic; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero -------------------------------------------------------------- */

.hero {
  padding-top: 3rem;
  text-align: center;
}

.hero h1 { font-size: 2.05rem; }

.hero .subhead {
  font-size: 1.15rem;
  color: var(--ivory);
  max-width: 30rem;
  margin: 0 auto 1.6rem;
}

.hero-body {
  text-align: left;
  max-width: 32rem;
  margin: 0 auto;
}

/* Form -------------------------------------------------------------- */

.capture {
  background: var(--charcoal-soft);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  margin: 2rem auto 0;
  max-width: 30rem;
}

.capture form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.capture label {
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

input[type="email"] {
  width: 100%;
  padding: 0.85rem 0.9rem;
  background: var(--charcoal);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
}

input[type="email"]::placeholder { color: #6f6857; }

button, .btn {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--amber);
  color: #17120b;
  border: 1px solid var(--amber);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.3px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover, .btn:hover {
  background: #d9963c;
  text-decoration: none;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--ivory-dim);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Products ---------------------------------------------------------- */

.product {
  border-top: 1px solid var(--hairline);
  padding: 1.7rem 0;
}

.product:last-of-type { border-bottom: 1px solid var(--hairline); }

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.product-head h3 { margin: 0; }

.price {
  font-family: var(--serif);
  color: var(--amber);
  font-size: 1.15rem;
  white-space: nowrap;
}

.product p { margin: 0 0 1.1rem; color: var(--ivory-dim); }

.product .btn {
  width: auto;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
}

.product .btn:hover {
  background: var(--amber);
  color: #17120b;
}

.bundle {
  background: var(--charcoal-soft);
  border: 1px solid var(--amber);
  border-radius: 6px;
  padding: 1.7rem 1.5rem;
  margin-top: 2.4rem;
}

.bundle h3 { color: var(--amber); }
.bundle .btn { background: var(--amber); color: #17120b; }

/* Thanks page ------------------------------------------------------- */

.center { text-align: center; }

.next-steps {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.6rem 0;
  margin: 2rem 0;
}

.next-steps p:last-child { margin-bottom: 0; }

/* Footer ------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--hairline);
  margin-top: 1rem;
  padding: 2.2rem 0 3rem;
}

footer .wrap { text-align: center; }

footer p {
  color: var(--ivory-dim);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.wordmark {
  font-family: var(--serif);
  color: var(--amber);
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* Wider screens ----------------------------------------------------- */

@media (min-width: 620px) {
  body { font-size: 1.09rem; }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.5rem; }
  section { padding: 3.2rem 0; }
}
