/* Calling Card: one stylesheet for every page. Colors are set here. */

:root {
  --ink: #132a24;
  --soft: #47625a;
  --green: #125a44;
  --green-dark: #0a3c2d;
  --sky: #d9ecf2;      /* top band */
  --mint: #e7f3ec;     /* notes band */
  --mint-deep: #c2e2d4;
  --line: #d3e2dc;
  --white: #ffffff;
  --font: Commissioner, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.soft { color: var(--soft); }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

.skip-link { position: absolute; left: 16px; top: 8px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--green); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Header and footer ---------- */
.site-header { background: var(--sky); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; padding-block: 24px; }
[data-page="home"] .header-inner { justify-content: center; }
.nav { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 4.4vw, 28px); }
.nav a, .brand { color: var(--ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.brand { font-weight: 600; font-size: 20px; }
.site-footer { border-top: 1px solid var(--line); color: var(--soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-block: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }

@media (max-width: 480px) { .header-inner { padding-block: 12px; } }

/* ---------- Calling card ---------- */
.hero, .page-head { margin-top: -1px; } /* hides a hairline under the header */
.hero { background: var(--sky); padding: 32px 0 80px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.calling-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(19, 60, 74, 0.16);
  min-height: 360px;
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.photo {
  position: relative; overflow: hidden; flex: none;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--mint-deep); color: #1b4f3e;
  display: grid; place-items: center;
  font-weight: 600; font-size: 34px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-button { flex: none; width: clamp(104px, 34vw, 144px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; }
.qr-button img { display: block; width: 100%; height: 100%; }
.qr-button:disabled { background: var(--mint); border-radius: 10px; cursor: default; }
.btn:disabled { opacity: .55; cursor: default; }
.bot-check { width: 100%; }
.bot-check:empty { display: none; }
.contact-help { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 44px; margin-top: -12px; }
.contact-help .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.contact-status { flex: 1 1 200px; color: #3a554d; font-size: 16px; line-height: 1.4; }
.card-name h1 { font-size: clamp(38px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 10px; }
.card-name p { font-size: 20px; line-height: 1.4; color: #3a554d; text-wrap: balance; }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.intro { font-weight: 300; font-size: clamp(23px, 2.5vw, 29px); line-height: 1.28; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font: 600 17px/1.4 var(--font);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 10px;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--mint); }
@media (max-width: 820px) {
  .hero { padding: 8px 0 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .calling-card { min-height: 320px; }
}

.qr-dialog { border: 0; border-radius: 18px; padding: 28px; text-align: center; color: var(--ink); max-width: min(420px, calc(100vw - 32px)); }
.qr-dialog::backdrop { background: rgba(19, 42, 36, 0.55); }
.qr-dialog img { display: block; width: 340px; max-width: 100%; height: auto; margin: 0 auto 12px; }
.qr-dialog p { margin-bottom: 20px; }

/* ---------- Experience and certifications ---------- */
.section { padding-block: 64px 56px; }
.section > h2 { font-size: 30px; margin-bottom: 28px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.job { border-top: 4px solid var(--mint-deep); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.job:nth-child(1) { border-color: var(--green); }
.job:nth-child(2) { border-color: #8fbfac; }
.job h3 { font-size: 21px; }
.skills { color: var(--green); }
.credentials { padding-block: 0 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 64px; }
.credentials > div { display: flex; flex-direction: column; gap: 14px; }
.credentials h2 { font-size: 23px; }
.cert { display: flex; justify-content: space-between; gap: 16px; }
.feature { display: flex; flex-direction: column; font-size: 19px; }
.feature .soft { font-size: 17px; }
.draft { border: 1px dashed var(--soft); border-radius: 10px; padding: 14px 18px; color: var(--soft); overflow-wrap: anywhere; }

/* ---------- Notes ---------- */
.notes-band { background: var(--mint); }
.notes-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px 64px; padding-block: 56px; }
.notes-inner h2 { font-size: 30px; }
.post-list { display: flex; flex-direction: column; gap: 4px; }
.post-row { color: var(--ink); text-decoration: none; min-height: 48px; padding: 6px 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 24px; }
.post-title { font-size: 21px; line-height: 1.35; }
.post-row:hover .post-title { text-decoration: underline; text-underline-offset: 4px; }
.all-posts { font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }
.page-head { background: var(--sky); padding: 24px 0 56px; }
.page-head h1 { font-size: clamp(38px, 4.8vw, 58px); letter-spacing: -0.03em; }
.page-head p { font-size: 20px; color: #3a554d; margin-top: 10px; }
.year { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 64px; padding-block: 48px; }
.year + .year { border-top: 1px solid var(--line); }
.year h2 { font-size: 23px; padding-top: 6px; }
@media (max-width: 720px) {
  .notes-inner, .year { grid-template-columns: minmax(0, 1fr); }
  .post-row { flex-direction: column; padding: 10px 0; }
}

/* ---------- Posts ---------- */
.article { max-width: 748px; margin: 0 auto; padding: 48px 24px 72px; }
.article .crumb { color: var(--soft); margin-bottom: 18px; }
.article .crumb a { color: var(--soft); }
.article h1 { font-size: clamp(34px, 4.6vw, 48px); letter-spacing: -0.03em; }
.article .meta { color: var(--soft); margin: 14px 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.prose { font-size: 18px; line-height: 1.65; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 25px; margin: 1.8em 0 .6em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .6em; }
.back-link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; margin-top: 16px; }
@media (max-width: 480px) { .article { padding-inline: 16px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print { .site-header, .actions, .contact-help, .bot-check { display: none; } .calling-card { box-shadow: none; border: 1px solid var(--line); } }
