:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --text: #1a1f2b;
  --muted: #5a6475;
  --border: #e2e6ee;
  --accent: #3a5bdc;
  --accent-text: #ffffff;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-alt: #161a22;
    --text: #e8ebf2;
    --muted: #9aa3b5;
    --border: #262c38;
    --accent: #7b96ff;
    --accent-text: #0f1218;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand svg {
  flex-shrink: 0;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

/* Hero */

.hero {
  padding: 96px 0 80px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 18ch;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 58ch;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  opacity: 0.9;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section .lead {
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 60ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

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

/* Contact */

.page-title {
  padding: 72px 0 0;
}

.page-title h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.page-title p {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.contact-details {
  margin: 0;
}

.contact-details dt {
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-details dd {
  margin: 0;
  color: var(--muted);
}

address {
  font-style: normal;
}

/* Legal */

.prose .container {
  max-width: 760px;
  margin-left: max(0px, calc((100% - var(--max)) / 2));
}

.prose h2 {
  font-size: 1.25rem;
  margin: 40px 0 8px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  margin: 0 0 16px;
}

.prose .contact-details dd {
  margin-bottom: 12px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 40px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

.copyright {
  margin-top: 32px !important;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

@media (max-width: 560px) {
  .nav {
    gap: 16px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 56px 0;
  }
}
