:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1d2327; --ink-2: #4a545b; --muted: #7a848b;
  --line: #e6e2da; --brand: #b4462c; --brand-ink: #ffffff; --brand-soft: #f6e6e0;
  --accent: #1f5f73; --ad: #f1efe9; --dot: rgba(29, 35, 39, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141719; --surface: #1c2023; --ink: #eceae6; --ink-2: #b9bfc3; --muted: #8b949a;
    --line: #2c3236; --brand: #e0795c; --brand-ink: #141719; --brand-soft: #2a201c;
    --accent: #7fbfd2; --ad: #22272a; --dot: rgba(255, 255, 255, .05);
  }
}
* { box-sizing: border-box; }
/* Background: soft warm glow at the top of each page, over a faint blueprint dot grid */
body { margin: 0; color: var(--ink); font: 17px/1.6 Georgia, "Iowan Old Style", serif;
  background-color: var(--bg);
  background-image: radial-gradient(70% 420px at 72% 0, var(--brand-soft), transparent), radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 100% 520px, 22px 22px; background-repeat: no-repeat, repeat; }

/* Home hero illustration */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center; }
.hero-art { width: 100%; height: auto; }
.hero-art .wall { fill: var(--surface); stroke: var(--ink-2); }
.hero-art .roof { fill: var(--brand-soft); stroke: var(--brand); }
.hero-art .trim { fill: none; stroke: var(--ink-2); }
.hero-art .glass { fill: var(--bg); stroke: var(--ink-2); }
.hero-art .cloud { fill: var(--surface); stroke: var(--muted); }
.hero-art .rain { stroke: var(--accent); }
.hero-art .box { fill: #d9a86c; stroke: #a8783f; } .hero-art .box-top { fill: #e6bd88; stroke: #a8783f; } .hero-art .tape { fill: #f0dcb6; }
.hero-art .halo { fill: var(--brand-soft); }
.hero-art .ground { stroke: var(--line); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* Rooftop skyline above the footer */
footer { position: relative; margin-top: 70px; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -61px; height: 60px; opacity: .22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cpath fill='%237a848b' d='M0 60V38l30-22 30 22v22h10V30h20V18l6-6 6 6v12h18v30h12V34l40-28 40 28v26h14V40l24-18 24 18v20h10V26h34v34h12V36l34-26 34 26v24h16V42l22-16 22 16v18h18V30l28-20 28 20v30z'/%3E%3C/svg%3E") repeat-x bottom left / 480px 60px; pointer-events: none; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

header { border-bottom: 1px solid var(--line); background: var(--surface); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; }
.logo span { color: var(--brand); }
nav { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink-2); }
nav a:hover { color: var(--brand); }

.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; margin: 0 0 14px; max-width: 760px; letter-spacing: -0.015em; }
.hero p { font-size: 19px; color: var(--ink-2); max-width: 640px; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; }

.steps { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin: 8px 0 40px; }
.steps h2 { margin: 0 0 4px; font-size: 22px; }
.steps .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; font-size: 15.5px; color: var(--ink-2); }
.steps li strong { display: block; color: var(--ink); font-size: 16.5px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 15px; }

.ad { background: var(--ad); border: 1px dashed var(--line); color: var(--muted); border-radius: 8px; display: grid; place-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.ad.banner { height: 90px; margin: 0 0 40px; }
.ad.side { height: 600px; position: sticky; top: 16px; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.card:hover { border-color: var(--brand); }
.tag { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .meta { margin-top: auto; color: var(--muted); font-size: 13px; }

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin-bottom: 40px; }
.feature h2 { margin: 6px 0 10px; font-size: 26px; line-height: 1.2; }
.feature p { color: var(--ink-2); margin: 0 0 12px; }
.feature ul { color: var(--ink-2); padding-left: 20px; margin: 0 0 12px; }
.feature a.more { color: var(--brand); font-weight: 600; text-decoration: none; }

.help { background: var(--brand-soft); border-radius: 12px; padding: 22px; margin-bottom: 24px; }
.help h3 { margin: 0 0 6px; font-size: 19px; }
.help p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 760px; }

.preview-note { background: #1f5f73; color: #fff; text-align: center; font-size: 13px; padding: 6px 16px; }

/* Ad placeholders stay hidden until AdSense is approved and real ad units go in them. */
.ad { display: none !important; }

/* Article pages */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.article { max-width: 720px; padding-bottom: 40px; }
.article h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -0.015em; margin: 14px 0 12px; }
.article .byline { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.article h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 10px; }
.article h3 { font-size: 20px; margin: 26px 0 6px; }
.article p, .article li { color: var(--ink); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 16px 20px; margin: 0 0 28px; }
.answer p { margin: 0; }
.answer > strong { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); display: block; margin-bottom: 4px; }
.ad.inline { height: 250px; margin: 32px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; margin: 0 0 28px; font-size: 15px; }
.toc ol { margin: 6px 0 0; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 3px; }
table.simple { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0 20px; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.figure { background: var(--ad); border: 1px dashed var(--line); border-radius: 8px; height: 220px; display: grid; place-items: center; color: var(--muted); font-size: 14px; margin: 20px 0; text-align: center; padding: 16px; }
.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }
/* Illustrations */
.illus { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 24px 0; }
.illus figcaption { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.flow { list-style: none; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; counter-reset: f; }
.flow li { counter-increment: f; text-align: center; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; line-height: 1.3; color: var(--ink-2); position: relative; margin: 0; }
.flow li svg { width: 44px; height: 44px; display: block; margin: 0 auto 8px; color: var(--brand); }
.flow li b { display: block; color: var(--ink); font-size: 13.5px; }
.flow li b::before { content: counter(f) ". "; color: var(--muted); font-weight: 500; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -8px; width: 8px; height: 2px; background: var(--line); }
@media (max-width: 640px) {
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .flow li::after { display: none; }
}
.boxlabel { display: block; width: 100%; max-width: 570px; height: auto; margin: 0 auto; }
.boxlabel .cardboard { fill: #d9a86c; } .boxlabel .cardboard-dark { fill: #c1904f; } .boxlabel .tape { fill: #e8cfa3; }
.boxlabel .label { fill: #ffffff; stroke: #333; } .boxlabel .t { fill: #222; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.boxlabel .hand { fill: #1f3f8f; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }
.boxlabel .call { fill: var(--ink-2); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; }
.boxlabel .lead { stroke: var(--muted); stroke-width: 1.5; fill: none; }

.verdict { display: inline-flex; align-items: center; gap: 6px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.verdict svg { width: 16px; height: 16px; flex: none; }
.layout > * { min-width: 0; }
@media (max-width: 640px) { .verdict { white-space: normal; align-items: flex-start; } .verdict svg { margin-top: 2px; } }
.verdict.yes { color: #2f6b3a; } .verdict.maybe { color: #8a5a00; } .verdict.no { color: #a33a2a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .verdict.yes { color: #7cc48a; }
  :root:not([data-theme="light"]) .verdict.maybe { color: #e0b45c; }
  :root:not([data-theme="light"]) .verdict.no { color: #ef8b78; }
}
.related { background: var(--brand-soft); border-radius: 10px; padding: 16px 20px; margin: 28px 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15.5px; }
.related a { color: var(--brand); font-weight: 600; }
.faq h3 { margin-top: 22px; }

.timeline { list-style: none; padding: 0 !important; margin: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 18px 22px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.timeline .when { display: block; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.timeline li:last-child { padding-bottom: 0; }
.cols2 { columns: 2; column-gap: 28px; }
.cols2 li { break-inside: avoid; }
@media (max-width: 640px) { .cols2 { columns: 1; } }
.warn { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #c98a00; border-radius: 8px; padding: 14px 18px; margin: 20px 0; }
.warn p { margin: 0; }

/* Draft-only: spots Blake fills in. Removed before publishing. */
.todo { background: #fff3b0; color: #4a3b00; border: 1px solid #e6c84a; border-radius: 6px; padding: 10px 14px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14.5px; margin: 14px 0; }
.todo::before { content: "BLAKE: "; font-weight: 700; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .ad.side { display: none; }
  nav { display: none; }
}
