:root {
  --bg: #17191c;
  --bg-raised: #1d2024;
  --ink: #ece6d9;
  --ink-muted: #aaa498;
  --line: #34383e;
  --line-soft: #26292e;
  --accent: #e0a95a;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 70rem;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */

.site-header { border-bottom: 1px solid var(--line-soft); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-a { font-weight: 700; }
.wordmark-b { font-weight: 400; color: var(--ink-muted); }
.wordmark-b::before {
  content: "";
  display: inline-block;
  width: .32em;
  height: .32em;
  margin: 0 .12em .08em .1em;
  background: var(--accent);
  vertical-align: baseline;
}

.nav-link {
  font-size: .9375rem;
  color: var(--ink-muted);
  text-decoration: none;
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
}
.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 13ch;
  text-wrap: balance;
}

.lead {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero-figure {
  width: 100%;
  max-width: 22rem;
  height: auto;
  justify-self: end;
  overflow: visible;
}
.hero-figure .guides line {
  stroke: var(--line-soft);
  stroke-width: 1;
}
.hero-figure .module {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.hero-figure .module.accent {
  fill: color-mix(in srgb, var(--accent) 14%, transparent);
  stroke: var(--accent);
}
.hero-figure .module.pending {
  stroke: var(--ink-muted);
  stroke-opacity: .55;
  stroke-dasharray: 6 6;
}
.hero-figure .nodes circle { fill: var(--accent); }

/* Principles */

.principles {
  padding-block: clamp(3rem, 7vw, 5rem);
  scroll-margin-top: 1rem;
}

.principles h2,
.status h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.01em;
}

.principles h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.principle-list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.principle {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.principle-num {
  display: block;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  color: var(--accent);
}

.principle h3 {
  margin-top: .9rem;
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

.principle p {
  margin-top: .5rem;
  color: var(--ink-muted);
  max-width: 30ch;
}

/* Status */

.status { padding-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 9vw, 6.5rem); }

.status-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
}

.status-mark {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: .3rem;
  border: 1.5px dashed var(--ink-muted);
  opacity: .7;
}

.status h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.25; }
.status p { margin-top: .35rem; color: var(--ink-muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.75rem;
  font-size: .875rem;
  color: var(--ink-muted);
}

/* Responsive */

@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-figure {
    order: -1;
    justify-self: start;
    max-width: 9.5rem;
  }
  .principle-list { grid-template-columns: minmax(0, 1fr); }
  .principle p { max-width: 40ch; }
}

@media (max-width: 26rem) {
  .wordmark { font-size: 1.0625rem; }
  .nav-link { font-size: .875rem; }
  .status-mark { display: none; }
}
