:root {
  color-scheme: light;
  --ink: #2a3b47;
  --muted: #73818f;
  --paper: #f5f5f5;
  --white: #ffffff;
  --red: #fc060b;
  --red-dark: #bc0007;
  --accent: #b31d21;
  --line: #d8d8d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.72;
}

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

a:hover {
  color: var(--red-dark);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem max(6vw, calc((100vw - 1120px) / 2));
  background: var(--red);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1.1;
  text-decoration: none;
}

.wordmark-logo {
  width: 6rem;
  height: 2.55rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  /* background: var(--red-dark); */
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

.site-nav a {
  color: white;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.landing {
  width: min(100% - 3rem, 820px);
  margin: clamp(4rem, 10vw, 8rem) auto;
}

.eyebrow,
.document-number,
.meta,
.site-footer,
.back-link,
.document-link small {
  font-family: Arial, sans-serif;
}

.eyebrow {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

h1,
h2,
h3 {
  color: var(--red-dark);
  line-height: 1.18;
}

.landing h1 {
  margin: 1.1rem 0;
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.landing h1 span {
  color: var(--accent);
  font-style: italic;
}

.intro {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.12rem;
}

.document-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.document-link {
  display: grid;
  grid-template-columns: 2.5rem 1fr 1.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.document-link:hover strong {
  color: var(--red);
}

.document-number {
  color: var(--accent);
  font-size: 0.76rem;
}

.document-link strong,
.document-link small {
  display: block;
}

.document-link strong {
  font-size: 1.15rem;
  font-weight: 400;
}

.document-link small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.arrow {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
}

.document {
  width: min(100% - 2rem, 780px);
  margin: 3.2rem auto 5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--white);
  box-shadow: 0 18px 60px rgb(52 38 22 / 6%);
}

.document .eyebrow {
  margin: 0 0 0.6rem;
}

.document h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.meta {
  margin: 0.8rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.document h2 {
  margin: 2.4rem 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.document h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.05rem;
}

.document p,
.document li {
  color: var(--ink);
  font-size: 1rem;
}

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

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

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--paper);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(6vw, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .wordmark-logo {
    width: 5.25rem;
    height: 2.25rem;
  }

  .site-nav {
    gap: 0.5rem 1rem;
  }

  .landing {
    width: min(100% - 2.5rem, 820px);
    margin: 3.5rem auto;
  }

  .document-link {
    grid-template-columns: 2rem 1fr 1rem;
    gap: 0.65rem;
  }

  .site-footer {
    flex-direction: column;
    padding: 1.3rem 1.25rem;
  }
}

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