@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #f3f1f7;
  --muted: #aaa9b7;
  --line: rgba(226, 224, 244, 0.16);
  --accent: #c18ce6;
  --paper: #111219;
  --surface: #191a24;
  --success: #83c89d;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 2%, rgba(122, 71, 168, 0.16), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

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

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

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer,
.page {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.wordmark-mark::after {
  position: absolute;
  top: 1px;
  right: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.site-nav ul,
.site-footer ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.page {
  padding-block: clamp(72px, 11vw, 144px) 96px;
}

.hero {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.document h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
}

.lede {
  max-width: 700px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.section {
  margin-top: clamp(88px, 12vw, 156px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  min-height: 220px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-number {
  display: block;
  margin-bottom: 46px;
  color: var(--accent);
  font-size: 12px;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.quiet-note {
  max-width: 820px;
  margin-top: 84px;
  padding: 34px 0 0 34px;
  border-top: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  font: clamp(2rem, 4vw, 3.6rem)/1.05 var(--serif);
}

.document {
  max-width: 820px;
}

.updated {
  margin-bottom: 68px;
  color: var(--muted);
  font-size: 14px;
}

.document-section {
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.document-section h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.document-section h3 {
  margin: 28px 0 8px;
  font-size: 16px;
}

.document-section p,
.document-section li {
  color: var(--muted);
}

.document-section p:last-child,
.document-section ul:last-child {
  margin-bottom: 0;
}

.document-section strong {
  color: var(--ink);
}

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

.site-footer {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .page {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 78px;
  }

  .site-nav ul {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .wordmark-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .section-heading,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 22px;
  }

  .feature {
    min-height: 190px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
