:root {
  --bg: #211f1d;
  --text: #f4f2ef;
  --muted: #b9b4ae;
  --line: rgba(255, 255, 255, 0.18);
  --pad: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.6 "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* Small spaced-out caps used for name, nav and links */
.logo, nav a, .social a {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 400;
}

/* ---------- Home: full-bleed photo ---------- */
body.home {
  display: flex;
  flex-direction: column;
  /* Background photo; the dot pattern below is only a fallback if assets/bg.webp is missing. */
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url("bg.webp") center / cover no-repeat,
    radial-gradient(circle at center, #15130f 0 5px, transparent 6px) 0 0 / 34px 34px,
    #4a4642;
}

.home header { padding: 28px var(--pad); }

.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
}

h1.big {
  margin: 0;
  max-width: 9ch;
  font-weight: 200;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.bio { margin: 20px 0 0; max-width: 28em; font-size: 0.95rem; }

.home nav { margin-top: 28px; }
.home nav a { margin-right: 20px; }

.social { padding: 0 var(--pad) 32px; }
.social a { margin-right: 20px; }

/* ---------- Inner pages ---------- */
.page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--line);
}
.page nav a { margin-left: 20px; opacity: 0.65; }
.page nav a:hover, .page nav a[aria-current="page"] { opacity: 1; }

.page main { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.page main.center { text-align: center; }
.page main.center .summary { margin-inline: auto; }

.page h1 { margin: 0; font-weight: 200; font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.1; }
.page h2 {
  margin: 48px 0 8px;
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.summary { margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 34em; }

.job { margin: 24px 0 0; }
.job h3 { margin: 0; font-weight: 400; font-size: 1.15rem; }
.job .place { color: var(--muted); }
.roles { list-style: none; padding: 0; margin: 12px 0 0; border-left: 1px solid var(--line); }
.roles li { padding: 4px 0 4px 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.roles .dates { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

.card { margin-top: 16px; padding-left: 17px; border-left: 1px solid var(--line); }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin: 4px 0; }

.skills { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }

.btn { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }

.page-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }

.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-list .label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; }

@media (max-width: 600px) {
  :root { --pad: 22px; }
  .page header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page nav a { margin: 0 20px 0 0; }
}

@media print {
  nav, .social, .no-print { display: none; }
  body { background: #fff; color: #000; }
  .page header { border: 0; }
  .summary, .job .place, .roles .dates, .page h2 { color: #444; }
}
