:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1b1f23;
  --muted: #4a5159;      /* 7.4:1 on --bg */
  --accent: #0f5c57;     /* 7.2:1 on --bg */
  --accent-text: #ffffff;
  --rule: #d9d4c8;
  --focus: #b4530a;      /* 4.6:1 on --bg, distinct from accent */
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --surface: #1c2126;
    --text: #eef0f2;
    --muted: #b3bac2;    /* 9.1:1 on --bg */
    --accent: #6fd1c7;   /* 9.9:1 on --bg */
    --accent-text: #0b1f1d;
    --rule: #2f363d;
    --focus: #ffb36b;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.site-header { padding-block: 1.75rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

main { flex: 1; }

.hero { padding-block: clamp(3rem, 10vw, 6.5rem) 3rem; }

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  min-height: 44px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

.about,
.contact {
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
}

.email { font-weight: 600; word-break: break-word; }

.site-footer {
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--rule);
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .button, a { transition: filter 0.15s ease, text-decoration-thickness 0.15s ease; }
}
