/* Andreas Bantele – static site stylesheet. No external resources. */

:root {
  --bg: #fbfbfc;
  --surface: #f1f3f6;
  --ink: #1a1d23;
  --muted: #5d6470;
  --rule: #dfe2e7;
  --accent: #1f4f8f;
  --accent-ink: #ffffff;
  --focus: #1f4f8f;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1a1d22;
    --ink: #e6e8eb;
    --muted: #9aa1ab;
    --rule: #2a2e35;
    --accent: #8db4ec;
    --accent-ink: #0e1724;
    --focus: #8db4ec;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--bg);
  padding: 0.5rem 0.75rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

/* Hero ---------------------------------------------------------------- */

.hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .hero { padding: 7rem 0 5rem; } }

.tlp {
  display: inline-block;
  margin: 0 0 2rem;
  padding: 0.2rem 0.55rem;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  border-radius: 2px;
}
@media (prefers-color-scheme: dark) {
  .tlp { box-shadow: inset 0 0 0 1px #fff; }
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.role {
  margin: 0.75rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--muted);
  font-weight: 500;
}

.lead {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

.creds {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin: 1.75rem 0 0; padding: 0;
}
.creds li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.25rem 0 0; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { background: var(--surface); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.12); }

/* Sections ------------------------------------------------------------ */

.row { padding-top: 3rem; padding-bottom: 3rem; position: relative; }

@media (min-width: 48rem) {
  .row {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: 2.5rem;
    padding-top: 4rem; padding-bottom: 4rem;
  }
}
/* Divider between sections, aligned with the content column */
.row + .row::before {
  content: ""; position: absolute; top: 0; left: 1rem; right: 1rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 40rem) { .row + .row::before { left: 2rem; right: 2rem; } }

h2 {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
@media (min-width: 48rem) { h2 { margin: 0.2rem 0 0; } }

.body { max-width: 38rem; }
.body > p { margin: 0 0 1rem; }
.body > p:last-child { margin-bottom: 0; }

.note { color: var(--muted); font-size: 0.95rem; }

/* Focus areas */
.focus { margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .focus { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; } }
.focus dt { font-weight: 650; margin-bottom: 0.3rem; }
.focus dd { margin: 0; color: var(--muted); font-size: 0.975rem; }

/* Career timeline */
.timeline { list-style: none; margin: 0 0 2rem; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0 0 1.5rem 1.25rem;
  border-left: 2px solid var(--rule);
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 0.45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted);
}
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); }
@media (min-width: 40rem) {
  .timeline li { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
}
.years { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.15rem; white-space: nowrap; }
.timeline h3 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.timeline p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.975rem; }

/* Certifications */
.certs { list-style: none; margin: 0; padding: 0; }
.certs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name link" "meta link";
  column-gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.certs li:first-child { padding-top: 0; }
.certs li:last-child { border-bottom: 0; padding-bottom: 0; }
.certs li > div { grid-area: name; }
.certs strong { font-weight: 650; margin-right: 0.35rem; }
.certs .meta { grid-area: meta; color: var(--muted); font-size: 0.9rem; }
.certs a { grid-area: link; align-self: center; font-size: 0.925rem; font-weight: 600; }

/* Contact */
.big { font-size: 1.2rem; line-height: 1.5; }
.contact .actions { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* Footer -------------------------------------------------------------- */

.footer {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline;
  padding-top: 2rem; padding-bottom: 3rem;
  position: relative;
  color: var(--muted); font-size: 0.875rem;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 1rem; right: 1rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 40rem) { .footer::before { left: 2rem; right: 2rem; } }
.footer p { margin: 0; }
.footer nav { margin-left: auto; display: flex; gap: 1.25rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

/* Legal pages --------------------------------------------------------- */

.legal { padding-top: 3rem; padding-bottom: 4rem; }
.legal .back { display: inline-block; margin-bottom: 2rem; font-size: 0.95rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 2rem; }
.legal h2 { color: var(--ink); font-size: 1.15rem; margin: 2.25rem 0 0.5rem; }
.legal p, .legal ul { max-width: 40rem; margin: 0 0 1rem; }
.legal address { font-style: normal; }

@media print {
  .actions, .skip, .tlp { display: none; }
  body { background: #fff; color: #000; }
}
