:root {
  --seo-reading: 780px;
}

.subpage {
  background: var(--ivory);
}

.subpage .site-header {
  position: sticky;
  top: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  color: rgba(244, 240, 233, 0.56);
  font-size: 0.82rem;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--copper);
}

.breadcrumb a {
  text-underline-offset: 4px;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 9vw, 132px) 0 clamp(70px, 8vw, 112px);
  background:
    linear-gradient(rgba(244, 240, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 233, 0.035) 1px, transparent 1px),
    var(--asphalt);
  background-size: 96px 96px;
  color: var(--paper);
}

.inner-hero::after {
  content: "//";
  position: absolute;
  right: 4vw;
  bottom: -0.3em;
  color: rgba(196, 134, 90, 0.1);
  font-family: var(--display);
  font-size: clamp(10rem, 27vw, 28rem);
  font-weight: 700;
  letter-spacing: -0.2em;
  line-height: 0.8;
  pointer-events: none;
}

.inner-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(270px, 0.58fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: end;
}

.inner-hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 7.6rem);
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.inner-hero h1 em {
  display: block;
  color: var(--copper-light);
  font-style: normal;
}

.inner-hero-lead {
  max-width: 790px;
  margin: 30px 0 0;
  color: rgba(244, 240, 233, 0.72);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-side-note {
  padding: 26px 0 0 26px;
  border-top: 2px solid var(--copper);
  color: rgba(244, 240, 233, 0.65);
}

.hero-side-note strong {
  display: block;
  margin-bottom: 12px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.05;
}

.hero-side-note p {
  margin: 0;
}

.hero-side-note a {
  display: inline-block;
  margin-top: 22px;
  color: var(--copper-light);
  font-weight: 800;
  text-underline-offset: 6px;
}

.fact-strip {
  background: var(--copper);
}

.fact-strip .shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-strip span,
.fact-strip a {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 17px 22px;
  border-left: 1px solid rgba(17, 19, 21, 0.22);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.fact-strip a {
  text-decoration: none;
}

.fact-strip a:hover,
.fact-strip a:focus-visible {
  background: rgba(255, 253, 249, 0.16);
}

.fact-strip span:last-child,
.fact-strip a:last-child {
  border-right: 1px solid rgba(17, 19, 21, 0.22);
}

.page-section {
  padding: clamp(72px, 9vw, 126px) 0;
}

.page-section-light {
  background: var(--paper);
}

.page-section-dark {
  background: var(--graphite);
  color: var(--paper);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 100px);
  margin-bottom: clamp(48px, 7vw, 86px);
}

.section-intro h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.section-intro > p:last-child,
.section-intro div > p {
  max-width: 830px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.page-section-dark .section-intro > p:last-child,
.page-section-dark .section-intro div > p {
  color: rgba(244, 240, 233, 0.65);
}

.page-index {
  margin: 0;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-grid,
.resource-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.service-card,
.resource-card,
.related-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-visible,
.resource-card:hover,
.resource-card:focus-visible,
.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--copper);
  box-shadow: 0 22px 48px rgba(17, 19, 21, 0.11);
}

.service-card > span,
.resource-card > span,
.related-card > span {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card h3,
.resource-card h2,
.resource-card h3,
.related-card h3 {
  margin: 42px 0 16px;
  font-size: clamp(1.75rem, 2.5vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.service-card p,
.resource-card p,
.related-card p {
  margin: 0;
  color: var(--ink-soft);
}

.service-card strong,
.resource-card strong,
.related-card strong {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 25px;
  font-size: 0.88rem;
}

.service-card strong::after,
.resource-card strong::after,
.related-card strong::after {
  content: "↗";
  color: var(--copper);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 112px;
}

.article-aside > p {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-aside nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.article-aside nav a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.article-aside nav a:hover,
.article-aside nav a:focus-visible {
  color: var(--asphalt);
}

.article-body {
  max-width: var(--seo-reading);
}

.article-body > p:first-child,
.article-deck {
  margin-top: 0;
  color: var(--graphite);
  font-size: 1.22rem;
  line-height: 1.65;
}

.article-body h2 {
  margin: 76px 0 22px;
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  scroll-margin-top: 112px;
}

.article-body h3 {
  margin: 42px 0 14px;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.article-body p,
.article-body li {
  color: #454a49;
  font-size: 1.03rem;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  padding-left: 1.25rem;
}

.article-body a:not(.button) {
  color: #764523;
  font-weight: 750;
  text-underline-offset: 4px;
}

.decision-box,
.expert-note,
.definition-box {
  margin: 38px 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 16px;
}

.decision-box {
  border-left: 4px solid var(--copper);
  background: var(--asphalt);
  color: var(--paper);
}

.decision-box strong,
.expert-note strong,
.definition-box strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.45rem;
}

.decision-box p {
  margin: 0;
  color: rgba(244, 240, 233, 0.72);
}

.expert-note {
  border: 1px solid rgba(196, 134, 90, 0.5);
  background: #f4e7da;
}

.expert-note p,
.definition-box p {
  margin: 0;
}

.definition-box {
  border: 1px solid var(--line);
  background: var(--paper);
}

.metric-table {
  width: 100%;
  margin: 34px 0;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.92rem;
}

.metric-table th,
.metric-table td {
  padding: 15px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.metric-table th {
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 30px;
  color: rgba(244, 240, 233, 0.52);
  font-size: 0.82rem;
}

.author-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.author-monogram {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--asphalt);
  color: var(--copper-light);
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
}

.author-box h2,
.author-box h3 {
  margin: 0 0 7px;
  font-size: 1.8rem;
}

.author-box p {
  margin: 0;
  color: var(--ink-soft);
}

.author-box a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.cta-band {
  margin: 0 16px 16px;
  padding: clamp(64px, 8vw, 104px) 0;
  border-radius: 24px;
  background: var(--graphite);
  color: var(--paper);
}

.cta-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px 70px;
  align-items: end;
}

.cta-band h2 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5.2vw, 5.9rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.cta-band p {
  max-width: 710px;
  margin: 0;
  color: rgba(244, 240, 233, 0.64);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 20px 42px;
  margin: 0 0 38px;
  padding: 38px 0;
  border-top: 1px solid rgba(244, 240, 233, 0.14);
  border-bottom: 1px solid rgba(244, 240, 233, 0.14);
}

.footer-nav div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-nav strong {
  margin-bottom: 7px;
  color: var(--copper-light);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(244, 240, 233, 0.64);
  font-size: 0.86rem;
  text-decoration: none;
}

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

.seo-gateway {
  background: var(--paper);
}

.seo-gateway .resource-card {
  background: var(--ivory);
}

.mission-copy > .arrow-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.84rem;
}

.mission-row-accent .mission-copy > .arrow-link {
  color: var(--asphalt);
}

.footer-bottom a {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-quote {
  max-width: 1000px;
  margin: 0;
  padding-left: 26px;
  border-left: 3px solid var(--copper);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-option {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 18px;
  background: var(--paper);
}

.contact-option span {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-option h2 {
  margin: 52px 0 10px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

.contact-option p {
  color: var(--ink-soft);
}

.contact-option a {
  margin-top: auto;
  font-size: 1.08rem;
  font-weight: 850;
  text-underline-offset: 6px;
}

@media (max-width: 980px) {
  .inner-hero-grid,
  .article-layout,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .hero-side-note {
    max-width: 650px;
  }

  .article-aside {
    position: static;
  }

  .article-aside nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-aside nav a:nth-child(odd) {
    padding-right: 18px;
  }

  .service-grid,
  .resource-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-strip .shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-strip span:nth-child(2),
  .fact-strip a:nth-child(2) {
    border-right: 1px solid rgba(17, 19, 21, 0.22);
  }

  .fact-strip span:nth-child(-n + 2),
  .fact-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(17, 19, 21, 0.22);
  }
}

@media (max-width: 720px) {
  .subpage .site-header {
    position: sticky;
  }

  .inner-hero {
    padding-top: 58px;
  }

  .inner-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .service-grid,
  .resource-grid,
  .related-grid,
  .contact-options,
  .footer-nav,
  .cta-band-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .resource-card,
  .related-card {
    min-height: 290px;
  }

  .article-aside nav {
    grid-template-columns: 1fr;
  }

  .article-aside nav a:nth-child(odd) {
    padding-right: 0;
  }

  .author-box {
    grid-template-columns: 76px 1fr;
  }

  .cta-band {
    margin: 0 8px 8px;
  }
}

@media (max-width: 480px) {
  .fact-strip .shell {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .fact-strip span,
  .fact-strip a,
  .fact-strip span:nth-child(2),
  .fact-strip a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 19, 21, 0.22);
  }

  .metric-table {
    font-size: 0.8rem;
  }

  .metric-table th,
  .metric-table td {
    padding: 11px 9px;
  }
}

/* Final polish — readable labels and resilient data tables */

.page-section:not(.page-section-dark) .page-index,
.service-card > span,
.resource-card > span,
.related-card > span,
.article-aside > p,
.contact-option span {
  color: var(--copper-ink);
}

.fact-strip span,
.fact-strip a,
.footer-nav a,
.mission-copy > .arrow-link {
  font-size: 0.875rem;
}

.metric-table {
  table-layout: fixed;
}

.metric-table th,
.metric-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .metric-table {
    font-size: 0.875rem;
  }
}

.legal-copy h2:first-of-type {
  margin-top: 0;
}

.legal-updated {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft) !important;
  font-size: 0.875rem !important;
}

.not-found-hero {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
}
