:root {
  --paper: #fcfbf8;
  --paper-alt: #f3f0e9;
  --ink: #14181d;
  --ink-soft: #4b5560;
  --line: #ded8cb;
  --accent: #1d6b4f;
  --accent-ink: #12523c;
  --card: #ffffff;
  --radius: 10px;
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141a;
    --paper-alt: #161c24;
    --ink: #eef2f6;
    --ink-soft: #a3aeba;
    --line: #26303c;
    --accent: #58c79b;
    --accent-ink: #7fd9b4;
    --card: #19202a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: ui-serif, Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }

a { color: var(--accent-ink); }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.6rem 1rem; z-index: 10; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid var(--line); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--paper); } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { color: var(--accent); flex: none; }
nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.95rem; }
nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover { color: var(--ink); }
.nav-cta { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
@media (max-width: 40rem) {
  nav a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 1rem; font: 600 0.78rem/1 ui-monospace, "SFMono-Regular", monospace; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-ink); }
h1 { margin: 0 0 1.1rem; font-size: clamp(2.3rem, 6vw, 3.9rem); max-width: 18ch; }
.lede { margin: 0; max-width: 60ch; font-size: 1.12rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }

.btn { display: inline-block; padding: 0.8rem 1.4rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #08110d; } }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.75rem 0 0; padding: 0; }
.facts div { margin: 0; }
.facts dt { font: 600 0.75rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.facts dd { margin: 0.4rem 0 0; font-family: ui-serif, Georgia, serif; font-size: 1.6rem; }

/* Sections */
/* The header is sticky, so anchor targets need room or their heading hides behind it. */
.section, .hero { scroll-margin-top: 4.5rem; }
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-title { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.section-lede { margin: 0 0 2.25rem; max-width: 62ch; color: var(--ink-soft); }

/* Work cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card-role { margin: 0; }
.card-meta { margin: 0; font-size: 0.87rem; color: var(--ink-soft); }
.card-link { margin-top: auto; font-size: 0.9rem; font-family: ui-monospace, monospace; word-break: break-all; }
.tag { flex: none; font: 600 0.7rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.35rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.tag-live { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .tag-live { color: #08110d; } }

/* Services and steps */
.services { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.services li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.services h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.price { margin: 0 0 0.6rem; font: 600 0.8rem/1.4 ui-monospace, monospace; color: var(--accent-ink); }
.services p:last-child { margin: 0; color: var(--ink-soft); }
.note { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.steps { margin: 0; padding: 0 0 0 1.2rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.steps li::marker { font-family: ui-monospace, monospace; color: var(--accent); font-weight: 700; }
.steps h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Form */
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
textarea { resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.status { margin: 0; min-height: 1.5rem; font-size: 0.95rem; }
.status.ok { color: var(--accent-ink); font-weight: 600; }
.status.err { color: #b3261e; font-weight: 600; }
@media (prefers-color-scheme: dark) { .status.err { color: #ff8a80; } }
.fallback { margin: 1.75rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--ink-soft); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
