:root {
  --bg: #100f0c;
  --bg-alt: #181611;
  --paper: #e8e0ce;
  --ink: #f0eadc;
  --ink-paper: #16140f;
  --muted: #9c9588;
  --line: #2e2b24;
  --accent: #c9a45c;
  --strike: #b85c3c;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 4px;
  --max: 1080px;
  --space: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--accent);
  color: var(--ink-paper);
  padding: 8px 16px;
  z-index: 100;
}
.skip:focus { top: 8px; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.prose {
  max-width: 40rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--ink);
}
.logo-place {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--accent);
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: rgba(201, 164, 92, 0.12); text-decoration: none; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h1, h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero h1, .page-hero h1, .section-head h2, .svc h2 {
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
  max-width: 16ch;
  overflow-wrap: normal;
  word-break: normal;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 8px 20px;
  font: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--ink-paper);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.hero-points {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Ledger (paper dying) */
.ledger {
  background: var(--paper);
  color: var(--ink-paper);
  border-radius: var(--radius);
  padding: 16px 16px 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  box-shadow: 8px 8px 0 #000;
}
.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 8px;
  border-bottom: 1px dashed #c9c0ac;
}
.ledger-head {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a6458;
  border-bottom: 1px solid #c9c0ac;
}
.ledger-row.strike span:first-child {
  text-decoration: line-through;
  text-decoration-color: var(--strike);
  text-decoration-thickness: 2px;
  color: #6a6458;
}
.ledger-row.strike span:last-child { color: var(--strike); }
.ledger-row.keep {
  border-bottom: 0;
  font-weight: 600;
}
.ledger-row.keep span:last-child { color: #3d5a32; }
.ledger-cap {
  margin-top: 16px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

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

/* Map */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); max-width: 40rem; }

.map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.map a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.map a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.map a.hl {
  background: var(--paper);
  color: var(--ink-paper);
  border-color: var(--paper);
}
.map a.hl:hover { filter: brightness(1.04); }
.map .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.map a.hl .tag { color: var(--strike); }
.map h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.map p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: auto;
}
.map a.hl p { color: #5c564a; }

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  counter-reset: step;
}
.steps li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 8px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.steps strong { font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: 0.92rem; }

/* About / CTA */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 16rem;
  gap: 48px;
  align-items: start;
}
.about-card {
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
}
.about-card h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-card ul { list-style: none; display: grid; gap: 8px; color: var(--muted); }
.about p { margin-bottom: 16px; color: var(--muted); max-width: 40rem; }
.about p strong { color: var(--ink); }

.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-rows { display: grid; gap: 8px; margin-top: 24px; }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}
.contact-row:hover { text-decoration: none; }
.contact-row .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row .value { font-weight: 600; }

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); }

/* Services page */
.page-hero { padding: 48px 0 16px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  max-width: 18ch;
}

.svc-list { display: grid; gap: 8px; }
.svc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg-alt);
}
.svc.hl {
  background: var(--paper);
  color: var(--ink-paper);
  border-color: var(--paper);
}
.svc .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.svc.hl .tag { color: var(--strike); }
.svc h2 { font-size: 1.6rem; margin-bottom: 12px; }
.svc p { max-width: 40rem; margin-bottom: 12px; }
.svc.hl p { color: #3f3b32; }
.svc ul {
  margin: 8px 0 16px 1.2rem;
  max-width: 40rem;
  color: var(--muted);
}
.svc.hl ul { color: #3f3b32; }
.price {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 16px;
}
.svc.hl .price { color: var(--ink-paper); }
.price-note {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font);
  margin-top: 4px;
}
.svc.hl .price-note { color: #5c564a; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner .logo-mark { display: block; margin-bottom: 8px; }
.footer-inner p { color: var(--muted); font-size: 0.9rem; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--muted); }

.note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .nav-cta {
    margin-top: 16px;
    justify-content: center;
    border-bottom: 1px solid var(--accent);
  }
  .hero-grid,
  .cta-box,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .map { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
  .hero h1 { max-width: 12ch; font-size: 2rem; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .container { width: min(var(--max), calc(100% - 24px)); }
}
