@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/geist-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/geist-mono.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #081017;
  --line: #223140;
  --text: #e9e4d8;
  --muted: #8fa0b3;
  --link: #a8c8ea;
  --link-hover: #cfe1f4;
  --accent: #74d6a8;
  --font-interface: "Geist", Inter, system-ui, sans-serif;
  --font-data: "Geist Mono", "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(233, 228, 216, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 228, 216, 0.028) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: var(--font-interface);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

::selection {
  color: var(--text);
  background: var(--line);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--accent);
  font: 500 12px var(--font-data);
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--ink);
  transform: translateY(0);
}

.shell {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  padding: 64px 0 48px;
}

.shell--document {
  max-width: 760px;
}

.frame {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.site-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font: 500 13px var(--font-data);
  letter-spacing: 0.18em;
}

.brand:hover {
  color: var(--text);
}

.context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 400 12px var(--font-data);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.hero {
  max-width: 688px;
  padding: 56px 24px 48px;
}

.hero h1,
.document h1 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
}

.hero p,
.document p {
  color: var(--muted);
  text-wrap: pretty;
}

.hero p {
  max-width: 640px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.projects,
.data-note,
.site-footer {
  border-top: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.project {
  min-height: 190px;
  padding: 24px;
  background: var(--ink);
}

.project,
.project-copy {
  display: flex;
  flex-direction: column;
}

.project-copy {
  flex: 1;
  gap: 10px;
}

.eyebrow {
  color: var(--muted);
  font: 500 11px var(--font-data);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

.project-link {
  margin-top: 18px;
  font: 400 12px var(--font-data);
}

.data-note {
  max-width: 100%;
  padding: 28px 24px;
}

.data-note__inner {
  max-width: 700px;
}

.data-note h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font: 500 11px var(--font-data);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-note p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
}

.data-note p:last-child {
  margin-bottom: 0;
}

.data-note strong {
  color: var(--text);
  font-weight: 500;
}

.site-footer {
  flex-wrap: wrap;
  color: var(--muted);
  font: 400 12px var(--font-data);
}

.footer-contact {
  margin-left: auto;
}

.document {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.effective-date {
  margin: 0 0 8px !important;
  color: var(--accent) !important;
  font: 400 12px var(--font-data) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document h1 {
  margin-bottom: 28px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
}

.document .lede {
  margin: 0 0 36px;
}

.document h2 {
  display: flex;
  gap: 10px;
  margin: 32px 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.document h2:first-of-type {
  margin-top: 0;
}

.section-number {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-data);
  font-weight: 400;
}

.document p,
.document li {
  font-size: 15px;
  line-height: 1.8;
}

.document p {
  margin: 0 0 14px;
}

.document ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
}

.document li + li {
  margin-top: 8px;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font: 400 13px var(--font-data);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 960px);
    padding-top: 32px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .shell {
    width: 100%;
    padding: 0;
  }

  .frame {
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }

  .site-header,
  .site-footer,
  .hero,
  .project,
  .data-note,
  .document {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .document {
    padding-top: 40px;
  }

  .footer-contact {
    width: 100%;
    margin-left: 0;
  }
}

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