:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-card: #fbfaf7;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-faint: #888;
  --rule: #e6e3dc;
  --accent: #0d5b4e;
  --accent-strong: #094238;
  --accent-soft: #f1ece1;
  --link: #0d5b4e;
  --max: 760px;
  --max-wide: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.75rem); margin-top: 2.2em; font-weight: 700; }
h3 { font-size: 1.15rem; margin-top: 1.6em; font-weight: 700; }
p, ul, ol { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }
li > p { margin-bottom: 0.4em; }
strong { color: var(--text); }
blockquote {
  margin: 1.25em 0;
  padding: 0.6em 1.1em;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 0 8px 8px 0;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.site-header .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.site-header .brand img { height: 32px; width: auto; display: block; }
.site-header .brand-text {
  font-family: ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.site-header .brand:hover .brand-text { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }
.site-header .cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.site-header .cta:hover { background: var(--accent-strong); color: #fff; }

@media (max-width: 640px) {
  .site-header nav { gap: 0.85rem; }
  .site-header nav a:not(.cta) { display: none; }
  .site-header nav a.cta { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
}

/* Hero */
.hero { padding: 3.5rem 0 2rem; }
.hero .container { max-width: var(--max-wide); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.hero h1 { margin-bottom: 0.6rem; }
.hero p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 36em; }
.hero img { width: 100%; height: auto; border-radius: 14px; display: block; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero img { max-width: 360px; margin: 0 auto; }
}

/* Sections */
.section { padding: 2.5rem 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2 { margin-top: 0; }
.section .container { max-width: var(--max-wide); }
.section .lead { font-size: 1.05rem; color: var(--text-muted); max-width: 40em; }

/* Guide cards */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.guide-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.guide-card:hover { border-color: var(--accent); }
.guide-card h3 { margin: 0; font-size: 1.08rem; }
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a:hover { color: var(--accent); }
.guide-card .summary { color: var(--text-muted); font-size: 0.97rem; margin: 0; }
.guide-card .meta { color: var(--text-faint); font-size: 0.82rem; margin: 0; }

/* Early access */
.early-access {
  background: var(--accent-soft);
  border: 1px solid #e6dec4;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin: 2.5rem 0 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.early-access h2 { margin-top: 0; }
.ea-form { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 460px; margin-top: 1rem; }
.ea-form input[type=email] {
  flex: 1 1 220px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.ea-form input[type=email]:focus { outline: none; border-color: var(--accent); }
.ea-form button {
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.ea-form button:hover { background: var(--accent-strong); }
.ea-form .ea-msg { width: 100%; font-size: 0.9rem; color: var(--accent-strong); min-height: 1.2em; margin: 0; }

/* Article */
article.guide { padding: 2.5rem 0 3rem; }
article.guide header.article-head { margin-bottom: 2rem; }
article.guide .byline {
  color: var(--text-faint);
  font-size: 0.95rem;
  margin-bottom: 0.25em;
}
article.guide time { color: var(--text-faint); font-size: 0.95rem; }
article.guide .affiliate-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--rule);
  padding: 0.7em 1em;
  border-radius: 0 6px 6px 0;
  margin: 1em 0 1.8em;
}
article.guide .affiliate-note em { font-style: italic; }
article.guide h1 { margin-bottom: 0.4em; }

/* Contact form */
.contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 540px;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.contact-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
}
.contact-form button:hover { background: var(--accent-strong); }
.contact-form button:disabled { opacity: 0.65; cursor: not-allowed; }
.contact-form .status { font-size: 0.95rem; min-height: 1.2em; margin: 0; }
.contact-form .status.ok { color: var(--accent-strong); }
.contact-form .status.err { color: #b04141; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  margin-top: 4rem;
  padding: 2.5rem 0 1.75rem;
}
.site-footer .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 0.6em;
}
.site-footer p, .site-footer li { color: var(--text-muted); font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3em; }
.site-footer .brand-block strong { font-family: ui-serif, Georgia, serif; font-size: 1.1rem; color: var(--text); }
.site-footer .legal {
  max-width: var(--max-wide);
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--text-faint);
}
@media (max-width: 720px) {
  .site-footer .inner { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* Utility */
.kind { font-style: italic; color: var(--text-muted); margin-top: 2.5em; }
.muted { color: var(--text-muted); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
