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

:root {
  color-scheme: dark;
  --accent: #ffbf00;
  --canvas: #090909;
  --surface: #111111;
  --surface-raised: #171717;
  --text: #f3f3f3;
  --text-secondary: #a4a4a4;
  --text-tertiary: #717171;
  --border: #292929;
  --divider: #1d1d1d;
  --focus: #f3f3f3;
  --font-small: 13px;
  --font-body: 14px;
  --font-title: 15px;
  --weight-regular: 400;
  --weight-emphasis: 450;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 280px;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #090909;
  font-size: var(--font-small);
  font-weight: var(--weight-emphasis);
  transform: translateY(-160%);
}

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

.shell {
  width: min(100%, calc(var(--content-width) + 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: var(--font-title);
  font-weight: var(--weight-emphasis);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
}

main {
  padding: 64px 0 80px;
}

.page-intro {
  max-width: 620px;
  margin-bottom: 48px;
}

.eyebrow,
.updated,
.meta {
  color: var(--text-tertiary);
  font-size: var(--font-small);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: var(--weight-emphasis);
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-size: var(--font-title);
  font-weight: var(--weight-emphasis);
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 12px;
}

h2 {
  margin-bottom: 10px;
}

h3 {
  margin-bottom: 8px;
}

p,
ul,
ol,
dl {
  margin-bottom: 14px;
}

.lede {
  max-width: 60ch;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: var(--font-title);
}

.updated {
  margin: 0;
}

.prose {
  max-width: 65ch;
}

.prose section {
  padding: 28px 0;
  border-top: 1px solid var(--divider);
  scroll-margin-top: 24px;
}

.prose section:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose section > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose li,
.prose dd {
  color: var(--text-secondary);
}

.prose strong,
.prose dt {
  color: var(--text);
  font-weight: var(--weight-emphasis);
}

.prose ul,
.prose ol {
  padding-left: 20px;
}

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

.prose dt {
  margin-top: 16px;
}

.prose dd {
  margin: 4px 0 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
}

.card {
  min-height: 136px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

.card p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: var(--font-small);
}

.card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: var(--font-small);
  font-weight: var(--weight-emphasis);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #090909;
  font-size: var(--font-small);
  font-weight: var(--weight-emphasis);
  text-decoration: none;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 40px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--border);
}

.contact-card p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: var(--font-small);
}

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

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a,
  .brand,
  .button {
    transition: color 150ms ease, background-color 150ms ease, opacity 150ms ease;
  }

  .footer-links a:hover {
    color: var(--text);
  }

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

  .button:hover {
    background: #ffd04a;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 18px;
  }

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

  main {
    padding: 48px 0 64px;
  }

  .page-intro {
    margin-bottom: 36px;
  }

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

  .card {
    min-height: 0;
  }

  .contact-card,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card {
    gap: 16px;
  }

  .contact-card .button {
    width: 100%;
  }

  .site-footer {
    justify-content: center;
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
