:root {
  color-scheme: light;
  --cream: #f8f2e7;
  --paper: #fffbf3;
  --forest: #153d2d;
  --forest-deep: #0f2e23;
  --ink: #192f25;
  --muted: #465b4f;
  --line: #d9d8c8;
  --sage: #bdcdaa;
  --gold: #efd39e;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(3rem, 7vw, 6.5rem);
  --font-display: Georgia, Cambria, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1rem / 1.65 system-ui, sans-serif;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:where(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.wrap {
  width: min(76rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--forest);
}

.site-header > .wrap,
.site-footer > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-header a:not(.button),
.site-footer a:not(.button) {
  font-weight: 650;
}

.hero {
  padding-block: clamp(2rem, 6vw, 5.5rem);
}

.hero:has(> .hero-copy),
.hero > .wrap:has(> .hero-copy) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}

.hero-copy h1 {
  color: var(--forest);
  font-size: clamp(2.45rem, 5.6vw, 5.25rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  hyphens: auto;
}

.hero-copy > * + * {
  margin-block-start: 1.25rem;
}

.hero-copy p {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Architectural illustration for an empty art container. */
.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  aspect-ratio: 6 / 5;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(1rem, 2.5vw, 2rem);
  background:
    linear-gradient(0deg, #0f2e23 0%, transparent 47%),
    repeating-linear-gradient(0deg, transparent 0 31px, #f8f2e71c 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #f8f2e71c 31px 32px),
    var(--forest);
  color: var(--cream);
}

.hero-art:not(:has(> *))::before {
  position: absolute;
  inset: 10% 12% auto auto;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0.55rem #efd39e23, 0 0 0 1.1rem #efd39e12;
  content: "";
}

.hero-art:not(:has(> *))::after {
  position: absolute;
  inset: 22% 5% 9%;
  background:
    linear-gradient(var(--forest-deep) 0 0) 46% 100% / 12% 31% no-repeat,
    repeating-linear-gradient(90deg, var(--forest-deep) 0 18%, transparent 18% 34%)
      14% 67% / 25% 15% no-repeat,
    repeating-linear-gradient(90deg, var(--forest-deep) 0 29%, transparent 29% 51%)
      83% 74% / 18% 12% no-repeat,
    linear-gradient(116deg, var(--gold), var(--paper) 45%, var(--sage) 46%);
  clip-path: polygon(0 48%, 24% 21%, 24% 17%, 46% 0, 74% 39%, 81% 27%,
    100% 54%, 100% 100%, 0 100%);
  content: "";
}

.hero-art :is(img, picture, svg) {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section h2 + p {
  max-width: 60ch;
  margin-block-start: 0.9rem;
  color: var(--muted);
}

.grid,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.85rem, 2vw, 1.5rem);
  margin-block-start: clamp(1.5rem, 4vw, 3rem);
}

.card,
.steps > li {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  padding: clamp(1.15rem, 2.6vw, 2rem);
}

.card h3,
.steps h3 {
  color: var(--forest);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.card p,
.steps p {
  margin-block-start: 0.75rem;
  color: var(--muted);
}

:is(ol, ul).steps {
  padding-inline-start: 1.6rem;
}

.steps > li::marker {
  color: var(--forest);
  font-weight: 700;
}

.cta {
  background: var(--forest);
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}

.cta.wrap,
.wrap > .cta {
  border-radius: clamp(1rem, 2.5vw, 2rem);
  padding-inline: var(--gutter);
}

.cta p {
  max-width: 52ch;
  margin: 1rem auto 0;
  color: var(--cream);
}

.cta .button {
  margin-block-start: 1.5rem;
  --button-background: var(--gold);
  --button-hover: var(--paper);
  --button-text: var(--forest-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: var(--button-background, var(--forest));
  color: var(--button-text, var(--paper));
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--button-hover, var(--forest-deep));
}

.button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

.cta .button:focus-visible {
  outline-color: var(--paper);
}

.site-footer {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 48rem) {
  .hero:has(> .hero-copy),
  .hero > .wrap:has(> .hero-copy) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    aspect-ratio: 4 / 3;
  }
}

@media (forced-colors: active) {
  .button {
    border-color: ButtonText;
  }
}
