:root {
  --bg: #0d0d0c;
  --bg-raise: #141310;
  --fg: #f0eee8;
  --muted: #9c978c;
  --line: #2a2823;
  --line-strong: #3d3a32;
  --card: #161512;
  --accent: #d8b36a;
  --accent-ink: #1a1408;
  --max: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --header-h: 4.25rem;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: var(--sans);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 1.025rem;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }
img { max-width: 100%; }

::selection {
  background: color-mix(in srgb, var(--accent) 35%, var(--bg));
  color: var(--fg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 2rem 0 2.5rem;
}

.nav {
  display: flex;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.nav-links {
  display: flex;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  padding: 0.2rem 0;
}

.nav-links a:hover { color: var(--fg); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 0.95rem;
  height: 1.2rem;
  flex: none;
  display: block;
}



.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero {
  padding: clamp(3.5rem, 9vw, 6.25rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.4vw, 4.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  max-width: 11.5em;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 32rem;
  margin: 0;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0.4rem;
  padding: 0.72rem 1.05rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn-ghost:hover { border-color: var(--fg); }

.what-we-do {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0.35rem;
  padding: 1.25rem 1.3rem 1.35rem;
  max-width: 28rem;
  margin-top: 2.35rem;
}

.what-we-do p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

section {
  padding: clamp(3.25rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

#offers,
#process {
  background: color-mix(in srgb, var(--bg-raise) 70%, var(--bg));
}

.section-head { max-width: 40rem; }

.section-head h2,
.book-panel h2,
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
}

.section-head p { color: var(--muted); margin: 0; }

.manifesto-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.manifesto-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.manifesto-list strong {
  font-weight: 600;
}

.manifesto-list span {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.2rem 1.25rem 1.3rem;
}

.card h3 {
  margin: 0.55rem 0 0.5rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.steps li {
  padding: 1.15rem 0 1.15rem 3rem;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--muted);
}

.steps li strong {
  display: block;
  color: var(--fg);
  margin-bottom: 0.15rem;
}

.steps li::before {
  content: none;
  display: none;
}

.book-panel {
  display: grid;
  gap: 1.5rem 3rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.book-panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  max-width: 16ch;
}

.book-panel p { color: var(--muted); }

.book-side { align-self: end; }

.book-cta-row { margin: 0 0 0.75rem; }

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 36rem;
}

.footer-grid {
  display: flex;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand { margin: 0 0 0.4rem; }

.legal { padding: 3.25rem 0 4.5rem; }

.legal-updated {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal h1 {
  margin: 0.7rem 0 0.85rem;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.legal h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.05rem;
}

.legal p,
.legal li { color: var(--muted); }

.error-page {
  min-height: calc(100vh - 10rem);
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  margin: 0.5rem 0 0.85rem;
}

.error-page p { color: var(--muted); max-width: 32rem; }

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.75fr);
  }

  .book-panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(14rem, 0.7fr);
    align-items: end;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manifesto-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
}

@media (min-width: 960px) {
  .offers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { backdrop-filter: none; }
}

.book-embed {
  margin-top: 1.25rem;
  width: min(100%, 40rem);
}
.book-embed iframe {
  max-width: 100%;
  background: transparent;
}

.concepts {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede-secondary {
  margin-top: 0.85rem;
  font-size: 1.02rem;
}

.what-we-do p + p {
  margin-top: 0.75rem;
}

#problems {
  background: color-mix(in srgb, var(--bg-raise) 40%, var(--bg));
}

.problem-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 44rem;
}

.problem-list li {
  padding: 1rem 0 1rem 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  position: relative;
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.book-cta-label {
  margin: 1.75rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

#book .section-head p + p {
  margin-top: 0.65rem;
}
