:root {
  color-scheme: dark;
  --background: #090909;
  --surface: #121212;
  --surface-raised: #181818;
  --text: #f5f2ec;
  --muted: #aaa59c;
  --line: #2b2925;
  --accent: #ff8a3d;
  --accent-soft: #2b1b11;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 138, 61, 0.12), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 138, 61, 0.72);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

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

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #4a2d1a;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

nav a {
  text-decoration: none;
}

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

main {
  padding-block: clamp(64px, 10vw, 112px) 96px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  max-width: 680px;
  margin-bottom: 48px;
  color: #cbc6bc;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 72px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 680;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #16100c;
}

.button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.button.primary:hover {
  color: #16100c;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 18, 18, 0.9);
}

.card h2 {
  margin-bottom: 10px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.document-header {
  max-width: 720px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  font-size: clamp(40px, 7vw, 64px);
}

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

.document {
  max-width: 720px;
  padding-top: 48px;
}

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

.document h2 {
  margin-bottom: 16px;
  font-size: 27px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

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

.document p,
.document li {
  color: #c5c0b7;
}

.document ul {
  padding-left: 1.25em;
}

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

.notice {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid #4a2d1a;
  border-radius: 18px;
  background: var(--accent-soft);
}

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

.contact-card {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-raised);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 18px;
  }

  nav {
    gap: 18px;
  }

  main {
    padding-top: 64px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

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