:root {
  color-scheme: light;
  --background: #f5f6f8;
  --surface: #ffffff;
  --text: #191b22;
  --muted: #656b78;
  --line: #e3e6eb;
  --accent: #d64136;
  --accent-dark: #b92f27;
  --shadow: 0 20px 60px rgba(25, 27, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(214, 65, 54, 0.08), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0;
}

.site-header .site-shell,
.site-footer .site-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: -0.06em;
  box-shadow: 0 7px 18px rgba(214, 65, 54, 0.24);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

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

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.home {
  display: grid;
  min-height: calc(100vh - 9rem);
  place-items: center;
  padding: 5rem 0 8rem;
  text-align: center;
}

.home-card {
  width: min(100%, 44rem);
  padding: clamp(2.25rem, 7vw, 5rem);
  border: 1px solid rgba(227, 230, 235, 0.9);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.home-logo {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.75rem;
  place-items: center;
  border-radius: 1.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: -0.08em;
  box-shadow: 0 14px 30px rgba(214, 65, 54, 0.25);
}

.home h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.home p {
  max-width: 32rem;
  margin: 1.25rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 0.85rem;
  background: var(--text);
  color: #fff;
  font-weight: 720;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #30333d;
  color: #fff;
}

.document {
  width: min(100% - 2rem, 52rem);
  margin: 2rem auto 5rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.document h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.updated {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.document section {
  scroll-margin-top: 1rem;
}

.document h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.document h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1.05rem;
}

.document p {
  margin: 0.7rem 0;
}

.document ul {
  margin: 0.75rem 0;
  padding-left: 1.35rem;
}

.document li + li {
  margin-top: 0.4rem;
}

.document .intro {
  margin-top: 2rem;
  font-size: 1.06rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(214, 65, 54, 0.35);
  outline-offset: 4px;
}

@media (max-width: 42rem) {
  .site-header .site-shell,
  .site-footer .site-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .home {
    min-height: auto;
    padding: 3rem 0 6rem;
  }

  .home-card {
    border-radius: 1.35rem;
  }

  .document {
    margin-top: 1rem;
    border-radius: 1.15rem;
  }
}

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

  .button {
    transition: none;
  }
}
