:root {
  --ink: #1a1714;
  --paper: #f3efe6;
  --paper-2: #e6dfd2;
  --line: #d2c9ba;
  --muted: #655e55;
  --apex: #9d341c;
  --origin: #1e3a34;
  --peer: #3e4d28;
  --adversarial: #5c3b2e;
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", "Liberation Serif", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  border-top: 6px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: -999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.6rem;
}

.skip:focus { left: 1rem; top: 1rem; z-index: 2; }

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

a { color: var(--apex); }

.site-header,
.site-footer {
  padding: 1.15rem 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
}

.wordmark,
nav a,
.kicker,
.rule,
button,
.button,
.event-kind,
.seats th,
label {
  font-family: var(--sans);
}

.wordmark {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

nav a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--apex); }

main {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 4rem;
}

h1, h2, h3 { font-weight: 500; line-height: 1.08; }

h1 {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  letter-spacing: -0.025em;
  margin: 0.25rem 0 1rem;
}

h2 { font-size: 1.7rem; margin: 2rem 0 0.6rem; }

h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }

.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0;
}

.lede { font-size: 1.28rem; max-width: 40rem; }

.quiet { color: var(--muted); }

.axiom {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 1.4rem 0 0.35rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--apex);
}

.rule {
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1rem 2rem;
  align-items: center;
}

.solid svg { width: 100%; height: auto; display: block; }

.solid-label,
.solid-minor {
  font-family: var(--sans);
  fill: var(--ink);
}

.solid-label {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.solid-minor { font-size: 13px; fill: var(--muted); }

.solid figcaption {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  align-items: center;
  margin-top: 1.4rem;
}

button,
.button {
  appearance: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--ink);
}

.text-link { color: var(--ink); }

.sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sequence li { display: flex; align-items: center; }

.sequence li:not(:last-child)::after {
  content: "→";
  margin: 0 0.65rem;
  color: var(--muted);
  letter-spacing: 0;
}

.sequence .done { color: var(--origin); }

.faces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.face {
  border: 1px solid var(--line);
  padding: 0.95rem 1rem 1.1rem;
  min-height: 100%;
}

.face h2 { font-size: 1.2rem; margin: 0.45rem 0; }

.face p,
.split li { margin: 0; }

.swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
}

.swatch.origin { background: var(--origin); }
.swatch.peer { background: var(--peer); }
.swatch.adversarial { background: var(--adversarial); }
.swatch.apex { background: var(--apex); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.split ul { padding-left: 1.1rem; }

.banner,
.error {
  padding: 0.75rem 0.95rem;
}

.banner {
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.error {
  border: 1px solid var(--apex);
  color: var(--apex);
}

.seats {
  width: 100%;
  border-collapse: collapse;
}

.seats th,
.seats td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
}

.seats th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

.seats td { border-bottom: 1px solid var(--line); }

.artifact,
.wiki-index li,
.events li { border-top: 1px solid var(--ink); }

.artifact { padding: 0.4rem 0 1.6rem; }

.wiki-index,
.events { list-style: none; padding: 0; }

.wiki-index li,
.events li { padding: 0.9rem 0; border-top-color: var(--line); }

.wiki-index a {
  color: inherit;
  font-size: 1.45rem;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--line);
}

.wiki-index span,
.event-seat { display: block; color: var(--muted); }

.event-kind {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hash {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.receipt {
  background: var(--ink);
  color: var(--paper);
  padding: 1.15rem 1.2rem 1.3rem;
  margin-top: 1rem;
}

.receipt h3 { margin-top: 0; }

.receipt .hash,
.receipt p { color: #e6dfd2; }

form.act,
.new-artifact form { max-width: 38rem; }

label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

textarea,
input[type="text"] {
  width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.65rem 0.7rem;
}

textarea { resize: vertical; }

.prose { max-width: 40rem; }

.prose h2 { font-size: 1.45rem; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer p {
  width: min(1080px, calc(100% - 3rem));
  margin: 0.25rem auto;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .faces { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  main { width: min(1080px, calc(100% - 1.6rem)); }
  .hero,
  .split,
  .faces { grid-template-columns: 1fr; }
  .seats { display: block; overflow-x: auto; }
}
