/* No Fuss Guides — shared styles. Plain CSS, no framework. */
:root {
  --green: #1f3d2b;        /* sampled from PDF cover (page 1) */
  --green-dark: #17301f;
  --green-soft: #e8efe9;
  --ink: #1d2420;
  --muted: #56615a;
  --paper: #fafaf7;        /* off-white */
  --white: #ffffff;
  --line: #dde3dd;
  --ph: #ffe45c;           /* placeholder highlight */
  --radius: 10px;
  --max: 68rem;
  --text: 42rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ph); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; color: var(--green); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .45em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--text); }

/* Placeholders: bright so Darien can't miss them */
mark.ph, .ph {
  background: var(--ph); color: #1a1a1a; padding: .05em .3em; border-radius: 3px;
  font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ph-block { background: #fff6bf; border: 2px dashed #d9b800; padding: .9rem 1rem; border-radius: var(--radius); }

/* Header */
.site-header { background: var(--green); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; gap: 1rem; }
.brand { color: var(--white); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.site-header nav a { color: #d8e4db; font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-block; background: var(--green); color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 1.1rem; padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--green); transition: background .15s;
}
.btn:hover { background: var(--green-dark); }
.btn-light { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-light:hover { background: var(--green-soft); }
.btn mark.ph { font-size: .95em; }
.btn-note { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.cta { margin: 1.75rem 0 0; }
.cta-center { text-align: center; }

/* Home */
.home-hero { background: var(--green); color: var(--white); padding: 3.5rem 0 5.5rem; }
.home-hero h1 { color: var(--white); margin-bottom: .35em; }
.home-hero p { font-size: 1.2rem; color: #dbe6de; max-width: 36rem; margin: 0; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 40, 28, .08); margin-top: -3.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; margin-bottom: 3rem;
}
.product-card img { border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18); width: 100%; max-width: 280px; margin: 0 auto; }
.product-card h2 { margin-bottom: .2em; }
.product-card .sub { font-style: italic; color: var(--muted); margin-bottom: 1em; }
.meta { font-size: .95rem; color: var(--muted); }
@media (min-width: 720px) {
  .product-card { grid-template-columns: 260px 1fr; padding: 2rem; gap: 2.25rem; align-items: center; }
  .product-card img { max-width: none; }
}

/* Sales page */
.hero { background: var(--green); color: var(--white); padding: 3rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; color: #b9ccbf; margin-bottom: .8rem; }
.hero .subhead { font-size: 1.15rem; color: #e1ebe4; }
.hero .btn-note { color: #c5d5ca; }
.hero-cover img { border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); max-width: 320px; margin: 0 auto; width: 100%; border: 1px solid rgba(255,255,255,.12); }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.35fr 1fr; } .hero-cover img { max-width: 360px; } }

.section { padding: 3.25rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--white); }
.numbered li::marker { color: var(--green); font-weight: 700; }
.inside li { margin-bottom: .75em; }
.codes { list-style: none; padding: 0; margin: .6em 0 .2em; }
.codes li { margin-bottom: .35em; }
.code { display: inline-block; min-width: 2.6em; text-align: center; background: var(--green-soft); color: var(--green); font-weight: 800; border-radius: 4px; padding: 0 .35em; margin-right: .35em; }

.previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.previews figure { margin: 0; }
.previews img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.08); background: var(--white); }
.previews figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; text-align: center; }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.box.not { background: #f4f5f2; }
.box.not h2 { color: var(--ink); }

.price-card { background: var(--green); color: var(--white); border-radius: 14px; padding: 2.25rem 1.5rem; text-align: center; max-width: 36rem; margin: 0 auto; }
.price-card h2 { color: var(--white); font-size: 1.4rem; }
.price-card p { color: #dbe6de; }
.price-card .price { font-size: 2.25rem; font-weight: 800; margin: .3em 0 .6em; }

blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--green); background: var(--white); font-style: italic; }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 1.25rem; list-style-position: outside; color: var(--green); }
.faq summary:focus-visible { outline: 3px solid var(--ph); outline-offset: 2px; }
.faq details > p { padding: 0 1.25rem 1rem; margin: 0; }

.final { background: var(--green-soft); }

/* Footer */
.site-footer { background: var(--green); color: #cfdcd3; padding: 2rem 0; font-size: .92rem; }
.site-footer p { margin: 0 0 .4em; }
.site-footer a { color: var(--white); }

/* ---- fixes after screenshot review ---- */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.wrap > .narrow { margin-left: auto; margin-right: auto; }
.codes li { display: grid; grid-template-columns: 3em 1fr; gap: .5em; align-items: start; }
.code { margin-right: 0; }
.faq summary { list-style: none; position: relative; padding-left: 2.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 1.1rem; top: .95rem; font-weight: 800; }
.faq details[open] > summary::before { content: "–"; }
.previews { grid-template-columns: 1fr; max-width: 46rem; margin-left: auto; margin-right: auto; }
.previews li { max-width: 340px; width: 100%; margin: 0 auto; }
@media (min-width: 640px) { .previews { grid-template-columns: 1fr 1fr; } .previews li { max-width: none; } }
.after-block { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 719px) { .product-card img { max-width: 220px; } }
@media (max-width: 859px) { .hero-cover img { max-width: 240px; } }

/* ---- v3: nav, blog, pictures ---- */
picture { display: block; }
.site-header .wrap { flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.site-header nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a { color: #d8e4db; text-decoration: none; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.hero-cover picture, .product-card picture { max-width: 100%; }
.hero-cover img { width: 100%; }
.faq summary h3 { display: inline; font-size: 1rem; color: var(--green); margin: 0; line-height: 1.4; }
.aside { font-size: .95rem; color: var(--muted); }
.foot-nav { margin-bottom: .8rem; }
.foot-nav a { color: var(--white); }
.blog-teaser { margin: 0 0 3.5rem; }
.blog-teaser h2 { font-size: 1.3rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.post-card h2, .post-card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }
.post-card p:last-child { margin-bottom: 0; }
.lede { font-size: 1.15rem; color: var(--muted); }
.post-head { background: var(--green); color: var(--white); padding: 2.5rem 0 2.25rem; }
.post-head h1 { color: var(--white); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); }
.crumbs { font-size: .9rem; margin-bottom: 1rem; color: #b9ccbf; }
.crumbs a { color: #d8e4db; }
.post-meta { font-size: .92rem; color: #c5d5ca; margin: 0; }
.post-card .post-meta { color: var(--muted); }
.prose { padding-top: 2.25rem; padding-bottom: 3.5rem; }
.prose h2 { margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .55em; }
.prose ol li::marker { color: var(--green); font-weight: 700; }
.example-note { background: #f1f4ef; border-left: 4px solid var(--green); padding: .6rem .9rem; border-radius: 4px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.prose table { border-collapse: collapse; width: 100%; font-size: .98rem; min-width: 30rem; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--green-soft); color: var(--green); }
.prose tr:last-child td { border-bottom: 0; }
.prose .cta { margin-top: 1rem; }
.prose table { min-width: 0; }
@media (max-width: 520px) { .prose table { font-size: .88rem; } .prose th, .prose td { padding: .5rem .45rem; } }
.post-fig { margin: 1.5rem auto; max-width: 420px; }
.post-fig img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.08); background: var(--white); }
.post-fig figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .5rem; }
