@charset "UTF-8";

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --text: #212529;
  --text-muted: #6c757d;
  --accent: #414349;
  --border: #e9ecef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --bg-alt: #1e1f22;
    --text: #e9ecef;
    --text-muted: #9aa0a6;
    --accent: #cfd2d6;
    --border: #2c2d30;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-color: var(--text);
}

.subheading a {
  border-bottom: none;
  font-weight: 600;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar .brand {
  font-weight: 700;
  border-bottom: none;
  font-size: 1.05rem;
}

.toplinks {
  display: flex;
  gap: 1.25rem;
}

.toplinks a {
  border-bottom: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toplinks a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  max-width: clamp(560px, 45vw, 680px);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.hero .accent {
  color: var(--text-muted);
}

.hero .role {
  font-weight: 600;
  margin: 0;
}

.hero .location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.15rem 0 1.25rem;
}

.hero .lead {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.icon-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.icon-links a {
  border-bottom: none;
  color: var(--text-muted);
  display: inline-flex;
  padding: 0.4rem;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}

.icon-links a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

/* Sections */
.section {
  max-width: clamp(680px, 82vw, 1100px);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.75rem;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 2rem;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.entry .subheading {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.2rem 0 0.6rem;
}

.entry p {
  margin: 0 0 0.5rem;
}

.entry p:last-child {
  margin-bottom: 0;
}

.entry-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.easter-egg {
  position: relative;
}

.easter-egg .tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: min(270px, calc(100vw - 2.5rem));
  white-space: normal;
  background: #1c1d1f;
  color: #f5f6f7;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}

.easter-egg .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1c1d1f;
}

.easter-egg:hover .tooltip,
.easter-egg:focus .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (min-width: 640px) {
  .entry {
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .entry-main {
    flex: 1;
    max-width: 640px;
  }

  .entry-date {
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0.1rem;
  }
}

/* Certifications */
.cert-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .cert-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.cert-grid li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cert-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-grid a {
  font-size: 0.9rem;
  border-bottom: none;
  color: var(--text-muted);
}

.cert-grid a:hover {
  color: var(--text);
}

.cert-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.cert-tag-retired {
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.cert-planned-heading {
  margin: 2rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cert-planned {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cert-planned li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
}

/* Hobbies image preview */
.img-preview {
  display: none;
  position: fixed;
  z-index: 999;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
  transform: translate(16px, 16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.version {
  color: var(--text-muted);
  font-size: 0.8rem;
}
