/* JTM Landscapes. One page, light only, system fonts: nothing loads from
   anywhere but this site. */

:root {
  --green-900: #1f3320;
  --green-700: #2f4a2c;
  --green-500: #4d7a43;
  --green-100: #eef3e8;
  --stone: #f7f5f0;
  --ink: #1d231c;
  --muted: #55604f;
  --line: #d9dfd2;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--green-500); text-underline-offset: 0.15em; }
a:hover { color: var(--green-700); }
a:focus-visible, .button:focus-visible { outline: 3px solid #e2b33c; outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

/* ---- hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--green-900);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Two layers: darker from the bottom, where the words are, and from the
     left, where they start, so the white text never sits on bright lawn. */
  background:
    linear-gradient(to right, rgb(20 32 20 / 0.72) 0%, rgb(20 32 20 / 0.45) 50%, rgb(20 32 20 / 0) 85%),
    linear-gradient(to top, rgb(20 32 20 / 0.94) 0%, rgb(20 32 20 / 0.78) 40%, rgb(20 32 20 / 0.3) 75%, rgb(20 32 20 / 0.12) 100%);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--gutter) clamp(32px, 7vh, 72px);
}

.hero h1 {
  font-size: clamp(1.75rem, 8vw, 4.25rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45), 0 2px 18px rgb(0 0 0 / 0.35);
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  max-width: 44ch;
  margin: 0 0 1.5em;
  font-weight: 500;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 1px 12px rgb(0 0 0 / 0.35);
}

.button {
  display: inline-block;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  background: #fff;
  color: var(--green-900);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--green-100); color: var(--green-900); }

/* ---- sections ---------------------------------------------------------------- */

main > section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--green-700); }

.cards {
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards li {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-500);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.cards h3 { font-size: 1.2rem; }
.cards p { margin: 0; color: var(--muted); }

.scale { margin: 1.5em 0 0; font-size: 1.15rem; }

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


.plain {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 120px) var(--gutter);
}

/* ---- footer ------------------------------------------------------------------ */

.foot {
  background: var(--green-900);
  color: #d5e0cf;
  padding: 24px var(--gutter);
  text-align: center;
  font-size: 0.95rem;
}
.foot p { margin: 0; }
.foot p + p { margin-top: 8px; }


/* ---- contact form ------------------------------------------------------------ */

.form { max-width: 560px; margin: 0 0 2rem; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; margin: 0 0 0.3rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.6em 0.75em;
  border: 1px solid #b7c2ad;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid #e2b33c; outline-offset: 1px; border-color: var(--green-500); }

/* Hidden from people, there for bots. Off screen rather than display: none,
   which some bots skip. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 0.25rem 0 1rem; min-height: 65px; }

.send {
  font: inherit;
  font-weight: 600;
  padding: 0.7em 1.8em;
  border: 0;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  cursor: pointer;
}
.send:hover { background: var(--green-900); }
.send:focus-visible { outline: 3px solid #e2b33c; outline-offset: 3px; }

.email { overflow-wrap: anywhere; }
.small { font-size: 0.92rem; color: var(--muted); }

.foot a { color: #fff; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose li { margin: 0 0 0.4em; }
