/*
 * One stylesheet, hand-written, no build step.
 *
 * The page is a few hundred words and a list; a framework would be more bytes than the content
 * and a dependency to keep patched for the privilege. System fonts for the same reason -- a web
 * font is a second request and a flash of nothing, on a page whose whole job is to be read.
 *
 * The colours are the logo's, read out of Graphics/groundvis-small.svg rather than picked to go
 * with it: the deep navy its tile is filled with, and the mint its lettering is drawn in.
 *
 * Dark throughout, and no light variant, because that mint is a colour for dark grounds. On white
 * it fails contrast at every text size -- so a light mode would have to substitute some other
 * teal, which is a second palette that is not the brand's, maintained alongside the one that is.
 * The logo is a dark tile; the page is the same dark.
 */

:root {
  /* Straight off the logo: the two stops of its background gradient, and its lettering. */
  --deep: #001018;
  --slate: #3b5461;
  --mint: #76ede1;

  --paper: var(--deep);
  --wash: #0a1b23;
  --line: #1c3038;
  --ink: #e9f5f6;
  --ink-soft: #9bb4bc;
  --brand: var(--mint);

  --measure: 66ch;
  --page: 68rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; }
p { max-width: var(--measure); }
a { color: var(--brand); }

/* ── The bar ─────────────────────────────────────────────────────────────────────────── */

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
/* Sized in rems so it tracks the text it sits beside rather than the width/height on the tag,
   which are there to reserve the space before the file has loaded. */
.wordmark img {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}
.wordmark b { color: var(--brand); font-weight: 700; }

.bar nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.bar nav a { color: var(--ink-soft); text-decoration: none; }
.bar nav a:hover { color: var(--brand); }
.bar nav a { transition: color 0.15s; }

/* ── Sections ────────────────────────────────────────────────────────────────────────── */

main { max-width: var(--page); margin: 0 auto; padding: 0 1.5rem 4rem; }

section { padding: 3rem 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }

h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1.5rem; }

.hero { padding-top: 2rem; }
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin: 0 0 1.25rem;
  max-width: 20ch;
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); }
.note { font-size: 0.9rem; color: var(--ink-soft); }

/* ── Three-up strip ──────────────────────────────────────────────────────────────────── */

.strip {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.strip h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.strip p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ── Steps ───────────────────────────────────────────────────────────────────────────── */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.25rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps h3 { font-size: 1.15rem; margin: 0.25rem 0 0.5rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ── The Jobber panel ────────────────────────────────────────────────────────────────── */

.panel {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.5rem;
  margin: 3rem 0;
}
.split {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 2rem 0;
}
.split h4 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.split ul { margin: 0; padding-left: 1.1rem; }
.split li { margin-bottom: 0.35rem; }

/* ── Facts ───────────────────────────────────────────────────────────────────────────── */

.facts {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 0;
}
.facts dt { font-weight: 650; margin-bottom: 0.3rem; }
.facts dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ── Close ───────────────────────────────────────────────────────────────────────────── */

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  background: var(--brand);
  color: var(--deep);
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: #a3f4eb; }

footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.quiet { font-size: 0.8rem; }

/* ── The contact form ────────────────────────────────────────────────────────────────── */

.form { max-width: 44rem; margin-top: 1.5rem; }

.form .row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.form label {
  display: block;
  margin-bottom: 1rem;
}
.form label > span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  /* iOS zooms the page in on focus when the field is under 16px, and then leaves it zoomed. */
  font-size: 1rem;
}
.form textarea { resize: vertical; min-height: 7rem; }

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}

/*
 * The honeypot.
 *
 * Off the canvas rather than `display: none`, because the cruder form-fillers skip anything that
 * is not laid out and this is meant to be found and filled. It is out of the tab order and has
 * aria-hidden on its wrapper, so nobody reaching the page by keyboard or by screen reader can
 * land in it by accident.
 */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form button {
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--deep);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.form button:hover:not(:disabled) { background: #a3f4eb; }
.form button:disabled { opacity: 0.55; cursor: default; }

.status { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.status.good { color: var(--brand); }
.status.bad { color: #ff9c8a; }

.fine { margin-top: 1.5rem; font-size: 0.8rem; }
