/* Servicefolio site: one column, mobile first, same palette as the app (docs/design/g1-add-vehicle.md §2). */
:root {
  --brand: #1f4d3a;
  --surface: #f6f3ec;
  --raised: #ffffff;
  --text: #1a1f1c;
  --muted: #5a635d;
  --line: #d6d1c5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9fd4b8;
    --surface: #121614;
    --raised: #1c211e;
    --text: #f6f3ec;
    --muted: #a9b2ac;
    --line: #2f3834;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transform: translateY(-200%);
  background: var(--raised);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  z-index: 1;
}

.skip-link:focus-visible { transform: translateY(0); }

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .page { padding: 0 1.5rem; }
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 1rem;
  padding-top: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 0.5rem;
}

.site-header nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
}

.site-header nav a { color: var(--brand); }

main { padding: 1.5rem 0 2rem; }

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.25rem;
}

p,
ul {
  margin: 0 0 1rem;
  max-width: 65ch;
  overflow-wrap: anywhere;
}

/* Inline text links: the 44 px tap area lives in a transparent pseudo-element, so the focus outline stays around the text. */
main a {
  position: relative;
}

main a::after {
  content: "";
  position: absolute;
  inset: -0.875rem 0;
}

ul { padding-left: 1.25rem; }

li + li { margin-top: 0.5rem; }

.tagline {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

.draft-notice {
  background: var(--raised);
  border: 1px dashed var(--muted);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1.25rem 0 2rem;
}

.site-footer p { margin: 0 0 0.5rem; }

.site-footer a:first-child { margin-left: -0.5rem; }
