:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5d6a63;
  --paper: #f4f0e8;
  --surface: #fffdf7;
  --line: #d8d1c5;
  --accent: #e05d3f;
  --accent-dark: #a83c28;
  --green: #2e6b4e;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 33, 28, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 28, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.home-main,
.content-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.home-main {
  padding: 88px 0 72px;
}

.hero {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  max-width: 670px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
}

.status {
  width: fit-content;
  margin-top: 34px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.6);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d986f;
  box-shadow: 0 0 0 4px rgba(77, 152, 111, 0.14);
}

.principles {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article {
  padding: 28px 30px 34px 0;
}

.principles article + article {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.number {
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

h2 {
  margin: 38px 0 8px;
  font-size: 17px;
}

.principles p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.content-main {
  max-width: 840px;
  padding: 92px 0 104px;
}

.content-main h1 {
  font-size: clamp(46px, 7vw, 78px);
}

.prose {
  max-width: 680px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: #37433c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.prose p {
  margin: 0 0 22px;
}

.prose .updated {
  margin-top: 42px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 13px;
}

.error-main {
  align-self: center;
}

.home-link {
  display: inline-block;
  margin-top: 36px;
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.home-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

footer {
  min-height: 88px;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer a {
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 76px;
  }

  nav {
    gap: 15px;
  }

  .home-main,
  .content-main {
    padding-top: 64px;
  }

  .principles {
    margin-top: 70px;
    grid-template-columns: 1fr;
  }

  .principles article,
  .principles article + article {
    padding: 24px 0 28px;
    border-left: 0;
  }

  .principles article + article {
    border-top: 1px solid var(--line);
  }

  h2 {
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  .site-header,
  footer,
  .home-main,
  .content-main {
    width: min(100% - 28px, 1120px);
  }

  .brand > span:last-child {
    display: none;
  }

  nav {
    font-size: 13px;
  }

  h1 {
    font-size: 49px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark,
  .home-link {
    transition: transform 180ms ease;
  }

  .brand:hover .brand-mark,
  .home-link:hover {
    transform: translateY(-2px);
  }
}
