/* ===============================
   DESIGN TOKENS
================================= */

:root {
  --max: 980px;

  --accent: #22c55e;
  --accent-dark: #16a34a;

  --text: #0f172a;
  --muted: #475569;

  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;

  --radius: 12px;
}

/* ===============================
   BASE
================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

/* Make anchor jumps not hide under sticky header */
section[id] { scroll-margin-top: 92px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
}

/* Tighter spacing between major blocks */
section {
  margin-bottom: 56px;
}

/* ===============================
   HEADER / NAV
================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

/* Only affect normal nav links, not the CTA button */
.nav a:not(.btn):hover {
  color: var(--accent-dark);
}

/* ===============================
   TYPOGRAPHY
================================= */

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
}

h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
}

h2 {
  font-size: 22px;
  font-weight: 600;
}

p { margin: 0 0 12px 0; }

.lead {
  font-size: 18px;
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 22px;
}

.subtle { color: var(--muted); }
.tiny { font-size: 12px; }

/* ===============================
   HERO
================================= */

.hero {
  padding: 88px 0 48px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  margin-top: 16px;
}

.hero .btn {
  margin-top: 6px;
}

.hero .subtle {
  margin-top: 14px;
}

/* ===============================
   BUTTONS
================================= */

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;

  text-decoration: none;
  font-weight: 700;

  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus,
.btn:active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn.small {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
}

/* Extra safety so nav hover rules never override CTA button text */
.nav a.btn,
.nav a.btn:hover,
.nav a.btn:focus,
.nav a.btn:active {
  color: #ffffff !important;
  text-decoration: none;
}

/* ===============================
   CARDS
================================= */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);

  /* Slightly tighter interior padding */
  padding: 24px;

  /* Softer, more “editorial” */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Optional: subtly highlight signup card */
#signup.card {
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

/* ===============================
   LISTS
================================= */

ul {
  margin: 12px 0 0 0;
  padding-left: 18px;
}

li { margin: 6px 0; }

/* ===============================
   GRID
================================= */

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;

  /* Tighter gap between the two boxes */
  gap: 20px;
}

@media (max-width: 760px) {
  .grid.two { grid-template-columns: 1fr; }
}

/* ===============================
   SAMPLES
================================= */

.samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .samples { grid-template-columns: 1fr; }
}

.sampleBox {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 38px 20px;
  text-align: center;
  background: var(--bg-soft);
  color: var(--muted);
}

/* ===============================
   FORMS (your own, if used later)
================================= */

input, select, textarea {
  font: inherit;
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* ===============================
   MAILERLITE INTEGRATION
   (targets your specific embed container id)
================================= */

/* Reduce the “double box” look inside your card */
#mlb2-37298823.ml-form-embedContainer .ml-form-embedWrapper {
  background: transparent !important;
  border-radius: 0 !important;
}

/* Force Fraunces for MailerLite headings (replacing Georgia) */
#mlb2-37298823.ml-form-embedContainer .ml-form-embedContent h4,
#mlb2-37298823.ml-form-embedContainer .ml-form-successContent h4 {
  font-family: 'Fraunces', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

/* Make the MailerLite button match your rounding + spacing */
#mlb2-37298823.ml-form-embedContainer .ml-form-embedSubmit button {
  border-radius: var(--radius) !important;
  padding: 12px 16px !important;
}

/* ===============================
   FOOTER
================================= */

.footer {
  margin-top: 56px;
  padding-bottom: 28px;
  text-align: center;
  color: var(--muted);
}
