:root {
  --bg: #f6f2ea;
  --bg-alt: #ede7db;
  --surface: #fffdf8;
  --text: #1c1b19;
  --muted: #5d5a53;
  --line: #d9d1c2;
  --accent: #1f3a34;
  --accent-text: #f6f2ea;
  --highlight: #b4532f;
  --todo-bg: #ffe9a8;
  --todo-text: #5c4300;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131513;
    --bg-alt: #1a1d1a;
    --surface: #1f2320;
    --text: #ece8df;
    --muted: #a7a297;
    --line: #333833;
    --accent: #9cc9b8;
    --accent-text: #10221d;
    --highlight: #e48a63;
    --todo-bg: #5c4300;
    --todo-text: #ffe9a8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--highlight); text-underline-offset: 3px; }
a:hover { color: var(--highlight); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: 1.05rem; }
nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 0.95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }
nav .nav-cta { color: var(--text); font-weight: 600; }

.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 7vw, 80px); }
.hero-small { padding: clamp(40px, 7vw, 72px) 0 clamp(24px, 4vw, 40px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600; color: var(--highlight); }
.eyebrow a { text-decoration: none; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; border: 1.5px solid var(--accent); }
.button:hover { color: var(--accent-text); opacity: 0.9; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover { border-color: var(--text); color: var(--text); }

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: var(--bg-alt); }
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service-card { text-decoration: none; display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease; }
.service-card:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; }
.service-card p { color: var(--muted); flex: 1; }
.card-index { font-family: var(--serif); color: var(--highlight); font-size: 0.95rem; margin-bottom: 18px; }
.card-link { font-weight: 600; font-size: 0.95rem; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); font-weight: 700; margin-bottom: 14px; }

.promise-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 24px; }
.promise-grid h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
.promise-grid p { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--highlight); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

.contact { text-align: left; }
.contact-email { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2rem); margin: 24px 0 8px; overflow-wrap: anywhere; }

.two-col { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.offer { background: var(--accent); color: var(--accent-text); border-radius: var(--radius); padding: 28px; }
.offer .eyebrow { color: inherit; opacity: 0.8; }
.offer-text { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.offer .muted { color: inherit; opacity: 0.85; }
.offer a { color: inherit; }
.price { font-weight: 600; }

.work-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 24px; }
.work-item { margin: 0; display: block; text-decoration: none; }
.work-item figure { margin: 0; }
a.work-item:hover .media { border-color: var(--accent); }
a.work-item:hover strong { color: var(--highlight); }
.media { aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; transition: border-color .15s ease; }
.media img, .media video, .media iframe { width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; }
.media.tall { aspect-ratio: 9 / 16; }

.case-meta { font-size: 0.95rem; color: var(--muted); }
.concept-note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--highlight); padding-left: 12px; max-width: 60ch; }
.gallery { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.gallery figure { margin: 0; }
.gallery .media { aspect-ratio: auto; }
.gallery .media img, .gallery .media video { height: auto; object-fit: contain; }
.gallery .media.tall { aspect-ratio: 9 / 16; }
.wide-shot { flex: 1 1 100%; }
.narrow-shot { flex: 0 1 380px; }
.third-shot { flex: 1 1 260px; max-width: calc((100% - 48px) / 3); }
@media (max-width: 760px) { .third-shot { max-width: 100%; } }
.tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }

.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid p { margin: 0 0 6px; }
.footer-brand { margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }

.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 6px; border-radius: 4px; font-family: var(--sans); font-size: 0.9em; }

/* Mini audit pages */
.audit-item { padding: 8px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.audit-item:last-child { border-bottom: 0; }
.audit-item figure { margin: 18px 0 8px; }
.audit-shot { aspect-ratio: auto; }
.audit-shot img { height: auto; object-fit: contain; }
.audit-shot.phone { max-width: 360px; margin-inline: auto; }
.audit-score { font-family: var(--serif); font-size: 1.6rem; margin: 18px 0; }
.audit-notes { gap: 24px; margin-top: 18px; }
.audit-notes h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.audit-notes p { color: var(--muted); }
.audit-title { max-width: none; font-size: clamp(1.9rem, 4.2vw, 2.8rem); overflow-wrap: anywhere; }
