/* ── Colours: change these to restyle the whole site ── */
:root {
  --bg: #FAFAF7;
  --text: #14213D;      /* body text */
  --title: #001021;     /* name, headings, rules */
  --muted: #3D4A66;     /* secondary text */
  --line: #C9CDD6;      /* thin dividers */
  --accent: #FF5A3C;    /* CV button + card stripes */
  --accent-ink: #001021;/* text on the CV button */
  --education: #7B2D77; /* section label colours */
  --experience: #105D86;
  --work: #47722B;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--title); }
h1, h2, h3 { font-family: 'Inter Tight', sans-serif; color: var(--title); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding: 32px 0; border-bottom: 2px solid var(--title);
}
.logo { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--title); letter-spacing: -0.01em; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.pill { padding: 4px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; }
.pill:hover { color: var(--accent-ink); filter: brightness(0.95); }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow { margin: 0 0 20px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.name { margin: 0; font-weight: 700; font-size: 4.75rem; line-height: 0.98; letter-spacing: -0.04em; }
.intro { margin: 28px 0 0; max-width: 600px; font-size: 1.3rem; line-height: 1.5; }

/* Section rows */
.row { display: flex; flex-wrap: wrap; gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); }
.row-contact { border-top: 2px solid var(--title); padding-bottom: 64px; }
.label { flex: 1 1 200px; margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.label-education { color: var(--education); }
.label-experience { color: var(--experience); }
.label-work { color: var(--work); }
.row-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

.entry { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.entry h3 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.sub { margin: 4px 0 0; color: var(--muted); }
.dates { margin: 0; font-weight: 500; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #FFFFFF; border: 1px solid var(--title); border-radius: 4px; }
a.card:hover { box-shadow: 4px 4px 0 var(--title); }
.stripe { width: 40px; height: 6px; background: var(--accent); }
.card-title { font-family: 'Inter Tight', sans-serif; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: var(--title); }
.card .sub { margin: 0; font-size: 0.95rem; }

/* Projects */
.projects { gap: 0; }
.project { display: flex; flex-wrap: wrap; gap: 20px 32px; padding: 32px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.project:first-child { padding-top: 0; }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.thumb { flex: 0 0 260px; width: 260px; height: 172px; object-fit: cover; border-radius: 4px; background: #E8E8E8; }
.project-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kicker { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project h3 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; max-width: 720px; }
a.project:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.project:hover .thumb { opacity: 0.9; }
.project .sub { margin: 0; }
.description { margin: 6px 0 0; max-width: 600px; }
@media (max-width: 600px) { .thumb { flex-basis: 100%; width: 100%; height: auto; aspect-ratio: 3 / 2; } }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.contact a, .contact p {
  margin: 0; border-bottom: 1px solid var(--title); padding-bottom: 10px;
  display: flex; justify-content: space-between; gap: 8px; font-weight: 500; overflow-wrap: anywhere;
}

.site-footer { padding: 24px 0 48px; font-size: 0.9rem; color: var(--muted); }

/* Blog post pages (kept for old posts) */
.post { padding: 64px 0; max-width: 680px; }
.post h1 { font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.post .dates { color: var(--muted); margin-bottom: 28px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Phones */
@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  .name { font-size: 3.25rem; }
  .intro { font-size: 1.1rem; }
  .site-header nav { gap: 16px; }
  .row { gap: 16px; padding: 36px 0; }
}
