:root {
  color-scheme: light;
  --background: #f7f7f7;
  --surface: #ffffff;
  --border: #d9d9d9;
  --text: #111111;
  --muted: #555555;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 24px;
}

.page-main-narrow {
  width: min(800px, calc(100% - 32px));
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
}

.hero-panel {
  text-align: center;
  padding: 56px 32px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  line-height: 1.3;
}

p,
li {
  font-size: 1rem;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
}

.meta {
  color: var(--muted);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--text);
  text-decoration: none;
  font-weight: 600;
}

.button-primary {
  background: var(--text);
  color: #ffffff;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--muted);
}

.back-link:hover,
.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
}

.site-footer {
  padding: 0 16px 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

@media (max-width: 640px) {
  .page-main,
  .page-main-narrow {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .panel,
  .hero-panel {
    padding: 24px 20px;
  }

  .hero-panel {
    text-align: left;
  }

  .lead {
    margin-left: 0;
    margin-right: 0;
  }

  .button-row {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
