/* ============================================================
   fccardiff.com — light, classic, with a hint of telemetry
   ============================================================ */
:root {
  --page: #fdfdfb;
  --surface: #f4f3ef;
  --border: #e4e2db;
  --ink: #17181a;
  --ink-2: #43454a;
  --ink-muted: #6e7076;
  --accent: #1d76d2;
  --heading: #1d4e79;
  --subheading: #46718f;
  --good: #0a7a0a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  content: "";
  display: block;
  height: 4px;
  background: #4b9cd3;
}

.mono { font-family: var(--mono); }

a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
a:hover, a:focus-visible { background-size: 100% 1px; }

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

.skip-link {
  position: absolute; left: 8px; top: -48px;
  padding: 8px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--ink); z-index: 100; transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--good); margin-right: 8px; vertical-align: 1px;
}

/* ============================================================
   Layout
   ============================================================ */
.site-head, main, .site-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-top: 28px; padding-bottom: 8px;
}
.mark { font-size: 13px; color: var(--ink); font-weight: 600; }
.head-nav { display: flex; gap: 18px; }
.head-nav a { font-family: var(--mono); font-size: 13px; }

main { padding-bottom: 24px; }
section { margin: 56px 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  margin-top: 64px;
  display: flex; align-items: flex-start; gap: 28px;
}
.hero-text { min-width: 0; }
.portrait {
  flex: none;
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 2px solid #c9dcf4;
  margin-top: 6px;
}
h1 {
  font-family: var(--serif);
  font-size: 44px; font-weight: 600; line-height: 1.15;
  color: var(--ink); margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.role-line { font-size: 18px; color: var(--ink-muted); margin: 0 0 20px; }
.lede { font-size: 19px; line-height: 1.7; margin: 0 0 20px; max-width: 62ch; }
.status-line { font-size: 13px; color: var(--ink-muted); margin: 0; }

/* ============================================================
   Section kickers
   ============================================================ */
.kicker {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ============================================================
   Experience
   ============================================================ */
.job { margin-bottom: 44px; }
.job:last-child { margin-bottom: 0; }
.job-head { margin-bottom: 10px; }
.job h3 {
  font-family: var(--serif);
  font-size: 23px; font-weight: 600; color: var(--ink);
  margin: 0 0 2px; line-height: 1.3;
}
.job-org { color: var(--ink-muted); font-weight: 400; }
.job-dates {
  font-size: 13px; color: var(--ink-muted); margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--good); border: 1px solid #bcd9bc;
  background: #f0f7f0; border-radius: 999px; padding: 1px 9px;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

.job ul { margin: 0; padding-left: 22px; }
.job li { margin-bottom: 8px; }
.job li::marker { color: var(--ink-muted); }
.job b { color: var(--ink); font-weight: 650; }

/* ============================================================
   Skills
   ============================================================ */
.skills { margin: 0; }
.skill-row {
  display: flex; gap: 18px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.skill-row:first-child { padding-top: 0; }
.skill-row:last-child { border-bottom: 0; }
.skills dt {
  flex: 0 0 64px; font-size: 13px; color: var(--accent);
}
.skills dd { margin: 0; color: var(--ink-2); }

/* ============================================================
   Contact
   ============================================================ */
.contact-lede { margin: 0 0 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 6px 0; font-size: 17px;
}
.contact-proto { flex: 0 0 92px; font-size: 13px; color: var(--ink-muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--ink-muted);
}
.site-foot p { margin: 0 0 6px; }
#uptime { font-variant-numeric: tabular-nums; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { margin-top: 40px; flex-direction: column; gap: 18px; }
  .portrait { width: 88px; height: 88px; margin-top: 0; }
  h1 { font-size: 34px; }
  .lede { font-size: 17px; }
  .job-head { display: block; }
  section { margin: 44px 0; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  body { font-size: 12pt; }
  .site-head, .skip-link { display: none; }
  .hero { margin-top: 0; }
  section { margin: 24pt 0; }
  .job { break-inside: avoid; }
  .no-print { display: none !important; }
  a { color: var(--ink); }
  .contact-list a::after { content: ""; }
  .site-foot a[href]::after { content: " (" attr(href) ")"; }
}
