:root {
  --page-bg: #17231f;
  --panel: rgba(246, 244, 237, 0.92);
  --panel-strong: #f6f4ed;
  --text: #1c2320;
  --muted: #66706b;
  --line: rgba(28, 35, 32, 0.16);
  --accent: #315f4d;
  --accent-dark: #214536;
  --shadow: 0 24px 70px rgba(6, 17, 12, 0.3);
  --radius: 24px;
  --content-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  background-color: var(--page-bg);
  background-image:
    linear-gradient(rgba(11, 24, 18, 0.28), rgba(11, 24, 18, 0.54)),
    url("assets/background.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: clamp(1rem, 4vw, 3.5rem) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem clamp(1.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 237, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a {
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: currentColor;
}

.section {
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: min(72vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-label,
.card-number {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 8vw, 6.7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.55rem;
}

.lede {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: #3b4540;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(49, 95, 77, 0.08);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.section-copy {
  max-width: 37rem;
  color: #404a45;
}

.section-copy p:last-of-type {
  margin-bottom: 1.6rem;
}

.section-heading-row {
  margin-bottom: 2.2rem;
}

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

.card {
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.contact-section {
  text-align: center;
}

.contact-section h2,
.contact-section p {
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.5rem, 6vw, 5.5rem);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(49, 95, 77, 0.45);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.3rem 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

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