:root {
  --bg: #ffffff;
  --ink: #1f2933;
  --muted: #616e7c;
  --accent: #1d4f7a;
  --line: #e6e9ed;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
}

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

.site-shell {
  width: calc(100% - 2rem);
  margin: 0 auto;
}

.content-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

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

.site-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.site-mark {
  color: var(--ink);
  text-decoration: none;
}

.site-mark strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
}

.site-mark span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 1.12rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.main-content {
  flex: 1 0 auto;
  padding: 3rem 0 4rem;
}

.page-intro,
.page-section,
.page-list {
  margin-top: 2rem;
}

.page-intro:first-child {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.lead {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.link-row a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.6rem;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.item-list {
  display: grid;
  gap: 1.5rem;
}

.item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.item:first-child {
  padding-top: 0;
  border-top: 0;
}

.meta-line {
  margin: 0.35rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
}

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

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

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.pdf-frame {
  width: 100%;
  height: 980px;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-shell,
  .content-shell {
    width: calc(100% - 1.5rem);
  }

  .site-header-inner,
  .site-footer-inner,
  .split-list {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .footer-links {
    gap: 0.75rem;
  }

  .main-content {
    padding: 2rem 0 2.75rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .pdf-frame {
    height: 720px;
  }
}

@media (max-width: 520px) {
  .site-shell,
  .content-shell {
    width: calc(100% - 1rem);
  }

  .site-header-inner {
    padding: 1rem 0;
  }

  .site-mark strong,
  .site-nav a {
    font-size: 1rem;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .site-footer-inner {
    padding: 1rem 0 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  p,
  li,
  .lead {
    font-size: 0.98rem;
  }

  .pdf-frame {
    height: 520px;
  }
}
