/* Homepage stylesheet (dist/index.html). Same palette as the CV (styles.css) so the two read as one site.
   Sections: tokens, base, nav, hero, blocks, cards, contact, responsive, print. */

:root {
  --ink: #1a1d23;
  --ink-muted: #5a6170;
  --accent: #1f2a44;
  --accent-2: #2a9d8f;
  --accent-2-light: #8fd8cc;
  --masthead-bg: #1b2538;
  --chip-bg: #f1f4f8;
  --rule: #d9dde5;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --section-gap: 1rem;
  --max-width: 64rem;
  --radius: 8px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { margin: 0; padding: 0 1rem 2rem; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.55; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 650; }
p, ul, dl { margin: 0 0 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; background: var(--bg); padding: 0.5rem; z-index: 20; }
.sep { color: var(--rule); margin: 0 0.35rem; }
.icon { flex-shrink: 0; }

.topnav, .hero, main, .site-footer { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* Nav: sticky bar with section links and the CV button */
.topnav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  padding: 0.6rem 0.25rem;
  background: var(--bg);
}
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.1rem; font-size: 0.9375rem; }
.topnav a { text-decoration: none; color: var(--ink-muted); }
.topnav a:hover { color: var(--accent); }
.topnav .nav-cv { color: #fff !important; background: var(--accent); padding: 0.3rem 0.8rem; border-radius: 999px; }

/* Hero: dark card, text left, photo right */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center;
  padding: 2.25rem 2.5rem 2rem;
  background: var(--masthead-bg); color: #fff; border-radius: var(--radius);
}
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-2-light)); }
.hero a { color: #fff; }
.status { display: inline-block; margin: 0 0 0.75rem; padding: 0.15rem 0.7rem; font-size: 0.8125rem;
  border-radius: 999px; background: rgba(143, 216, 204, 0.15); color: var(--accent-2-light); border: 1px solid rgba(143, 216, 204, 0.4); }
.name { font-size: 2.75rem; font-weight: 750; letter-spacing: -0.02em; }
.role { margin: 0.35rem 0 0.5rem; font-size: 1.3rem; font-weight: 600; color: var(--accent-2-light); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.4rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.82); }
.hero-meta .icon { color: var(--accent-2-light); }
.hero-meta .sep { color: rgba(255, 255, 255, 0.35); }
.hero-meta { margin: 0; }
.hero-career { margin-top: 0.25rem; }
.pitch { font-size: 1.125rem; line-height: 1.5; max-width: 40rem; margin: 0.9rem 0 1.1rem; }
.hero-certs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.hero-certs a {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  font-size: 0.875rem; text-decoration: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-certs a:hover { background: rgba(255, 255, 255, 0.16); }
.hero-certs img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.hero-photo { display: block; width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1rem;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; border-radius: 6px; border: 1px solid transparent;
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-2); color: #fff !important; }
.btn-primary:hover { background: #23887c; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-light { color: var(--accent); background: #fff; border-color: var(--rule); }
.btn-light:hover { border-color: var(--accent); }
.block .btn-ghost { color: var(--accent); border-color: var(--rule); }

/* Blocks */
main { display: flex; flex-direction: column; gap: var(--section-gap); margin-top: var(--section-gap); }
.block { background: var(--card-bg); padding: 1.75rem 2.25rem; border-radius: var(--radius); }
.block > :last-child { margin-bottom: 0; }
.block h2 { font-size: 1.5rem; margin-bottom: 1rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--accent); }
.section-intro { color: var(--ink-muted); margin-top: -0.4rem; }
.more { font-size: 0.875rem; font-weight: 600; }
.more::after { content: " →"; }
.more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }

/* Impact metrics */
.metrics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric { display: flex; flex-direction: column; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-top: 4px solid var(--accent-2); border-radius: var(--radius); }
.metric-value { font-size: 1.4rem; font-weight: 750; line-height: 1.2; color: var(--accent); margin-bottom: 0.4rem; }
.metric:first-child .metric-value { font-size: 1.05rem; line-height: 1.35; }  /* long title: the customer list */
.metric-label { font-size: 0.9rem; color: var(--ink-muted); margin: 0; }

/* Cards */
.card { padding: 1.25rem 1.4rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--accent); }
.card p { margin-bottom: 0.6rem; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillar { border-left: 4px solid var(--accent-2); }
.pillar-footer { margin-top: 1rem; color: var(--ink-muted); font-style: italic; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.work { display: flex; flex-direction: column; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tags li { font-size: 0.8125rem; padding: 0.1rem 0.6rem; background: var(--chip-bg); border-radius: 999px; color: var(--accent); }

/* Career highlights: logo column + company, roles and one-line highlight */
.career { list-style: none; padding: 0; margin: 0; }
.career-item { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.career-item:first-child { padding-top: 0; }
.career-item:last-child { border-bottom: none; padding-bottom: 0; }
.career-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--rule); padding: 4px; }
.career-body h3 { font-size: 1.125rem; color: var(--accent); margin-bottom: 0.3rem; }
.career-roles { list-style: none; padding: 0; margin: 0 0 0.45rem; }
.career-roles li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; }
.career-role { font-weight: 600; }
.career-meta { font-size: 0.875rem; color: var(--ink-muted); }
.career-body p { margin: 0; }

/* Stack */
.stack { display: grid; grid-template-columns: 13rem 1fr; gap: 0.55rem 1.25rem; margin: 0; }
.stack-group { display: contents; }
.stack dt { font-weight: 600; }
.stack dd { margin: 0; }
.stack-sub { margin: 0 0 0.3rem; }
.stack-sub:last-child { margin-bottom: 0; }
.stack-sub strong { font-weight: 700; }

/* Community */
.articles { list-style: none; padding: 0; margin: 0; counter-reset: art; }
.articles li { counter-increment: art; position: relative; padding: 0.6rem 0 0.6rem 2.25rem; border-bottom: 1px solid var(--rule); }
.articles li::before { content: counter(art); position: absolute; left: 0; top: 0.55rem; width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700;
  color: #fff; background: var(--accent-2); border-radius: 50%; }
.articles a { font-weight: 600; }
.articles .venue { display: block; font-size: 0.8125rem; color: var(--ink-muted); }

/* Contact */
.contact-block { background: var(--masthead-bg); color: #fff; }
.contact-block h2 { border-bottom-color: var(--accent-2-light); }
.contact-block p { color: rgba(255, 255, 255, 0.85); }

.site-footer { padding: 1rem 0.25rem 0; font-size: 0.875rem; color: var(--ink-muted); }
.site-footer p { margin: 0; }

@media (max-width: 56rem) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 44rem) {
  .topnav ul li:not(:last-child) { display: none; }
  .career-item { grid-template-columns: 40px 1fr; gap: 0.8rem; }
  .career-logo { width: 40px; height: 40px; }
  .hero { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; gap: 1rem; }
  .hero-photo-wrap { grid-row: 1; }
  .hero-photo { width: 120px; height: 120px; }
  .name { font-size: 2rem; }
  .block { padding: 1.25rem; }
  .pillars, .work-grid, .metrics { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; gap: 0.1rem; }
  .stack dd { margin-bottom: 0.6rem; }
}

@media print {
  body { padding: 0; background: #fff; color: #000; }
  .topnav, .skip-link, .actions, .more-row { display: none; }
  .hero, .contact-block { background: none; color: #000; padding: 0; }
  .hero::before { display: none; }
  .hero a, .role, .hero-meta, .contact-block p, .hero-certs a { color: #000; }
  .block { padding: 0; margin-top: 1rem; }
  .card, .metric { break-inside: avoid; }
}
