:root {
  --anchor: #7c2d12;
  --brand: #c2410c;
  --brand-2: #ea580c;
  --accent: #fb923c;
  --accent-soft: #fdeadd;
  --bg: #fdf9f3;
  --paper: #ffffff;
  --ink: #2b1d16;
  --ink-soft: #6b5b50;
  --ink-mute: #a08d80;
  --line: #ecdfd2;
  --radius: 14px;
  --shadow: 0 14px 38px rgba(124, 45, 18, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17.5px;
}

h1, h2, h3 {
  font-family: "Libre Franklin", "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.08;
  color: var(--anchor);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5.8vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p { color: var(--ink-soft); }

a { color: var(--brand); }

img { max-width: 100%; }

::selection { background: var(--accent); color: var(--anchor); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

/* Header */
header.site { padding: 22px 0; }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700; font-size: 1.3rem; color: var(--anchor);
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.logo .dot {
  width: 13px; height: 13px; border-radius: 50% 50% 50% 3px;
  background: var(--brand);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.15);
}
header.site nav a {
  margin-left: 24px; text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600;
}
header.site nav a:hover { color: var(--anchor); }
header.site nav a.pill {
  border: 1.5px solid var(--brand); padding: 8px 16px; border-radius: 999px; color: var(--brand);
}
header.site nav a.pill:hover { background: var(--brand); color: #fff; }

/* Hero */
.hero { padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--anchor);
  border: 1px solid #f6cfae;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-2);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

h1 .ping {
  background: var(--accent-soft); color: var(--brand);
  padding: 0 10px 2px; display: inline-block; transform: rotate(-1deg);
  border-radius: 8px; border-bottom: 3px solid var(--accent);
}
.hero p.lead { font-size: 1.17rem; margin: 20px 0 0; max-width: 32rem; }

/* SMS reminder thread */
.thread {
  display: flex; flex-direction: column; gap: 12px; margin-top: 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 20px 20px; max-width: 460px;
  box-shadow: var(--shadow);
}
.thread .stamp {
  align-self: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 4px;
}
.bubble {
  max-width: 94%;
  padding: 13px 17px; font-size: 0.97rem; line-height: 1.5;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.bubble .from {
  font-size: 0.7rem; color: var(--ink-mute); letter-spacing: 0.08em;
  text-transform: uppercase; display: block; margin-bottom: 5px; font-weight: 700;
}
.bubble.in {
  align-self: flex-start;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  border-radius: 20px 20px 20px 5px;
}
.bubble.in .from { color: rgba(255, 255, 255, 0.78); }
.bubble.out {
  align-self: flex-end;
  background: #f1ebe2;
  color: var(--ink);
  border-radius: 20px 20px 5px 20px;
}
.bubble:nth-child(2) { animation-delay: 0.15s; }
.bubble:nth-child(3) { animation-delay: 1.1s; }
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.receipt {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700; color: #15803d;
  background: #ecfdf3; border: 1px solid #bbe7c8; border-radius: 999px;
  padding: 5px 12px;
  animation: pop 0.4s 2s both;
}
.receipt::before { content: "✓✓"; letter-spacing: -2px; }

@media (prefers-reduced-motion: reduce) {
  .bubble, .receipt { animation: none; }
  .eyebrow::before { animation: none; }
}

/* Marquee */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 0;
}
.marquee span {
  display: inline-block;
  font-family: "Libre Franklin", sans-serif; font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  animation: slide 32s linear infinite;
}
.marquee b { color: var(--brand); font-weight: 700; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; } }

/* Signup card */
.signup-card {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  position: relative;
}
.signup-card::after {
  content: "TEXTS GET READ. FLYERS GET RECYCLED.";
  position: absolute; top: -13px; right: 18px;
  background: var(--anchor); color: #fff;
  font-family: "Libre Franklin", sans-serif; font-weight: 700;
  font-size: 0.6rem; letter-spacing: 0.1em;
  padding: 5px 10px; border-radius: 6px; transform: rotate(2deg);
  box-shadow: 0 3px 10px rgba(124, 45, 18, 0.25);
}
.signup-card h3 { font-size: 1.3rem; }
.signup-card p.small { font-size: 0.93rem; margin: 6px 0 18px; }
form.signup { display: flex; flex-direction: column; gap: 12px; }
form.signup input[type="text"],
form.signup input[type="email"] {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 1rem; background: var(--bg);
}
form.signup input::placeholder { color: var(--ink-mute); }
form.signup input:focus { outline: 2px solid var(--brand-2); border-color: transparent; }
form.signup button {
  padding: 15px; border: 0; border-radius: 11px; cursor: pointer;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.3);
}
form.signup button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(194, 65, 12, 0.42); }
.fine { font-size: 0.8rem; color: var(--ink-mute); margin-top: 12px; }
.fine a { color: inherit; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 680px; margin-bottom: 44px; }
.kicker {
  font-family: "Libre Franklin", sans-serif; font-weight: 700;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); display: block; margin-bottom: 12px;
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #f0c9a8; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: transparent; border: 2px solid var(--brand);
  color: var(--brand); font-weight: 700; font-size: 1.25rem;
  margin-bottom: 16px; font-family: "Libre Franklin", sans-serif;
  transform: rotate(-3deg);
}
.card p { font-size: 0.96rem; }
.card .emoji { font-size: 1.6rem; display: block; margin-bottom: 12px; }

/* FAQ */
details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 700; color: var(--anchor); }
details summary::marker { color: var(--brand); }
details p { margin-top: 10px; font-size: 0.97rem; }
details[open] { border-color: #f0c9a8; }

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--anchor), #9a3412);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: 0.85; }
.cta-band .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

/* Blog */
.article-list { display: grid; gap: 18px; }
.article-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-decoration: none; display: block;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: #f0c9a8; box-shadow: var(--shadow); }
.article-card h3 { color: var(--anchor); }
.article-card p { font-size: 0.96rem; }
.article-meta {
  font-size: 0.74rem; color: var(--brand); margin-bottom: 8px; display: block;
  font-family: "Libre Franklin", sans-serif; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

article.post { padding: 48px 0 64px; }
article.post h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 14px; }
article.post h2 { margin-top: 42px; }
article.post p, article.post li { margin: 14px 0; }
article.post ul, article.post ol { padding-left: 24px; }
article.post .article-meta { margin-bottom: 20px; }
.template-box {
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 18px 22px; margin: 18px 0;
  font-size: 0.97rem; color: var(--ink);
}
.template-box .tag {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
  font-family: "Libre Franklin", sans-serif;
}
.post-cta {
  background: var(--accent-soft); border: 1px solid #f6cfae;
  border-radius: var(--radius); padding: 24px 28px; margin-top: 44px;
}
.post-cta p { color: var(--anchor); }

/* Footer */
footer.site { padding: 44px 0 52px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer.site p, footer.site a { font-size: 0.9rem; color: var(--ink-mute); }

/* Simple pages */
.simple { padding: 72px 0; min-height: 55vh; }
.simple h1 { margin-bottom: 16px; }
.simple p { margin: 12px 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .cta-band .inner { grid-template-columns: 1fr; }
  header.site nav a { margin-left: 12px; }
  section { padding: 52px 0; }
  .thread { max-width: 100%; }
}
