/* Vibe to Valid — "warm paper and green" (design direction C).
   Mobile-first: everything is one column until 48rem. No JavaScript needed. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --tint: #f1ede3;
  --text: #1d2b24;
  --muted: #4f5d55;
  --valid: #1f5f45;
  --valid-dark: #174a35;
  --vibe: #9a5310; /* amber, darkened from #d9822b to pass AA on --bg and --tint */
  --rule: #e3ddcf;
  --critical: #9b1c1c;
  --high: #a34a00;
  --medium: #6b5800;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 68rem;
  --radius: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--valid);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--valid-dark);
}
:focus-visible {
  outline: 3px solid var(--vibe);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--valid);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  top: 0.5rem;
  color: var(--bg);
}
main:focus {
  outline: none;
}

/* Wordmark: italic amber "Vibe", green "Valid". */
.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark em {
  color: var(--vibe);
}
.wordmark strong {
  color: var(--valid);
  font-weight: 600;
}

/* Header: wraps on narrow screens instead of needing a menu script. */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-header nav {
  order: 3;
  flex-basis: 100%;
}
.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header nav a:hover {
  color: var(--valid);
  text-decoration: underline;
}
.header-inner .button {
  margin-left: auto;
}

.button {
  display: inline-block;
  background: var(--valid);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  line-height: 1.2;
}
.button:hover {
  background: var(--valid-dark);
  color: var(--bg);
}
.button-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
}
.text-link {
  font-weight: 600;
}

/* Sections */
section {
  padding: 3.5rem 0;
}
section + section {
  border-top: 1px solid var(--rule);
}
.section-tint {
  background: var(--tint);
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vibe);
  margin-bottom: 0.5rem;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
}
.page-head {
  padding-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 48rem) {
  .site-header nav {
    order: 0;
    flex-basis: auto;
    margin-left: auto;
  }
  .header-inner .button {
    margin-left: 0;
  }
  section {
    padding: 5rem 0;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
}
.hero h1 .keep {
  display: inline-block;
}
.hero-credit {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-credit p {
  margin: 0;
}
.headshot {
  border-radius: 50%;
  display: block;
}
.hero-credit .headshot {
  width: 4rem;
  height: 4rem;
  flex: none;
}

/* Problem */
.worries .card {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}
.worries {
  margin: 1.5rem 0;
}

/* Steps */
.steps {
  counter-reset: none;
}
.step-number {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--valid);
  margin-bottom: 0.4rem;
}

/* Findings */
.note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}
.severity {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  border: 1px solid currentColor;
}
.severity-critical {
  color: var(--critical);
}
.severity-high {
  color: var(--high);
}
.severity-medium {
  color: var(--medium);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--tint);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}
.report-excerpt {
  margin: 1.5rem 0 0;
}
.report-excerpt figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}
blockquote {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

/* Pricing */
.price-card .amount {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--valid);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}
.price-note {
  font-size: 0.9rem;
  color: var(--muted);
}
.pricing-extras {
  margin-top: 1.25rem;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vibe);
  margin-bottom: 0.5rem;
}
.addon {
  border-color: var(--vibe);
}
.reassurance {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* About */
.about {
  display: grid;
  gap: 2rem;
}
.about-photo .headshot {
  width: 12rem;
  height: 12rem;
}
.credentials {
  padding-left: 1.2rem;
}
.credentials li {
  margin-bottom: 0.35rem;
}
@media (min-width: 48rem) {
  .about {
    grid-template-columns: 16rem 1fr;
    align-items: start;
  }
  .about-photo .headshot {
    width: 16rem;
    height: 16rem;
  }
}

/* Fit */
.fit-best {
  border-color: var(--valid);
  border-width: 2px;
}

/* FAQ teaser */
.faq-short dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 1rem;
}
.faq-short dd {
  margin: 0.25rem 0 0;
}

/* Testimonials */
.testimonial {
  margin: 0;
}
.testimonial figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Final CTA */
.book {
  text-align: left;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
.footer-brand p {
  margin: 0.4rem 0 0.75rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.copyright {
  margin: 0;
  font-size: 0.85rem;
}
@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .copyright {
    grid-column: 1 / -1;
  }
}

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

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  max-width: 46rem;
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  list-style-position: outside;
}
.faq-list details p {
  margin: 0.75rem 0 0;
}
