/* Christopher Noah Gandley — website design & development
   Plain CSS, no frameworks, no external fonts. Mobile-first. */

:root {
  --bg: #fbfaf7;
  --surface: #f2f0ea;
  --surface-2: #e8ece9;
  --ink: #1d2529;
  --ink-soft: #4a5459;
  --line: #d9d6cd;
  --accent: #2d5f58;
  --accent-ink: #ffffff;
  --accent-soft: #e2ece9;
  --focus: #b4541a;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 68rem;
  --read: 42rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191b;
    --surface: #1c2326;
    --surface-2: #20292b;
    --ink: #e8ecea;
    --ink-soft: #a9b3b0;
    --line: #313b3e;
    --accent: #8cc4b9;
    --accent-ink: #0f1a18;
    --accent-soft: #1f2f2c;
    --focus: #f0a46b;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 40rem) { :root { --gutter: 1.5rem; } }

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-tag { color: var(--ink-soft); font-size: 0.85rem; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Sections */
main { display: block; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .section { padding: 4.5rem 0; } }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.muted { color: var(--ink-soft); }
.mt-lg { margin-top: 1.5rem; }
.small { font-size: 0.92rem; }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
@media (min-width: 48rem) { .hero { padding: 6rem 0 5rem; } }
.hero h1 { max-width: 20ch; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { color: var(--accent); background: transparent; }
.btn-secondary:hover { background: var(--accent-soft); }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-price { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card > :last-child { margin-bottom: 0; }
.card-accent { background: var(--accent-soft); border-color: transparent; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}
.price-amount { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.price-note { color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.schedule { margin: 0; }
.schedule div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.schedule div:first-child { border-top: 0; padding-top: 0; }
.schedule dt { font-weight: 700; }
.schedule dd { margin: 0; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; margin: 0; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.contact-list { margin: 0; }
.contact-list div { margin-bottom: 0.75rem; }
.contact-list dt { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.contact-list dd { margin: 0; font-size: 1.1rem; }

/* Long-form pages (policy, terms, support) */
.page-head { padding: 3rem 0 1.5rem; }
.page-head h1 { margin-bottom: 0.4rem; }
.prose { max-width: var(--read); padding-bottom: 3.5rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.callout {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 0;
  font-size: 0.95rem;
}
.site-footer .wrap { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.footer-links li + li { margin-top: 0; }
.site-footer p { margin: 0 0 0.35rem; color: var(--ink-soft); }
.site-footer .footer-name { color: var(--ink); font-weight: 600; }

