:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --ink: #1c211d;
  --muted: #687067;
  --line: #d9d6cb;
  --green: #165c3a;
  --green-dark: #0f422a;
  --green-soft: #e3eee6;
  --gold: #e6b84c;
  --shadow: 0 22px 70px rgba(37, 46, 38, .09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(230, 184, 76, .16), transparent 28rem),
    var(--paper);
  font: 16px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fffdf8;
  background: var(--green);
  box-shadow: 0 9px 22px rgba(22, 92, 58, .18);
  font-size: 12px;
  letter-spacing: .08em;
}

.masthead-note,
.fine-print,
.footer {
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0;
}

.hero-icon:not([hidden]) {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 24px;
}

.newsletter {
  padding: 32px;
  border-radius: 20px;
  background: var(--green-dark);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.newsletter .eyebrow { color: #f2cd75; }
.newsletter h2 {
  margin: 0;
  font: 500 clamp(32px, 4vw, 42px)/1.08 ui-serif, Georgia, serif;
  letter-spacing: -.035em;
}
.newsletter > p:not(.eyebrow) { color: #d9e8dc; }
.newsletter .button-primary {
  width: 100%;
  gap: 10px;
  margin-top: 10px;
  min-height: 52px;
  background: #f2cd75;
  color: #193622;
}
.newsletter .button-primary:hover { background: #ffdf96; }
.newsletter .fine-print { font-size: 12px; }
.newsletter-preview {
  display: inline-block;
  padding: 12px 0 0;
  font-size: 14px;
  text-underline-offset: 4px;
}
.newsletter a:focus-visible { outline: 3px solid #f2cd75; outline-offset: 5px; }
.first-step {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--green);
}
.first-step strong { font-size: 13px; color: var(--green); }
.first-step p { margin: 4px 0 0; color: #4f584f; font-size: 15px; }

.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.hero-copy {
  max-width: 660px;
  margin: 20px 0 0;
  color: #4f584f;
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.wordmark:focus-visible,
.project-link:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(22, 92, 58, .28);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 32px rgba(22, 92, 58, .17);
}

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, .6);
}

.fine-print {
  margin: 13px 0 0;
}

.installed-note {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 36px;
  border: 1px solid #b9d1bf;
  border-radius: 14px;
  padding: 15px 17px;
  background: var(--green-soft);
}

.installed-note:not([hidden]) {
  display: grid;
}

.installed-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.installed-note strong,
.installed-note p {
  display: block;
}

.installed-note p {
  margin: 2px 0 0;
  color: #526056;
  font-size: 14px;
}

.projects {
  padding: 62px 0 30px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 26px;
}

.section-heading h2 {
  max-width: 580px;
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.project-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 106px;
  padding: 20px;
}

.project + .project {
  border-top: 1px solid var(--line);
}

.project.is-installed {
  background: linear-gradient(90deg, rgba(227, 238, 230, .72), transparent 72%);
}

.project-icon {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(28, 33, 29, .08);
  background: #fff;
  box-shadow: 0 5px 14px rgba(28, 33, 29, .09);
  object-fit: cover;
}

.project-copy h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.project-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.project-link,
.installed-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.project-link {
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.project-link:hover {
  border-color: #a9b5aa;
  background: #fbfaf5;
}

.installed-badge {
  color: var(--green-dark);
  background: var(--green-soft);
}

.noscript {
  margin: 18px 0 0;
  color: var(--muted);
}

.footer {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: var(--green);
  font-weight: 750;
}

@media (max-width: 700px) {
  .masthead {
    min-height: 82px;
  }

  .masthead-note {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }

  .hero-icon:not([hidden]) { width: 72px; height: 72px; margin-bottom: 18px; }
  .newsletter { padding: 26px; }
  .projects { padding-top: 32px; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .page-shell {
    width: min(100% - 28px, 940px);
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .project {
    padding: 17px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  .button {
    transition: none;
  }
}
