/* Groundwork — groundworkyard.com
   Palette: Spruce #1F5C45, Loam #6E4E37, Limestone #F7F6F1
   Type: Fraunces (headings), Atkinson Hyperlegible (body)
*/

:root {
  --spruce: #1f5c45;
  --spruce-dark: #143d2f;
  --loam: #6e4e37;
  --limestone: #f7f6f1;
  --ink: #18211d;
  --ink-2: #4a564f;
  --paper: #ffffff;
  --line: #d8d4c8;
  --line-strong: #7d877f;
  --focus: #2f5d8a;
  --healthy: #0e6e5c;
  --font-display: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  --wrap: 68rem;
  --read: 40rem;
  --header-h: 4.25rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(24, 33, 29, 0.06), 0 8px 24px rgba(24, 33, 29, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--spruce);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--spruce-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--spruce);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 0.35rem 0.35rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header
   -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--limestone) 92%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

@supports not (background: color-mix(in srgb, white, black)) {
  .site-header {
    background: var(--limestone);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: 11.5rem;
  height: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.4rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--spruce);
  background: color-mix(in srgb, var(--spruce) 8%, transparent);
}

.nav-list a[aria-current="page"] {
  color: var(--spruce);
  box-shadow: inset 0 -2px 0 var(--spruce);
  border-radius: 0.4rem 0.4rem 0 0;
}

/* Hero
   -------------------------------------------------- */

.hero {
  padding: 2.75rem 0 3rem;
}

.hero-inner {
  max-width: 44rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--loam);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.05rem, 6vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--spruce);
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.soon::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--spruce);
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--spruce);
  color: #fff;
  border-color: var(--spruce);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--spruce-dark);
  border-color: var(--spruce-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--spruce);
  border-color: var(--spruce);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--spruce);
  color: #fff;
}

/* Features
   -------------------------------------------------- */

.features {
  padding: 0 0 3.5rem;
}

.section-head {
  margin: 0 0 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  letter-spacing: -0.02em;
  color: var(--spruce);
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 36rem;
}

.feature-lead {
  display: grid;
  gap: 1.25rem;
  padding: 1.4rem 1.35rem 1.5rem;
  margin: 0 0 1rem;
  background: var(--spruce);
  color: #edf1ec;
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow);
}

.feature-lead h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.feature-lead p {
  margin: 0;
  color: #d5e6dc;
  max-width: 40rem;
}

.feature-lead .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #b7e0c8;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 1px 0 rgba(24, 33, 29, 0.03);
}

.card h3 {
  margin: 0.65rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--spruce);
}

.card p {
  margin: 0;
  color: var(--ink-2);
}

.icon {
  display: block;
  width: 2rem;
  height: 2rem;
  color: var(--loam);
}

/* How it works / CTA
   -------------------------------------------------- */

.steps {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.step-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
  padding: 0.2rem 0 0.2rem 3.2rem;
  position: relative;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--spruce);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--ink);
}

.step-list p {
  margin: 0;
  color: var(--ink-2);
}

.cta-band {
  margin: 0 0 3.25rem;
  padding: 1.75rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--spruce);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 0 1.15rem;
  color: var(--ink-2);
  max-width: 36rem;
}

/* Interior pages
   -------------------------------------------------- */

.page {
  padding: 2.25rem 0 3.5rem;
}

.page-header {
  margin: 0 0 1.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  max-width: var(--read);
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--spruce);
  line-height: 1.15;
}

.meta {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.prose {
  max-width: var(--read);
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--spruce);
}

.prose h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.12rem;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose p {
  margin: 0 0 0.95rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* FAQ
   -------------------------------------------------- */

.faq {
  margin: 0;
}

.faq > div {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq > div:last-child {
  border-bottom: 1px solid var(--line);
}

.faq dt {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.3rem;
}

.faq dd {
  margin: 0;
  color: var(--ink-2);
}

.contact-block {
  margin: 0 0 2rem;
  padding: 1.2rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-block p {
  margin: 0 0 0.4rem;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.email-link {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--spruce);
}

.email-link:hover {
  text-decoration: underline;
}

/* Footer
   -------------------------------------------------- */

.site-footer {
  background: var(--spruce-dark);
  color: #d5e6dc;
  padding: 2.25rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.footer-brand img {
  width: 3rem;
  height: auto;
  border-radius: 0.2rem;
  /* Mark is on limestone; a thin rounded clip keeps it tidy on spruce. */
  background: var(--limestone);
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.footer-tag {
  margin: 0.35rem 0 0;
  color: #b7cbbf;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #edf1ec;
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-legal {
  margin: 0;
  font-size: 0.9rem;
  color: #b7cbbf;
  max-width: 42rem;
}

.footer-legal a {
  color: #edf1ec;
}

.footer-legal + .footer-legal {
  margin-top: 0.65rem;
}

/* Layout tweaks
   -------------------------------------------------- */

@media (max-width: 639px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .nav-list,
  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .nav-list a,
  .footer-nav a {
    padding-inline: 0.15rem;
    font-size: 0.9rem;
  }

  .nav-list li:first-child a,
  .footer-nav li:first-child a {
    padding-left: 0;
  }

  .nav-list li:last-child a,
  .footer-nav li:last-child a {
    padding-right: 0;
  }
}


@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.75rem;
  }

  .cta-band {
    padding: 2rem 2rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-lead {
    padding: 1.85rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .logo img {
    width: 13.25rem;
  }
}

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

  .site-header {
    backdrop-filter: none;
  }
}

@media (prefers-color-scheme: dark) {
  /* Keep the marketing site on limestone in every scheme so brand
     photos (logo lockups on cream) and legal pages stay consistent. */
}

@media print {
  .site-header,
  .skip-link,
  .cta-band,
  .hero-actions {
    position: static;
  }

  .site-footer {
    background: transparent;
    color: var(--ink);
    border-top: 1px solid #ccc;
  }

  .site-footer a,
  .footer-legal,
  .footer-tag,
  .footer-nav a,
  .footer-brand {
    color: var(--ink);
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 400;
  }

  a[href^="mailto:"]::after,
  a[href^="#"]::after,
  a[href$=".html"]::after {
    content: none;
  }
}
