:root {
  color-scheme: dark;
  --background: #06060b;
  --heading: #f0edf5;
  --text: #c2becb;
  --muted: #aaa4b5;
  --accent: #bda8ff;
  --border: #27232f;
  --content-width: 740px;
  --gutter: clamp(20px, 5vw, 32px);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

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

.site-header, .site-footer, .document {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  padding-block: 22px;
}

.site-brand {
  color: var(--heading);
  font-weight: 650;
  text-decoration: none;
}

.document {
  padding-block: clamp(36px, 7vw, 72px) 56px;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.contact-page { min-height: 100svh; }

.contact-document {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(48px, 10vw, 96px);
}

.contact-document h1 { margin-block-end: 20px; }

.contact-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--background);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}

.contact-action:hover { background: #cdbbff; }

.contact-document .contact-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
}

.document h1, .document h2, .document h3 {
  color: var(--heading);
  line-height: 1.2;
  text-wrap: pretty;
}

.document h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 7vw, 3.25rem);
  letter-spacing: -0.035em;
}

.document h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.document h3 {
  margin: 24px 0 8px;
  font-size: 1.0625rem;
}

.document p, .document ul {
  margin: 0 0 12px;
}

.document ul { padding-inline-start: 24px; }

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

.document section + section { margin-block-start: 32px; }

.document section > :last-child { margin-block-end: 0; }

.document .document-date {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.document h1:has(+ .document-date) {
  margin-block-end: 10px;
}

.document h1 + .document-date {
  margin: 0 0 28px;
}

.site-footer {
  padding-block: 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 4px;
  font-size: 0.875rem;
}

.footer-links a {
  padding-block: 6px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover, .footer-links a[aria-current="page"] {
  color: var(--heading);
  text-decoration: underline;
}

.footer-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
