/* Fonts: bundled locally (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/baloo2-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/karla-latin.woff2") format("woff2");
}

:root {
  --bg: #F4D477;
  --paper: #FBF3E3;
  --card: #FFFDF8;
  --moss: #6B8F5C;
  --ember: #C65D3B;
  --ember-strong: #B04F30;   /* CTA fill: 4.7:1 with paper text */
  --ember-deep: #9A4329;     /* CTA hover */
  --walnut: #7A5C3E;
  --ink: #3D3226;
  --muted: #6B5B47;
  --line: rgba(61, 50, 38, 0.12);
  --moss-tint: #E4EBD9;
  --ember-tint: #F6DDD2;
  --walnut-tint: #EADFD2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html { scroll-padding-top: 80px; }

body {
  font-family: "Karla", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Baloo 2", sans-serif;
  color: var(--ink);
  line-height: 1.2;
}

a { color: var(--ember-strong); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

.nav-links a:hover { color: var(--ember-strong); }

.nav-links .nav-cta {
  background: var(--ember-strong);
  color: var(--paper);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
}

.nav-links .nav-cta:hover { background: var(--ember-deep); color: var(--paper); }

/* LAYOUT */
main section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

main section > h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 12px;
  text-align: center;
}

.section-lead {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--muted);
}

/* HERO: full-bleed band */
.hero {
  max-width: none !important;
  background: var(--bg);
  padding: 72px 24px 64px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.hero-mark { width: 104px; height: 104px; }

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  max-width: 720px;
  text-wrap: balance;
}

.hero .tagline {
  font-size: 18px;
  max-width: 540px;
  color: #4E4130;
  text-wrap: pretty;
}

.hero .where {
  font-size: 14px;
  font-weight: 500;
  color: #4E4130;
}

.hero .where svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

.cta {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--ember-strong);
  color: var(--paper);
  text-decoration: none;
  margin-top: 6px;
}

.cta:hover { background: var(--ember-deep); }

/* WORK (hidden until there's real material) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.work-tile {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}

.quote {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 19px;
}

.quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

/* SERVICES */
.service-group + .service-group { margin-top: 48px; }

.group-label {
  font-family: "Karla", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(61, 50, 38, 0.06);
  display: flex;
  flex-direction: column;
}

.service-card.featured { margin-bottom: 20px; }

.service-card.featured .feature-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 32px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--ink);
}

.icon svg { width: 24px; height: 24px; }
.icon.moss { background: var(--moss-tint); }
.icon.ember { background: var(--ember-tint); }
.icon.walnut { background: var(--walnut-tint); }

.service-card h3 { font-size: 20px; margin-bottom: 6px; }

.service-card .summary {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.service-card ul {
  padding-left: 18px;
  margin-bottom: 18px;
}

.service-card li {
  font-size: 15px;
  color: var(--muted);
}

.service-card li + li { margin-top: 6px; }

.price-block {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(61, 50, 38, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.price { font-weight: 700; font-size: 17px; color: var(--ink); }

.price-note {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}

.card-link {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  padding: 10px 0;
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tool {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tool .icon { margin: 0; flex-shrink: 0; }
.tool h3 { font-size: 17px; }
.tool p { font-size: 15px; color: var(--muted); }

.tools-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* HOW I WORK */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  margin-bottom: 10px;
}

.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--muted); }

.sample-log {
  max-width: 620px;
  margin: 40px auto 0;
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(61, 50, 38, 0.06);
}

.sample-log header {
  position: static;
  background: none;
  border-bottom: 1px dashed rgba(61, 50, 38, 0.25);
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.sample-log h3 { font-size: 18px; }

.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px 10px;
}

.sample-log dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  font-size: 14.5px;
}

.sample-log dt { font-weight: 700; }
.sample-log dd { color: var(--muted); font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: 13.5px; }

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--walnut);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 52px;
}

.about h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.about p + p { margin-top: 12px; }
.about p { color: var(--muted); }
.about .lead { color: var(--ink); font-size: 18px; }
.about-links { margin-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; }

/* START A PROJECT */
.project-form {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 32px 28px;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fields,
.project-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
}

.req { font-weight: 400; font-size: 13px; color: var(--muted); }

.fields input,
.fields select,
.fields textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid rgba(61, 50, 38, 0.3);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
}

.scope-check {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px;
  background: var(--paper);
}

.scope-check summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  min-height: 44px;
}

.scope-check summary span { font-weight: 400; color: var(--muted); }

.scope-check fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
}

.scope-check .hint { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

.scope-check label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.scope-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--ember-strong);
  flex-shrink: 0;
}

.scope-result:empty { display: none; }

.scope-result {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 14.5px;
}

.project-form [hidden],
.botcheck { display: none; }

.project-form .cta {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.form-status { font-size: 14px; color: var(--muted); }

/* FOOTER */
footer {
  background: var(--bg);
  padding: 40px 24px;
  color: var(--ink);
  font-size: 15px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

footer a { color: var(--ink); font-weight: 700; }
footer .small { font-size: 13px; color: #4E4130; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* RESPONSIVE */
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { padding: 10px 16px; font-size: 14px; }
  main section { padding: 56px 20px; }
  .about { grid-template-columns: 1fr; justify-items: start; }
  .avatar { width: 96px; height: 96px; font-size: 32px; }
  .project-form { padding: 24px 18px; }
  .sample-log dl { grid-template-columns: 1fr; gap: 2px; }
  .sample-log dd { margin-bottom: 8px; }
}

/* QA PAGE (qa.html) */
.hero.dev { background: var(--moss-tint); }
.hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4E4130;
}

.break-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.break {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.break h3 { font-size: 17px; margin-bottom: 4px; }
.break p { font-size: 14.5px; color: var(--muted); }
.break-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }

.proof-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  list-style: none;
}

.proof-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--muted);
}

.proof-list strong { color: var(--ink); }

.sev {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--ember-tint);
  color: var(--ink);
  font-family: "Karla", sans-serif;
}

/* QA page: background link */
.portfolio-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cta.secondary {
  background: transparent;
  color: var(--ember);
  border: 2px solid var(--ember);
}

.cta.secondary:hover {
  background: var(--ember);
  color: var(--paper);
}

/* Contact (email only, no forms) */
.contact-card {
  align-items: flex-start;
}

.include-list {
  padding-left: 20px;
  color: var(--muted);
}

.include-list li + li {
  margin-top: 4px;
}

/* QA page: visual audit example */
.audit-example {
  max-width: 820px;
  margin: 28px auto 0;
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(61, 50, 38, 0.06);
}

.audit-example header {
  position: static;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(61, 50, 38, 0.25);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.audit-example h3 { font-size: 18px; }

.audit-meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.audit-shots {
  display: grid;
  grid-template-columns: 1fr 1.6fr 3fr;
  gap: 14px;
  align-items: end;
}

.audit-shots figure,
.audit-video {
  margin: 0;
}

.audit-shots img,
.audit-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.audit-example figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.audit-video {
  max-width: 260px;
  margin: 20px auto 0;
  text-align: center;
}

@media (max-width: 640px) {
  .audit-shots { grid-template-columns: 1fr 1fr; }
  .audit-shots .wide { grid-column: 1 / -1; }
}
