/* robertmakra.ch — single stylesheet, no external resources */

:root {
  --text: #1a1a1a;
  --muted: #595959;      /* 7:1 on white */
  --navy: #1b2d4f;       /* accent, 13:1 on white */
  --navy-dark: #111e36;
  --line: #d9dce3;
  --tint: #f5f6f8;
  --bg: #ffffff;
  --measure: 65ch;
  --gutter: 1.25rem;
  --wide: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 8rem; /* keep anchored headings clear of the sticky header */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;   /* 18px */
  line-height: 1.6;
}

@media (min-width: 64rem) {
  body { font-size: 1.25rem; } /* 20px on desktop */
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.2em; }

p, ul, ol, dl { margin: 0 0 1rem; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose { max-width: var(--measure); }

.section {
  padding: 3.5rem 0;
}
.section + .section { border-top: 1px solid var(--line); }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .section { padding: 5rem 0; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name cta"
    "nav  nav";
  align-items: center;
  gap: 0.25rem 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.4rem;
}

.site-name {
  grid-area: name;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-nav { grid-area: nav; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--navy); color: var(--navy); }

.header-cta { grid-area: cta; }

@media (min-width: 48rem) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "name nav cta";
    gap: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .site-nav ul { justify-content: flex-end; gap: 1.75rem; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  line-height: 1.2;
  border: 2px solid var(--navy);
}
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.button:focus-visible { outline-offset: 3px; }

.button-small {
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}

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

.hero { padding: 2.5rem 0 3.5rem; }

.hero-grid {
  display: grid;
  gap: 2rem;
}
.hero-photo {
  width: 11rem;
  border-radius: 4px;
  background: var(--tint);
}
.hero h1 { max-width: 22ch; }
.hero .subline {
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 2rem;
}

@media (min-width: 56rem) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid {
    grid-template-columns: 1fr 20rem;
    align-items: center;
    gap: 4rem;
  }
  .hero-photo { order: 2; width: 100%; }
}

/* ---------- Numbers ---------- */

.numbers {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 2rem;
}
.number {
  display: block;
  font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  font-weight: 650;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.employers {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .numbers { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ---------- Cards ---------- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  color: var(--text);
  text-decoration: none;
}
a.card:hover { border-color: var(--navy); }
a.card:hover .card-text { text-decoration: underline; text-decoration-thickness: 1px; }
.card-text { font-weight: 550; }

/* ---------- Lists ---------- */

.plain-list {
  padding-left: 1.2rem;
  max-width: var(--measure);
}
.plain-list li + li { margin-top: 0.75rem; }

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--tint);
}
.section + .final-cta { border-top: 0; }
.final-cta p { font-size: 1.15em; max-width: 40ch; }

/* ---------- Offers ---------- */

.offer { max-width: var(--measure); }
.offer dl { margin: 0; }
.offer dt {
  font-weight: 650;
  margin-top: 1.25rem;
}
.offer dd { margin: 0.25rem 0 0; }

/* ---------- Insights ---------- */

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--measure);
}
.article-list li { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.article-list li:last-child { border-bottom: 1px solid var(--line); }
.article-list h2 { font-size: 1.3em; margin-bottom: 0.4rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }

.article { max-width: var(--measure); }
.back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.95rem; }

/* ---------- About ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: var(--measure);
}
.timeline li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline h3 { font-size: 1.05em; margin: 0 0 0.2rem; }
.timeline .meta { margin-bottom: 0.4rem; }
.timeline p { margin: 0; }

.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- TODO markers ---------- */

.todo {
  background: #fff3bf;
  color: #5c4400;
  padding: 0 0.25em;
  border-radius: 2px;
  font-weight: 500;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-name { color: var(--text); font-weight: 600; }
.footer-links { margin-top: 1.25rem !important; }

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

.legal { max-width: var(--measure); }
.legal h2 { font-size: 1.25em; margin-top: 2rem; }

@media print {
  .site-header, .skip-link { display: none; }
}

.page-head { padding-bottom: 0; }
.page-head h1 { margin: 0; }
.page-head + .section { border-top: 0; }
