/* DannerCode — simple, clean, direct. System fonts, one accent, light/dark follows the OS. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --surface: #ffffff;
  --text: #14181f;
  --muted: #5a6472;
  --line: #e2e6eb;
  --accent: #0b6e6e;
  --accent-hover: #095959;
  --accent-ink: #ffffff;
  --accent-soft: #e3f1f1;
  --danger: #b42318;
  --ok: #0b6e3a;
  --radius: 10px;
  --maxw: 1080px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --bg-alt: #151a20;
    --surface: #171c23;
    --text: #e8ebef;
    --muted: #9aa4b1;
    --line: #262d36;
    --accent: #3cc2b8;
    --accent-hover: #5fd3ca;
    --accent-ink: #06201e;
    --accent-soft: #12302e;
    --danger: #ff7b72;
    --ok: #4ade80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 720px; }  /* narrow text, but left edge aligned with other sections */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 28px; height: 28px; }
.wordmark b { color: var(--accent); font-weight: 700; }
nav { display: flex; align-items: center; gap: 22px; }
nav a:not(.btn) { color: var(--muted); font-weight: 500; }
nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 8px; padding: 12px 20px;
  font: 600 1rem/1 var(--font); cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { padding: 8px 14px; font-size: .95rem; }
.link { font-weight: 600; }
.resume-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.resume-links .alt { font-size: .95rem; }
.resume-links .console { font-family: var(--mono); font-size: .9rem; }

/* Hero */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(24px, 4vw, 48px); }
.eyebrow { color: var(--accent); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 1.2em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; margin-bottom: 2em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: .8em; }
.section.alt p, #contact > .wrap > p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }  /* 2×2 on desktop, stacked on phones */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 18px; border-radius: 8px; background: var(--accent-soft); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Form */
.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: .95rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { margin: 0; font-weight: 500; }
.status.ok { color: var(--ok); }
.status.error { color: var(--danger); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .bar { padding-block: 28px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav { gap: 14px; }
  nav a:not(.btn) { display: none; }
  .hero h1 br { display: none; }
  .site-footer .bar { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* "How we work" principles */
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.points li { position: relative; padding-left: 28px; color: var(--muted); font-size: 1.05rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.points strong { color: var(--text); }
.section.alt .narrow > p { color: var(--muted); font-size: 1.1rem; }
