:root {
  --pg-green: #1D3A25;
  --pg-green-dark: #14341D;
  --pg-green-mid: #304B36;
  --pg-cream: #F8F3E7;
  --pg-parchment: #D4CEB8;
  --pg-sage: #9DA7A0;
  --pg-rust: #A8501A;
  --pg-rust-dark: #843f15;
  --pg-gold-line: #B6A67E;
  --pg-ink: #171A16;
  --pg-cream-text: #EFE8D6;
  --pg-card: #e4dfcc;
  --shadow: 0 24px 80px rgba(29, 58, 37, .12);
  --shell: min(1160px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--pg-cream);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--pg-ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, .72), transparent 25rem),
    linear-gradient(180deg, #fbf6ea 0%, var(--pg-cream) 62%, #f5efdf 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .18;
  background-image:
    linear-gradient(rgba(29, 58, 37, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 58, 37, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at top left, black, transparent 70%);
}

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

a { color: inherit; }

p {
  font-size: 1.05rem;
  line-height: 1.65;
}

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

h1, h2, .logo {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  color: var(--pg-green);
}

h1 {
  max-width: 8.2em;
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: .96;
  letter-spacing: -.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

h3 {
  margin-bottom: .55rem;
  color: var(--pg-green);
  font-size: 1.02rem;
  line-height: 1.3;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: .75rem 1rem;
  clip: auto;
  color: var(--pg-cream);
  background: var(--pg-green);
  border-radius: 999px;
}

.site-header {
  padding-block: clamp(1rem, 2vw, 2rem);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}

.brand-mark {
  width: clamp(48px, 6vw, 72px);
  color: var(--pg-green);
  flex: 0 0 auto;
}

.brand-svg {
  height: clamp(42px, 5vw, 60px);
  width: auto;
}

.logo {
  font-size: clamp(2.8rem, 5.7vw, 5.4rem);
  letter-spacing: -.055em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3.4rem);
}

.nav-link, .button, .feature-label {
  font-weight: 700;
}

.nav-link {
  color: #102a18;
  font-size: .96rem;
  text-decoration: none;
  transition: color .18s ease;
}

.nav-link:hover { color: var(--pg-rust); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(29, 58, 37, .18);
  background: rgba(248, 243, 231, .76);
  border-radius: 999px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--pg-green);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 34rem) 1fr;
  align-items: center;
  overflow: hidden;
  width: 100vw;
  min-height: clamp(610px, 72vw, 760px);
  padding-block: clamp(4rem, 8vw, 7rem);
  padding-inline: max(1.35rem, calc((100vw - 1160px) / 2 + 1.35rem));
  margin-inline: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(248, 243, 231, .96) 0%, rgba(248, 243, 231, .86) 38%, rgba(248, 243, 231, .26) 68%, rgba(248, 243, 231, 0) 100%),
    url("/assets/img/pg-hero-bg.png") right bottom / cover no-repeat,
    #f8f3e7;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-lede {
  max-width: 31rem;
  margin: 1.6rem 0 2.6rem;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.58;
}

.rule {
  display: flex;
  align-items: center;
  width: min(510px, 100%);
  height: 16px;
  color: var(--pg-gold-line);
}

.rule::before, .rule::after {
  height: 2px;
  flex: 1;
  content: "";
  background: currentColor;
}

.rule span {
  width: 18px;
  height: 18px;
  margin-inline: 20px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.rule.small {
  width: 230px;
  margin-inline: auto;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 560px;
  margin-bottom: 2.8rem;
}

.mini-feature {
  display: grid;
  justify-items: center;
  gap: .75rem;
  min-height: 128px;
  padding: 0 1rem;
  text-align: center;
  font-size: .82rem;
  line-height: 1.5;
}

.mini-feature + .mini-feature { border-left: 1px dashed var(--pg-gold-line); }

.hero-icon-frame,
.feature-icon-frame {
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--pg-green);
  background: var(--pg-card);
}

.hero-icon-frame {
  width: 82px;
  height: 82px;
  border-radius: 50%;
}

.hero-icon-frame img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.feature-icon-frame {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  margin-inline: auto;
  border-radius: 18px;
}

.feature-icon-frame img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 58px;
  padding: 1rem 1.55rem;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button-primary {
  color: var(--pg-cream);
  background: linear-gradient(135deg, #bb5a1e, var(--pg-rust));
  box-shadow: 0 12px 28px rgba(168, 80, 26, .22);
}

.button-primary:hover {
  background: linear-gradient(135deg, #c46122, var(--pg-rust-dark));
  transform: translateY(-1px);
}

.button svg { width: 24px; height: 24px; fill: currentColor; }

.features {
  padding: 2rem 0 4rem;
  border-top: 1px solid rgba(182, 166, 126, .55);
}

.section-heading {
  margin-bottom: 2.2rem;
  text-align: center;
}

.section-heading h2 { margin-bottom: .8rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.feature-card {
  min-height: 215px;
  padding: .8rem clamp(1rem, 2vw, 2rem);
  text-align: center;
}

.feature-card + .feature-card { border-left: 1px dashed var(--pg-gold-line); }
.feature-card p { margin-bottom: 0; font-size: .98rem; }

.signup {
  position: relative;
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.35rem, 6vw, 7rem);
  margin-top: 1rem;
  border: 1px solid rgba(29, 58, 37, .1);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(248, 243, 231, .56) 0%, rgba(248, 243, 231, .38) 50%, rgba(248, 243, 231, .12) 100%),
    url("/assets/img/signup-map-background.png") center / cover no-repeat,
    #e9e5d3;
  box-shadow: var(--shadow);
}

.signup-copy, .signup-form { position: relative; z-index: 2; }
.signup-copy h2 { margin-bottom: 1rem; }
.signup-copy p { margin-bottom: 0; }

.form-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 1rem;
}

.form-row input {
  min-width: 0;
  flex: 1;
  min-height: 64px;
  padding: 1rem 1.4rem;
  border: 2px solid rgba(23, 26, 22, .38);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: rgba(255, 255, 255, .72);
  color: var(--pg-ink);
  font: inherit;
  font-size: 1.02rem;
}

.form-row input:focus {
  outline: 3px solid rgba(168, 80, 26, .2);
  outline-offset: 2px;
}

.form-row .button { border-radius: 0 9px 9px 0; box-shadow: none; }

.honeypot { display: none; }

.form-status {
  min-height: 1.4em;
  margin: 0 0 .65rem;
  color: var(--pg-green);
  font-size: .95rem;
  font-weight: 700;
}

.form-status.is-error { color: #8f2f18; }

.signup-benefits {
  display: grid;
  gap: .7rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--pg-green);
  font-weight: 700;
}

.signup-benefits li {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.signup-benefits li::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  content: "✓";
  color: var(--pg-cream);
  background: var(--pg-green);
  border-radius: 50%;
  font-size: .78rem;
}

.values {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  width: 100vw;
  min-height: clamp(470px, 52vw, 620px);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  padding-inline: max(1.35rem, calc((100vw - 1160px) / 2 + 1.35rem));
  margin-top: 3rem;
  margin-inline: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(248, 243, 231, .96) 0%, rgba(248, 243, 231, .88) 34%, rgba(248, 243, 231, .18) 74%, rgba(248, 243, 231, 0) 100%),
    url("/assets/img/values-mountain-background.png") right bottom / cover no-repeat,
    #f8f3e7;
}

.values-copy p { max-width: 32rem; }

.text-link {
  color: var(--pg-rust);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { color: var(--pg-rust-dark); }

.patch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  justify-items: center;
}

.patch {
  width: min(100%, 250px);
}

.patch img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(29, 58, 37, .12));
}

.site-footer {
  padding: 2rem 0 1.4rem;
  color: var(--pg-cream-text);
  background:
    radial-gradient(circle at 20% 0, rgba(80, 118, 74, .48), transparent 24rem),
    linear-gradient(135deg, var(--pg-green), var(--pg-green-dark));
}

.site-footer .logo, .site-footer .brand-mark, .site-footer a { color: var(--pg-cream-text); }
.site-footer .logo { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.site-footer .brand-mark { width: clamp(44px, 5vw, 64px); }

.footer-top {
  display: grid;
  grid-template-columns: auto minmax(220px, 410px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(239, 232, 214, .32);
}

.footer-top p {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.social-links a { display: inline-grid; place-items: center; width: 30px; height: 30px; }
.social-links svg { width: 28px; height: 28px; fill: currentColor; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding-top: 1.4rem;
}

.footer-bottom p {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: .9rem;
}
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom nav a {
  position: relative;
  font-family: "Lora", Georgia, serif;
  font-size: .9rem;
  text-decoration: none;
}

.footer-bottom nav a + a::before {
  position: absolute;
  left: -.85rem;
  content: "•";
}

.footer-domain {
  justify-self: end;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  max-width: 780px;
  padding: 3rem 0 5rem;
}

.legal-brand { margin-bottom: 3rem; }
.legal-brand .logo { font-size: clamp(2.8rem, 6vw, 4rem); }
.legal-page h1 { max-width: none; font-size: clamp(3rem, 7vw, 5rem); }
.legal-page h2 { margin-top: 2rem; font-size: 1.8rem; }
.legal-page a:not(.brand):not(.button) { color: var(--pg-rust); font-weight: 700; }
.not-found { min-height: 72vh; display: grid; align-content: center; }

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 620px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(248, 243, 231, .98) 0%, rgba(248, 243, 231, .9) 42%, rgba(248, 243, 231, .25) 76%, rgba(248, 243, 231, 0) 100%),
      url("/assets/img/pg-hero-bg.png") center bottom / cover no-repeat,
      #f8f3e7;
  }
  .feature-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .feature-card:nth-child(4) { border-left: 0; }
  .signup, .values { grid-template-columns: 1fr; }
  .patch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top, .footer-bottom { grid-template-columns: 1fr; }
  .social-links { justify-content: flex-start; }
  .footer-domain { justify-self: start; }
}

@media (max-width: 760px) {
  :root { --shell: min(100vw - 32px, 1160px); }
  .site-header { position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + .4rem);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem;
    border: 1px solid rgba(29, 58, 37, .12);
    border-radius: 16px;
    background: rgba(248, 243, 231, .97);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-link { padding: .9rem 1rem; }
  .brand-mark { width: 44px; }
  .logo { font-size: clamp(2.55rem, 12vw, 3.3rem); }
  h1 { font-size: clamp(3.1rem, 16vw, 4.6rem); }
  .hero-badges, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-feature:nth-child(3), .feature-card:nth-child(3), .feature-card:nth-child(5) { border-left: 0; }
  .feature-card:nth-child(4) { border-left: 1px dashed var(--pg-gold-line); }
  .hero {
    min-height: 700px;
    padding: 2.4rem 1.2rem;
  }
  .signup, .values { padding: 2.2rem 1.2rem; }
  .form-row { display: grid; }
  .form-row input { border-right: 2px solid rgba(23, 26, 22, .38); border-radius: 9px 9px 0 0; }
  .form-row .button { border-radius: 0 0 9px 9px; }
  .footer-bottom nav { flex-wrap: wrap; gap: .8rem 1.2rem; }
}

@media (max-width: 520px) {
  .hero-badges, .feature-grid, .patch-grid { grid-template-columns: 1fr; }
  .mini-feature, .feature-card { border-left: 0 !important; }
  .mini-feature { min-height: 0; padding-block: 1rem; }
  .hero { min-height: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
