/* Steady Roots Tutoring
   Layout: one calm page, a sprout-and-roots hero, then alternating plain and tinted bands
   that run from "what I teach" to "ask about a spot".
   Colors: pine green and pencil gold on a green-tinted paper white. Dark mode follows the visitor's device. */

:root {
  --ground: #F3F6F1;      /* page background */
  --surface: #FFFFFF;     /* cards and form */
  --tint: #E8EEE6;        /* alternating bands */
  --ink: #1B2A22;         /* main text */
  --muted: #536359;       /* secondary text */
  --line: #D5DED3;        /* borders */
  --pine: #2E5A43;        /* brand green */
  --pine-strong: #234634;
  --on-pine: #FFFFFF;
  --gold: #C98A12;        /* pencil gold accent */
  --gold-soft: #F6E3B4;
  --fill-bg: #FFF0C2;     /* highlight for placeholders you still need to fill */
  --fill-ink: #6B4A00;
  --ok: #2E6B3F;
  --err: #A2322B;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.4rem);

  --radius: 14px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111915;
    --surface: #18231D;
    --tint: #152019;
    --ink: #E6EDE8;
    --muted: #A2B3A8;
    --line: #2A3A31;
    --pine: #86C9A0;
    --pine-strong: #A3D9B7;
    --on-pine: #0F1A14;
    --gold: #E8B04A;
    --gold-soft: #3D3016;
    --fill-bg: #4A3A10;
    --fill-ink: #FFE3A0;
    --ok: #8FD3A5;
    --err: #F19A92;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #111915;
  --surface: #18231D;
  --tint: #152019;
  --ink: #E6EDE8;
  --muted: #A2B3A8;
  --line: #2A3A31;
  --pine: #86C9A0;
  --pine-strong: #A3D9B7;
  --on-pine: #0F1A14;
  --gold: #E8B04A;
  --gold-soft: #3D3016;
  --fill-bg: #4A3A10;
  --fill-ink: #FFE3A0;
  --ok: #8FD3A5;
  --err: #F19A92;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-strong); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--pine); color: var(--on-pine);
  padding: 10px 14px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 8px; }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.muted { color: var(--muted); }

/* Placeholders you still need to replace are highlighted */
.fill {
  background: var(--fill-bg);
  color: var(--fill-ink);
  border-radius: 4px;
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 700 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--pine); color: var(--on-pine); }
.btn-primary:hover { background: var(--pine-strong); color: var(--on-pine); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--pine); color: var(--pine); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  padding-block: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: var(--ink); text-decoration: none;
}
.brand em { font-style: normal; color: var(--pine); }
.brand-mark { width: 34px; height: 34px; fill: none; stroke-linecap: round; stroke-width: 2.2; }
.brand-mark .sprout { stroke: var(--pine); }
.brand-mark .soil { stroke: var(--gold); }
.brand-mark .root { stroke: var(--muted); stroke-width: 1.6; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a {
  display: inline-block; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 700;
}
.nav a:hover { background: var(--tint); color: var(--pine); }
.nav .nav-cta { background: var(--pine); color: var(--on-pine); padding-inline: 14px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--pine-strong); color: var(--on-pine); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero-grid {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; } }
.hero-copy { display: grid; gap: 1.1rem; min-width: 0; }
.hero h1 { max-width: 18ch; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0.4rem; }

.facts {
  list-style: none; margin: 0.8rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid; gap: 2px;
  padding: 14px 24px 0 0; margin-right: 24px;
  min-width: 0;
}
.facts li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.facts strong { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.facts span:not(.fill) { font-weight: 700; }
.facts .fill { font-weight: 700; justify-self: start; }
@media (max-width: 520px) {
  .facts { flex-direction: column; }
  .facts li, .facts li + li { border-left: 0; padding-left: 0; margin-right: 0; }
}

.hero-art { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.hero-art svg { width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; }
.hero-art .stem { stroke: var(--pine); stroke-width: 5; }
.hero-art .leaf { stroke: none; }
.hero-art .leaf-a { fill: var(--pine); }
.hero-art .leaf-b { fill: var(--pine); opacity: .8; }
.hero-art .leaf-c { fill: var(--gold); }
.hero-art .soil-line { stroke: var(--gold); stroke-width: 4; }
.hero-art .roots path { stroke: var(--muted); stroke-width: 3; opacity: .75; }
.hero-art .ticks path { stroke: var(--line); stroke-width: 3; }
.hero-art .tick-label { fill: var(--muted); font: 700 13px var(--font-body); }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .roots path { stroke-dasharray: 140; stroke-dashoffset: 0; animation: grow 1.6s ease-out both; }
  .hero-art .roots path:nth-child(2n) { animation-delay: .2s; }
  .hero-art .roots path:nth-child(3n) { animation-delay: .4s; }
  @keyframes grow { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tint { background: var(--tint); }
.section h2 { margin-bottom: 0.8rem; }
.section-lede { color: var(--muted); max-width: 60ch; font-size: var(--step-1); }

/* services */
.cards {
  display: grid; gap: 16px; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid; align-content: start; gap: 10px;
  min-width: 0;
}
.card p { color: var(--muted); }
.card-wide { grid-column: 1 / -1; border-color: var(--pine); }
.card-wide p { max-width: 70ch; }
.tag {
  justify-self: start;
  font-size: 0.8rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--tint); color: var(--pine);
}
.tag-accent { background: var(--gold-soft); color: var(--fill-ink); }

/* approach */
.two-col { display: grid; gap: 28px; }
@media (min-width: 880px) { .two-col { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding: 16px 18px 16px 54px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute; left: 18px; top: 19px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--pine)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* steps: a real sequence, so they are numbered */
.steps {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid; gap: 8px; align-content: start;
  padding-top: 18px;
  border-top: 3px solid var(--pine);
  min-width: 0;
}
.steps li::before {
  content: "Step " counter(step);
  font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold);
}
.steps p { color: var(--muted); }

/* rates */
.rate-grid { display: grid; gap: 20px; margin-top: 1.6rem; }
@media (min-width: 880px) { .rate-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.rate-card {
  background: var(--surface); border: 2px solid var(--pine); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 10px;
}
.price { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; font-variant-numeric: tabular-nums; }
.price .per { font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; color: var(--muted); }

.details { margin: 0; display: grid; gap: 0; }
.details > div {
  display: grid; gap: 2px 20px;
  grid-template-columns: 1fr;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.details > div:first-child { padding-top: 0; }
@media (min-width: 560px) { .details > div { grid-template-columns: 9rem 1fr; } }
.details dt { font-weight: 700; }
.details dd { margin: 0; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.details-stack > div { grid-template-columns: 1fr !important; }

/* about */
.about-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 880px) { .about-grid { grid-template-columns: 0.7fr 1.3fr; gap: 56px; } }
.about-photo {
  width: 100%; max-width: 420px; aspect-ratio: 4 / 5;
  border-radius: var(--radius); object-fit: cover;
}
.placeholder-photo {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, var(--tint) 0 14px, var(--surface) 14px 28px);
  border: 2px dashed var(--line);
  color: var(--muted); font-weight: 700;
}
.about-copy { display: grid; gap: 1rem; max-width: 65ch; min-width: 0; }
.about-copy h2 { margin-bottom: 0; }
.creds {
  margin: 0.4rem 0 0; padding: 18px 18px 18px 38px;
  background: var(--tint); border-radius: var(--radius);
  display: grid; gap: 6px;
}
.creds li::marker { color: var(--gold); }

/* contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.contact-intro { display: grid; gap: 1rem; min-width: 0; }
.contact-intro h2 { margin-bottom: 0; }
.note {
  font-size: var(--step--1); color: var(--muted);
  border-left: 3px solid var(--gold); padding-left: 12px;
}

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 4vw, 30px);
  display: grid; gap: 18px; min-width: 0;
}
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--ground);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--gold-soft); }
.form .invalid { border-color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--ground);
  font-weight: 700; font-size: var(--step--1);
}
.chip input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status { min-height: 1.4em; font-weight: 700; }
.form-status.ok { color: var(--ok); }
.form-status.error, .form-status.warn { color: var(--err); }
.fine { font-size: 0.85rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }

/* ---------- simple inner pages (privacy, 404) ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page .prose { max-width: 65ch; display: grid; gap: 1rem; }
.page .prose h2 { font-size: var(--step-2); margin-top: 1rem; }
