:root {
  --paper: #f7f4ec;
  --paper-deep: #efe8db;
  --ink: #1f2422;
  --muted: #666d69;
  --line: rgba(41, 40, 34, 0.15);
  --accent: #0d5f60;
  --accent-soft: rgba(13, 95, 96, 0.14);
  --shell-width: min(860px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(92, 103, 108, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(92, 103, 108, 0.055) 1px, transparent 1px);
  background-size: 2rem 2rem;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.22), transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.22), transparent 90%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 95, 96, 0.3);
}

a:hover,
a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

h3 {
  font-size: 1.08rem;
}

p,
ul {
  margin: 0 0 1rem;
}

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

.mark-sup {
  font-size: 0.45em;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.06em;
}

.alias-note,
.alias-line {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border-bottom: 0;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}

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

.site-shell {
  width: var(--shell-width);
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

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

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

.brand {
  color: var(--ink);
  border-bottom: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

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

.site-nav a {
  color: var(--muted);
  border-bottom: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.home-main,
.subpage-main {
  display: grid;
}

.hero {
  position: relative;
  padding: clamp(2.75rem, 9vw, 5.25rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 4.5rem;
  height: 1px;
  background: var(--accent);
}

.hero::after {
  content: "";
  position: absolute;
  top: 1.27rem;
  left: 4.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 10vw, 6.2rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.lede {
  max-width: 44rem;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.alias-line {
  max-width: 44rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-intro {
  max-width: 38rem;
  color: var(--muted);
}

.hero-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.3rem;
}

.hero-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.hero-links li {
  position: relative;
}

.hero-links li + li::before {
  content: "/";
  position: absolute;
  left: -0.85rem;
  color: var(--line);
}

.hero-links a,
.footer-links a {
  border-bottom-color: rgba(13, 95, 96, 0.2);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.25rem;
}

.content-section,
.page-header {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

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

.page-header {
  max-width: 44rem;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

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

.section-heading h2 {
  max-width: 36rem;
}

.split-grid,
.card-grid {
  display: grid;
  gap: 1.5rem 2rem;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 0;
  background: none;
  border: 0;
}

.bullet-list,
.link-list {
  padding-left: 1.2rem;
}

.bullet-list li,
.link-list li {
  margin-bottom: 0.45rem;
}

.document-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.document-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.document-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.document-list a {
  font-weight: 600;
}

.document-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.document-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  font-weight: 600;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

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

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

  .split-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 1rem, 980px);
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }
}

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