:root {
  --paper: #f6f3ec;
  --ink: #161a18;
  --muted: #5c6360;
  --line: #d5d8ce;
  --accent: #1f4f3f;
  --code-bg: #14201b;
  --code-fg: #d5e5db;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- header ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.mark {
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
  flex: none;
}

.mark::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.header-link {
  font-size: 0.85rem;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
}

/* ---------- shared type ---------- */

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- hero ---------- */

.hero {
  padding: 116px 0 104px;
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  line-height: 0.94;
  margin-bottom: 34px;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  line-height: 1.6;
}

/* ---------- band (text + code / list) ---------- */

.band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.band h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  margin-bottom: 18px;
}

.band-text p:not(.eyebrow) {
  color: var(--muted);
}

pre {
  margin: 0;
  padding: 28px 30px;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--code-fg);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.85;
}

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principles article {
  padding: 44px 36px 48px 0;
}

.principles article + article {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.num {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.principles h3 {
  font-size: 1.5rem;
  margin: 16px 0 12px;
}

.principles p {
  color: var(--muted);
  font-size: 0.95rem;
}

.principles code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(31, 79, 63, 0.09);
  color: var(--accent);
  font-size: 0.85em;
}

/* ---------- negative space section ---------- */

.negative {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.negative h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  margin-bottom: 18px;
}

.negative-lede {
  max-width: 560px;
  margin-bottom: 40px;
  color: var(--muted);
}

.negative ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.negative li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.negative li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- sources ---------- */

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.src-note {
  margin-top: 16px;
  font-size: 0.9rem;
}

.source-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.source-list span {
  display: inline-block;
  min-width: 148px;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- contact ---------- */

.contact {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  margin-bottom: 18px;
}

.contact p {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
}

.cta {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  background: #173c30;
}

/* ---------- footer ---------- */

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.disclosure {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.8rem;
}

.colophon a {
  text-decoration: none;
}

.colophon a:hover {
  text-decoration: underline;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .band,
  .principles,
  .negative ul {
    grid-template-columns: 1fr;
  }

  .band {
    gap: 40px;
    padding: 64px 0;
  }

  .principles article,
  .principles article + article {
    padding: 32px 0;
    border-left: 0;
  }

  .principles article + article {
    border-top: 1px solid var(--line);
  }

  .negative li:first-child {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 76px 0 68px;
  }

  .contact {
    padding: 72px 0;
  }

  .source-list span {
    display: block;
    min-width: 0;
  }

  .colophon {
    flex-direction: column;
    gap: 6px;
  }
}
