/* The Useful Four — landing page styles
   Palette: warm cream / oak green ink / amber accent */

:root {
  --cream: #faf7f1;
  --ink: #21201c;
  --green: #2e5339;
  --green-deep: #1f3a27;
  --amber: #d98324;
  --muted: #6b675e;
  --tile: #ffffff;
  --max: 60rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-contact {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.header-contact:hover,
.header-contact:focus-visible { color: var(--green); text-decoration: underline; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  color: var(--green-deep);
}

.lede {
  max-width: 34em;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 2rem;
}

/* CTA button */
.cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  transition: background 150ms ease;
}
.cta:hover,
.cta:focus-visible { background: var(--green-deep); }

/* Services */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.services h2,
.contact h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--green-deep);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.tile {
  background: var(--tile);
  border: 1px solid rgba(33, 32, 28, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.tile h3 {
  font-size: 1.15rem;
  color: var(--green);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Contact */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.contact p {
  max-width: 34em;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(33, 32, 28, 0.1);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* Focus visibility */
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 40rem) {
  .hero { padding-top: 3.5rem; }
  .header-contact { display: none; }
  .grid { grid-template-columns: 1fr; }
}
