/* ==========================================================
   COLOURS: change these to change the look of the whole site.
   Keep text colours dark on light backgrounds so it stays easy to read.
   ========================================================== */
:root {
  --brand: #1d3d6e;        /* main colour: header, headings, buttons */
  --brand-light: #e8eef8;  /* soft tint for skill tags */
  --accent: #c2410c;       /* small highlights: dates, timeline dots */
  --bg: #ffffff;           /* page background */
  --text: #1b1f27;         /* main text */
  --muted: #4b5563;        /* softer text */
  --line: #d6dbe4;         /* thin lines */
  --radius: 8px;           /* corner roundness */
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 1.2rem; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.top { background: var(--brand); color: #fff; padding: 3rem 0 2.5rem; }
.initials { width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; margin-bottom: 1rem; }
.top h1 { font-size: clamp(2rem, 7vw, 2.8rem); letter-spacing: -.01em; }
.role { font-size: 1.2rem; margin: 0; }
.place { margin: .2rem 0 1.4rem; opacity: .9; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }

.btn { display: inline-block; background: #fff; color: var(--brand); text-decoration: none; font-weight: 700; padding: .7rem 1.15rem; border-radius: var(--radius); border: 2px solid #fff; }
.btn-ghost { background: transparent; color: #fff; }
.btn:hover { opacity: .9; }
.resume .btn { background: var(--brand); color: #fff; border-color: var(--brand); }

.section { padding: 2rem 0 .5rem; }

/* Skills */
.skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.skills li { background: var(--brand-light); color: var(--brand); font-weight: 600; padding: .35rem .85rem; border-radius: 99px; font-size: .95rem; }

/* Timeline */
.timeline { list-style: none; padding: 0 0 0 1.2rem; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem .4rem; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.timeline p { margin: 0 0 .3rem; }
.when { color: var(--accent); font-weight: 700; font-size: .9rem; }
.where { color: var(--muted); font-style: italic; }

/* Contact */
.links { list-style: none; padding: 0; margin: 0; }
.links li { display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.links span { min-width: 6rem; font-weight: 700; color: var(--muted); }
.links a { overflow-wrap: anywhere; }

/* Footer */
.footer { margin-top: 2.5rem; border-top: 1px solid var(--line); padding: 1.3rem 0; color: var(--muted); font-size: .9rem; }
.footer p { margin: .2rem 0; }
