/* Signal & Ink (MemberBox template) — design system.
   Solo-writer paid-newsletter theme: near-black ink + a single crimson
   accent + a warm cream "paper" background, with serif headlines (editorial
   masthead feel) over a plain system-sans body/UI — deliberately distinct
   from the all-sans navy/gold CourseBox, plum/gold SubBoxBiz, navy/amber
   PetCareBox, teal/coral MoveInServicesBox, dusty-blue/gold SeniorConciergeBox,
   and forest-green LawnCareBox palettes sitting next to it in the same
   account. Divider motif is a newspaper-style masthead double-rule instead
   of a dashed line/ribbon/paw/stripe. */

:root {
  --si-ink: #1c1a17;
  --si-ink-2: #272320;
  --si-charcoal: #2f2b26;
  --si-slate: #5c554c;
  --si-steel: #948c7e;
  --si-steel-light: #ddd4c2;
  --si-paper: #f7f1e4;
  --si-paper-2: #efe3c9;
  --si-white: #ffffff;
  --si-crimson: #a3271f;
  --si-crimson-dark: #7c1c16;
  --si-mustard: #c98a2c;
  --si-line: rgba(255, 255, 255, 0.14);
  --si-line-dark: rgba(47, 43, 38, 0.14);
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 20px rgba(28, 26, 23, 0.12);
  --shadow-lg: 0 14px 36px rgba(28, 26, 23, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--si-charcoal);
  background: var(--si-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--si-crimson-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--si-ink);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-base);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--si-crimson);
  margin-bottom: 10px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--si-slate); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-dark { background: var(--si-ink); color: var(--si-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--si-white); }
.section-dark p { color: var(--si-steel-light); }

/* ── Masthead divider ─────────────────────────────────────────────────── */
.masthead-rule {
  border-top: 5px solid var(--si-ink);
  border-bottom: 1px solid var(--si-ink);
  height: 4px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--si-crimson); color: var(--si-white); box-shadow: var(--shadow); }
.btn-primary:hover:not(:disabled) { background: var(--si-crimson-dark); }

.btn-ink { background: var(--si-ink); color: var(--si-white); box-shadow: var(--shadow); }
.btn-ink:hover:not(:disabled) { background: var(--si-ink-2); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--si-white); }
.btn-outline:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark { background: transparent; border-color: var(--si-ink); color: var(--si-ink); }
.btn-outline-dark:hover:not(:disabled) { background: rgba(28, 26, 23, 0.06); }

.btn-block { width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--si-ink);
  border-bottom: 4px solid var(--si-crimson);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--si-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  background: var(--si-crimson);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--si-white);
  font-family: var(--font-serif);
  font-weight: 700;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--si-steel-light);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--si-white); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 2px solid var(--si-line);
  border-radius: var(--radius);
  color: var(--si-white);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--si-ink-2);
  border-top: 1px solid var(--si-line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 20px;
  color: var(--si-white);
  font-weight: 700;
  border-bottom: 1px solid var(--si-line);
  font-size: 0.95rem;
}
.mobile-menu a:hover { text-decoration: none; background: rgba(255,255,255,0.04); }
.mobile-menu .btn { margin: 16px 20px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(28,26,23,0.92), rgba(28,26,23,0.96)),
    var(--si-ink);
  color: var(--si-white);
  padding: 56px 0 64px;
}
.hero h1 { color: var(--si-white); }
.hero p { max-width: 560px; color: var(--si-steel-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Cards / grids ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--si-white);
  border: 1px solid var(--si-line-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 46px; height: 46px;
  background: var(--si-ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--si-crimson);
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--si-crimson);
  color: var(--si-white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge.locked { background: var(--si-steel); }
.badge.free { background: var(--si-mustard); color: var(--si-ink); }

/* ── Pricing cards ─────────────────────────────────────────────────────── */
.price-card {
  background: var(--si-white);
  border: 2px solid var(--si-line-dark);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card.featured { border-color: var(--si-crimson); box-shadow: var(--shadow-lg); position: relative; }
.price-card .price-amount { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--si-ink); }
.price-card .price-amount span { font-family: var(--font-base); font-size: 1rem; font-weight: 700; color: var(--si-slate); }
.price-card ul { margin: 8px 0; padding-left: 18px; color: var(--si-slate); font-size: 0.92rem; }
.price-card .btn { margin-top: auto; }

/* ── Post list / article ───────────────────────────────────────────────── */
.post-row {
  background: var(--si-white);
  border: 1px solid var(--si-line-dark);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.post-row h3 { margin-bottom: 6px; }
.post-row h3 a { color: var(--si-ink); }
.post-row h3 a:hover { color: var(--si-crimson-dark); text-decoration: none; }
.post-meta { font-size: 0.8rem; color: var(--si-steel); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

.post-article { max-width: 720px; margin: 0 auto; }
.post-article .post-body p { color: var(--si-charcoal); font-size: 1.05rem; }
.post-article .post-body { margin-top: 24px; }

.paywall {
  background: var(--si-paper-2);
  border: 2px dashed var(--si-steel);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  margin-top: 20px;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--si-ink);
}
.field .hint { font-size: 0.78rem; color: var(--si-steel); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--si-line-dark);
  font-size: 16px;
  font-family: var(--font-base);
  background: var(--si-white);
  color: var(--si-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--si-crimson);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.form-card {
  background: var(--si-white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
}
.form-msg { padding: 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 700; display: none; }
.form-msg.success { background: #e2f2ea; color: #1f7a45; display: block; }
.form-msg.error { background: #fbe6e0; color: #a5321a; display: block; }
.form-msg.info { background: var(--si-paper-2); color: var(--si-ink); display: block; }

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--si-line-dark);
  padding: 18px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  gap: 12px;
}
.faq-q .plus { flex-shrink: 0; font-size: 1.3rem; color: var(--si-crimson-dark); transition: transform 0.15s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; margin-top: 10px; color: var(--si-slate); }
.faq-item.open .faq-a { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--si-ink);
  color: var(--si-steel-light);
  padding: 48px 0 28px;
}
.site-footer h4 { color: var(--si-white); font-family: var(--font-base); font-size: 1rem; letter-spacing: 0.02em; }
.site-footer p { color: var(--si-steel-light); }
.site-footer .notice { color: var(--si-slate); background: rgba(255,255,255,0.04); border-left-color: var(--si-crimson); }
.site-footer a { color: var(--si-steel-light); }
.site-footer a:hover { color: var(--si-white); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid var(--si-line);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { margin-right: 14px; }

/* ── Trust / notice banners ───────────────────────────────────────────── */
.notice {
  background: var(--si-paper-2);
  border-left: 4px solid var(--si-crimson);
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--si-slate);
}
.notice.warn { background: #fbe6e0; border-left-color: #a5321a; color: #7c2c1a; }
.notice.disclaimer { background: #fbe6e0; border-left-color: #a5321a; color: #7c2c1a; font-size: 0.86rem; }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w-prose { max-width: 680px; }
.center { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--si-crimson); color: var(--si-white); padding: 12px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }
