/* Base styles */
:root {
  --bg: #fefefe;
  --panel: #f8f9fa;
  --text: #2c3e50;
  --muted: #6c757d;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --border: #e9ecef;
  --card: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans Pro', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(254, 254, 254, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.name {
  margin: 0;
  font-size: 20px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.site-nav a {
  color: var(--text);
  margin-left: 16px;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Active nav link state */
.site-nav a.active {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding: 80px 0 60px;
}

.hero-text h2 {
  font-size: 42px;
  line-height: 1.3;
  margin: 0 0 20px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text);
}

.hero-text p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 800px;
}

.hero-ctas {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn.ghost {
  border: 2px solid var(--border);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.section {
  padding: 34px 0;
}

.section.alt {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h3 {
  margin-top: 0;
  font-size: 28px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text);
}

.section h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--text);
  margin-top: 0;
}

.cols-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .cols-2 {
    grid-template-columns: 1.3fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.key-facts {
  margin: 50px 0 0;
}

.key-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-facts li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.key-facts li:last-child {
  border-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 780px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list li {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.pill-list li:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

/* Bullet list styling for Key Skills (semantic UL/LI, but hide default marker) */
.bullet-list {
  list-style: none;
  /* hide default bullet */
  padding-left: 0;
  margin: 0;
  color: var(--text);
}

.bullet-list li {
  margin: 6px 0;
  padding-left: 0.25rem;
  /* small indent so emoji aligns comfortably */
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.note {
  color: var(--muted);
}

/* Experience logo badges */
.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
  background: var(--muted);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  font-family: 'Playfair Display', serif;
}

.logo-bp {
  background: #1a936f;
}

.logo-halma {
  background: #2563eb;
}

.logo-eversheds {
  background: #111827;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  margin-left: 12px;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Responsive typography */
@media (max-width: 768px) {
  .site-header .brand {
    padding: 0 0 0 5px;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .section h3 {
    font-size: 24px;
  }

  .name {
    font-size: 18px;
  }

  .hero-inner {
    padding: 60px 10px 40px;
  }

  .section {
    padding: 48px 0;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}