:root {
  --color-black: #1f1f1f;
  --color-grey: #4a4a4a;
  --color-light-grey: #d0d0d0;
  --color-white: #ffffff;
  --color-rust: #e09933;
  --color-light-rust: #f8f7f4;
  --site-width: 1120px;
  --border: 1px solid var(--color-light-grey);
  --shadow: 0 1px 0 rgba(31, 31, 31, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Alegreya", serif;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.35;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 48px), var(--site-width));
  margin: 0 auto;
}

.narrow {
  max-width: 1080px;
}

.site-header {
  padding-top: 30px;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: var(--border);
}

.brand {
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-style: italic;
}

.top-nav a::after {
  content: " /";
}

.top-nav a:last-child::after {
  content: "";
}

.section {
  padding: 26px 0;
}

.section-tight {
  padding-top: 10px;
}

.hero {
  padding: 40px 0 34px;
}

.hero-grid,
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 52px;
  align-items: start;
}

.hero-copy {
  padding-top: 8px;
}

.eyebrow,
.section-tag {
  margin-bottom: 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero h1,
h2 {
  margin: 0 0 14px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.75rem, 7vw, 5.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2.1rem, 3.7vw, 3.3rem);
  font-weight: 800;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.25rem);
  line-height: 1;
}

.hero-lead,
.method-subhead,
.panel-lead {
  font-size: clamp(1.8rem, 2.7vw, 2.4rem);
  margin-bottom: 8px;
}

.hero-subhead,
.body-copy,
.panel p,
.closing-copy p,
.intake-card p,
.footer-panel p,
.bullet-list,
.definition-list,
.number-list {
  font-size: clamp(1.3rem, 1.75vw, 1.7rem);
}

.hero-subhead,
.emphasis {
  font-style: italic;
}

.intake-card,
.panel,
.footer-panel {
  border: var(--border);
  background: var(--color-light-rust);
  box-shadow: var(--shadow);
}

.intake-card {
  padding: 28px 30px;
}

.intake-card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 10px;
}

.button {
  display: inline-block;
  margin: 14px 0 10px;
  padding: 13px 20px;
  background: var(--color-rust);
  color: var(--color-white);
  font-size: 1.7rem;
  font-weight: 700;
}

.button:hover,
.button:focus-visible {
  background: var(--color-black);
}

.button-outline {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-rust);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--color-rust);
  color: var(--color-white);
}

.text-link {
  color: var(--color-rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.card-divider {
  margin: 12px 0 10px;
  border-top: var(--border);
}

.service-list,
.bullet-list,
.definition-list,
.number-list {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li,
.location {
  margin-bottom: 4px;
}

.panel {
  padding: 28px 32px;
}

.accent-panel {
  border-left: 4px solid var(--color-rust);
}

.section-tag {
  color: var(--color-grey);
  margin-bottom: 2px;
}

.definition-list {
  margin-top: 24px;
  list-style: none;
  padding-left: 0;
}

.definition-list li {
  margin-bottom: 10px;
  font-style: italic;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.number-list {
  padding-left: 1.3rem;
}

.emphasis {
  margin-top: 18px;
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
}

.strong {
  font-weight: 700;
}

.centered-panel {
  padding-top: 30px;
  padding-bottom: 32px;
}

.centered-copy {
  text-align: center;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  margin-bottom: 6px;
}

.library-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.library-card {
  display: block;
  min-height: 100%;
  padding: 24px;
  border: var(--border);
  background: var(--color-light-rust);
  box-shadow: var(--shadow);
}

.library-card h3 {
  margin-bottom: 10px;
}

.library-card p:last-child {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
}

.rule-block {
  border-left: 4px solid var(--color-rust);
  padding-left: 12px;
}

.guardrails-grid {
  margin-top: 8px;
  margin-bottom: 22px;
}

.closing-copy {
  align-self: center;
  padding-right: 24px;
}

.closing-copy h2 {
  max-width: 12ch;
}

.intake-card-compact {
  background: var(--color-white);
}

.site-footer {
  padding: 12px 0 24px;
}

.footer-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding: 24px 20px;
  background: var(--color-light-rust);
}

.footer-center,
.footer-right {
  text-align: center;
}

.footer-right {
  justify-self: end;
}

@media (max-width: 980px) {
  .hero-grid,
  .closing-grid,
  .two-column,
  .footer-panel,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-intro,
  .hero-grid,
  .closing-grid {
    gap: 32px;
  }

  .library-intro {
    align-items: start;
  }

  .top-nav,
  .footer-center,
  .footer-right {
    text-align: left;
    justify-content: flex-start;
  }

  .footer-right {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--site-width));
  }

  .site-header {
    padding-top: 22px;
  }

  .header-bar {
    gap: 14px;
    align-items: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .panel,
  .intake-card,
  .footer-panel {
    padding: 22px 18px;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
