@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #eef0ec;
  --ink: #202522;
  --muted: #565d57;
  --rule: #c2c8c2;
  --signal: #b23820;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  width: min(100% - 64px, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.masthead {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.wordmark span { color: var(--signal); }

.edition, .overline, .index, .colophon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.manifesto {
  width: min(100%, 820px);
  padding: clamp(64px, 11vh, 116px) 0 74px;
  margin: 0 auto;
  flex: 1;
}

.overline {
  margin: 0 0 24px;
  color: var(--signal);
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.25rem, 5.45vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

h1 span { color: var(--muted); }

.principles-heading {
  margin-top: clamp(60px, 9vh, 94px);
  padding: 0 0 15px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.principles-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.principles-heading > span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.principles li {
  min-height: 65px;
  padding-block: 14px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.45;
}

.index { color: var(--signal); }

.join {
  min-height: 62px;
  margin-top: 34px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--signal);
  color: #fffaf1;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.join:hover { background: #a93420; transform: translateY(-2px); }
.join:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.arrow { font-size: 1.25rem; }

.colophon {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.64rem;
}

@media (max-width: 600px) {
  .page { width: min(100% - 36px, 1180px); }
  .masthead { min-height: 68px; }
  .manifesto { padding: 68px 0 56px; }
  h1 { font-size: clamp(2rem, 9vw, 3.25rem); }
  .principles-heading { margin-top: 58px; }
  .principles li { grid-template-columns: 42px 1fr; min-height: 62px; }
  .colophon { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
