:root {
  --cream: #fbf6ec;
  --ink: #1a1714;
  --red: #e63b2e;
  --blue: #1d4ed8;
  --green: #1f9d55;
  --amber: #d98a1f;
  --yellow: #f6ce45;
  --muted: #6b635a;
  --line: rgba(0, 0, 0, 0.1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- nav ---------- */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 34px 0;
}
nav .nav-side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
}
nav .badge {
  margin-bottom: 0;
}
nav .logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}
nav .links {
  justify-content: flex-end;
}
nav .links a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 28px;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
nav .links a:first-child {
  margin-left: 0;
}
nav .links a:hover {
  color: var(--red);
}
nav .links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--red);
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow.red {
  color: var(--red);
}
.eyebrow.blue {
  color: var(--blue);
}
.eyebrow.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  cursor: pointer;
  border: 0;
  line-height: 1;
}
.btn-primary {
  color: #fff;
  background: var(--ink);
}
.btn-primary:hover {
  background: var(--red);
}
.btn-primary .arrow {
  color: var(--yellow);
}
.btn-outline {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-light {
  color: var(--ink);
  background: var(--cream);
}
.btn-light:hover {
  background: var(--yellow);
}

footer {
  padding: 56px 0 64px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
footer a {
  text-decoration: none;
  font-weight: 500;
}
footer a:hover {
  color: var(--blue);
}

/* nowrap helper for the hyphenated surname */
.surname {
  white-space: nowrap;
}

/* =========================================================
   HOME
   ========================================================= */
.hero {
  padding: 40px 0 60px;
}
/* Availability badge. Colour comes from --badge so it can be swapped per status:
   default = green (open), .amber = casually looking, .red = not looking. */
.badge {
  --badge: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--badge);
  border: 1.5px solid var(--badge);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 32px;
}
.badge.amber {
  --badge: var(--amber);
}
.badge.red {
  --badge: var(--red);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 .under {
  position: relative;
  white-space: nowrap;
}
.hero h1 .under::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.09em;
  background: var(--red);
}
.pitch {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.32;
  max-width: 18ch;
  margin-bottom: 14px;
}
.pitch .hl {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  padding: 0 0.08em;
}
.loc {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 36px;
}

.callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.callout {
  padding: 36px 0;
}
.callout.left {
  padding-right: 52px;
  border-right: 1px solid var(--line);
}
.callout.right {
  padding-left: 52px;
}
.callout p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.32;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack .label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 8px;
}
.stack b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
}
.stack .sep {
  color: var(--red);
  font-weight: 700;
}
.stack .more {
  margin-left: auto;
  font-size: 15px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.stack .more:hover {
  text-decoration: underline;
}

.cv-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: 54px 48px;
  margin: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.cv-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.9;
}
.cv-card .eyebrow {
  color: var(--yellow);
  position: relative;
}
.cv-card h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
}
.cv-card .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  margin-bottom: 22px;
  position: relative;
}
.cv-card .role .yrs {
  color: var(--yellow);
}
.cv-card p {
  max-width: 54ch;
  color: #d8d0c5;
  margin-bottom: 26px;
  position: relative;
}
.cv-card .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  position: relative;
}
.cv-card .skills span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
}
.cv-card .view {
  position: relative;
}

/* =========================================================
   CV PAGE
   ========================================================= */
.cv-head {
  padding: 40px 0 16px;
}
.cv-head h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cv-head .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 6px;
}
.cv-head .role .yrs {
  color: var(--red);
}
.cv-head .meta {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}
.cv-head .summary {
  max-width: 60ch;
  font-size: 17px;
  margin-bottom: 30px;
}
.cv-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.section {
  padding: 54px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.section > h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1;
  margin-bottom: 8px;
}

.entry {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.section > .entry:first-of-type {
  border-top: 0;
}
.entry .when .co {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
}
.entry .when .co a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.entry .when .co a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.entry .when .dates {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.entry .when .place {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.entry .what .role {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--blue);
}
.entry .what ul {
  list-style: none;
}
.entry .what li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.entry .what li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--red);
}
.entry .what p {
  margin-bottom: 10px;
}

.skillrow {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.section > .skillrow:first-of-type {
  border-top: 0;
}
.skillrow .cat {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  padding-top: 5px;
}
.skillrow .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.skillrow .tags span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
}

.minirow {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.section > .minirow:first-of-type {
  border-top: 0;
}
.minirow .ttl {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
}
.minirow .ttl a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.minirow .ttl a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.minirow .sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.minirow .body p {
  margin-bottom: 8px;
}
.minirow .body .when {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-head {
  padding: 40px 0 8px;
}
.contact-head h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.contact-head .intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.4;
  max-width: 26ch;
}
.feature {
  margin: 44px 0 8px;
}
.feature .k {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.feature a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 5.4vw, 54px);
  line-height: 1.05;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.feature a .hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 0.04em;
}
.feature a:hover .hl {
  background: linear-gradient(transparent 0%, var(--yellow) 0%);
}
.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 46px;
}
.method {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.method .k {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.method a {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 25px);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.method a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 680px) {
  nav {
    flex-wrap: wrap;
    row-gap: 14px;
  }
  nav .nav-status {
    order: 2;
    flex-basis: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .callouts {
    grid-template-columns: 1fr;
  }
  .callout.left {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .callout.right {
    padding-left: 0;
  }
  .cv-card {
    padding: 40px 26px;
  }
  .stack .more {
    margin-left: 0;
    width: 100%;
  }
  .entry,
  .minirow {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .entry .when .dates {
    margin-top: 2px;
  }
  .skillrow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .methods {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =========================================================
   PRINT — keep a plain Ctrl-P looking sensible (portrait)
   ========================================================= */
@media print {
  nav,
  footer,
  .cv-actions,
  .badge {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .wrap {
    padding: 0 24px;
  }
  .section,
  .entry,
  .minirow,
  .skillrow {
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: none;
  }
}
