:root {
  --ink: #172126;
  --muted: #54646a;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --pine: #2e6b5c;
  --pine-dark: #1f4c42;
  --steel: #4d7180;
  --clay: #b7664d;
  --line: #d9e0dd;
  --shadow: 0 18px 55px rgba(23, 33, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--pine);
  color: #fff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: #eef3ef;
}

.nav-links .nav-cta {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, 78vh);
  overflow: hidden;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 19, 0.82) 0%, rgba(12, 18, 19, 0.58) 45%, rgba(12, 18, 19, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 18, 19, 0.18), rgba(12, 18, 19, 0.08));
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b389;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 740px;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  line-height: 1.6;
}

.button-row,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button-row {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--pine);
  color: #fff;
}

.button-primary:hover {
  background: var(--pine-dark);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf4f0;
}

.metric {
  padding: 1.3rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 1.6rem;
}

.metric span {
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.section-heading {
  display: grid;
  max-width: 820px;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 780px;
}

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

.card {
  display: grid;
  min-height: 250px;
  align-content: start;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(23, 33, 38, 0.06);
}

.card p,
.article-row p,
.course-block p,
.article-body p,
.section-split p,
.page-hero p,
.contact-layout p,
.narrow p {
  color: var(--muted);
  line-height: 1.7;
}

.card-kicker {
  margin: 0;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  width: fit-content;
  color: var(--pine);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.section-split {
  background: var(--ink);
  color: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.section-split p {
  color: rgba(255, 255, 255, 0.78);
}

.checklist {
  display: grid;
  gap: 0.75rem;
}

.checklist p {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--clay);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.article-list {
  display: grid;
  gap: 0.75rem;
}

.article-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(240px, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.article-row h2,
.article-row h3 {
  margin-top: 0.35rem;
}

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

.newsletter {
  background: #e7eff2;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 2rem;
  align-items: end;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border: 1px solid #bdc9c6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.signup-form .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(135deg, #f8faf7, #e5eff0);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.13rem;
}

.course-list {
  display: grid;
  gap: 1rem;
}

.course-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.article-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.article-header p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.article-body h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.75rem;
}

.callout {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--clay);
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

.narrow {
  max-width: 820px;
}

.narrow h2 {
  margin-top: 2rem;
  font-size: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 1rem;
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  margin-left: 1rem;
  color: #fff;
  font-weight: 750;
}

@media (max-width: 800px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

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

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(12, 18, 19, 0.84), rgba(12, 18, 19, 0.54));
  }

  .metric-band,
  .card-grid,
  .split-layout,
  .article-row,
  .newsletter-inner,
  .course-block,
  .contact-layout,
  .signup-form .form-row {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .footer-inner a {
    margin-left: 0;
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  .nav,
  .section-inner,
  .footer-inner,
  .hero-content,
  .article-page {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    align-items: flex-start;
  }

  .brand span:last-child {
    max-width: 220px;
  }

  .nav-links a {
    padding: 0.58rem 0.65rem;
  }

  .button {
    width: 100%;
  }
}
