:root {
  --header-height: 50px;

  --color-text: #111111;
  --color-text-muted: #555555;

  --intro-description: #222222;
  --intro-tagline: #777777;

  --color-page-bg: rgba(240, 240, 240, 1);
  --color-section-bg: rgba(250, 250, 250, 1);
  --color-surface: #ffffff;
  --color-surface-soft: rgba(240, 240, 240, 1);

  --color-border: #cccccc;
  --color-border-soft: #dddddd;
  --color-border-light: #e5e5e5;

  --color-accent: rgba(255, 106, 0, 1);

  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Verdana, Helvetica, sans-serif;
  color: var(--color-text);
  background-color: var(--color-page-bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-width {
  width: min(1100px, calc(100% - 6rem));
  margin: 0 auto;
}

.page-width.wide {
  width: min(1700px, calc(100% - 6rem));
  margin: 0 auto;
}

main {
  padding-top: var(--header-height);
}

section {
  scroll-margin-top: var(--header-height);
}

.section-shell {
  min-height: calc(100vh - var(--header-height));
  padding: 2rem 0;
}

.section-shell--light {
  background-color: var(--color-section-bg);
}

.section-heading {
  margin: 0 auto 5rem;
  text-align: center;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.1;
}

.section-description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.surface-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-soft);
  background-color: var(--color-surface);
}

.site-footer {
  padding: 1rem;
  background-color: var(--color-section-bg);
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  color: #666666;
}

@media (max-width: 768px) {
  .page-width,
  .page-width.wide {
    width: min(100%, calc(100% - 2rem));
  }

  .section-heading {
    margin-bottom: 3rem;
  }
}

/* Keyboard navigation and written pages. */
:focus-visible {
  outline: 3px solid #002ead;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 2000;
  background: white;
  padding: 1rem;
}

.skip-link:focus {
  top: 0.5rem;
}

.prose {
  max-width: 75ch;
  margin-inline: auto;
  line-height: 1.7;
}

button {
  font: inherit;
}
p,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
