/* alexandrerd.com: the Lazulix family's look under Alexandre's own name (D8).
   The tokens are the Lazulix brand brief's (LazulixSite docs/BRAND.md § 9),
   fixed values; everything else here is built from them. No JavaScript. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand */
  --lz-blue: #1976D2;
  --lz-blue-soft: #2F7AF4;
  --lz-blue-strong: #1E30F3;
  --lz-pink: #E21E80;
  --lz-violet: #B3279C;

  /* neutrals */
  --lz-page: #F5F8FA;
  --lz-page-alt: #F8FBFC;
  --lz-surface: #FFFFFF;
  --lz-ink: #1D2D35;
  --lz-ink-2: #2F3A45;
  --lz-slate: #5B6573;
  --lz-line: #E8EBF0;
  --lz-border: #EEF0F4;
  --lz-blue-tint: #EAF2FB;
  --lz-pill-from: #E8EBF1;
  --lz-pill-to: #DCE9F8;
  --lz-on-dark-muted: #C9D3DD;

  /* gradients */
  --lz-gradient: linear-gradient(90deg, #2F7AF4 0%, #1976D2 33%, #E21E80 67%, #B3279C 100%);
  --lz-gradient-z: linear-gradient(90deg, #1E30F3, #1976D2);
  --lz-gradient-pill: linear-gradient(90deg, var(--lz-pill-from), var(--lz-pill-to));

  /* type, shape, depth */
  --lz-font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --lz-radius-sm: 10px;
  --lz-radius-md: 12px;
  --lz-radius-lg: 16px;
  --lz-radius-xl: 20px;
  --lz-radius-card: 24px;
  --lz-shadow-card: 0 1px 2px rgba(29,45,53,.04), 0 8px 24px rgba(29,45,53,.06);

  /* semantic aliases: use these in components */
  --lz-primary: var(--lz-blue);
  --lz-accent: var(--lz-pink);
  --lz-text: var(--lz-ink-2);
  --lz-heading: var(--lz-ink);
  --lz-text-muted: var(--lz-slate);
}

/* ---- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--lz-page);
  color: var(--lz-text);
  font: 400 16px/1.5 var(--lz-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--lz-heading); margin: 0; }
p, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Small blue text on the page background uses blue-strong (7.1:1); Lazulix
   Blue is kept for white surfaces, where it passes AA. */
a { color: var(--lz-blue-strong); text-underline-offset: 3px; }
.card a { color: var(--lz-blue); }

:focus-visible { outline: 2px solid var(--lz-blue); outline-offset: 2px; }

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

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 800px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.icon { width: 18px; height: 18px; flex: none; }

/* ---- Header: the name, and a menu that needs no script --------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--lz-page); border-bottom: 1px solid var(--lz-border);
}
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
@media (min-width: 900px) { .site-header .container { min-height: 72px; } }

/* A typeset name, not the Lazulix wordmark (D8). */
.wordmark {
  font-size: 21px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  color: var(--lz-ink-2); text-decoration: none;
}
.wordmark-first { font-weight: 300; }
.wordmark-last { font-weight: 800; color: var(--lz-ink); }
@media (min-width: 640px) { .wordmark { font-size: 24px; } }

.site-nav { margin-left: auto; display: flex; gap: 20px; }
.site-nav a {
  color: var(--lz-ink-2); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--lz-ink); }
.site-nav a[aria-current] { color: var(--lz-ink); border-bottom-color: var(--lz-blue); }
@media (min-width: 640px) { .site-nav { gap: 32px; } }

/* ---- Typography -------------------------------------------------------------- */

.display {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}
.page-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.hl { color: var(--lz-blue); }
h3, .h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }

.kicker { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 300; color: var(--lz-ink-2); margin-bottom: 8px; }
.lede { font-size: 18px; line-height: 1.55; max-width: 40em; }
@media (min-width: 640px) { .lede { font-size: 20px; } }
.prose { max-width: 44em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 16px; }
.small { font-size: 14px; }
.muted { color: var(--lz-text-muted); }
strong { color: var(--lz-ink); font-weight: 600; }

/* Eyebrow + hairline (SectionLabel). */
.section-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lz-blue-strong); margin-bottom: 20px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--lz-border); }
.section-label--slate { color: var(--lz-slate); }

/* AccentBar: two solid halves, blue then pink. */
.accent-bar {
  display: block; width: 160px; height: 6px; border-radius: 999px; margin-top: 20px;
  background: linear-gradient(90deg, var(--lz-blue) 0 50%, var(--lz-pink) 50% 100%);
}
.accent-bar--sm { width: 96px; height: 4px; margin-top: 16px; }

/* ---- Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--lz-radius-md);
  font: 600 16px/1.2 var(--lz-font); text-decoration: none;
  border: 1px solid transparent; transition: filter .15s ease;
}
.btn--primary { background: var(--lz-primary); color: var(--lz-surface); }
.btn--primary:hover { filter: brightness(0.92); }
.btn--secondary { background: var(--lz-surface); color: var(--lz-ink); border-color: var(--lz-border); }
.btn--secondary:hover { filter: brightness(0.96); }
.btn--secondary .icon { color: var(--lz-blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- Sections, grids, cards ------------------------------------------------- */

.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section--white { background: var(--lz-surface); border-top: 1px solid var(--lz-border); border-bottom: 1px solid var(--lz-border); }
.section-head { margin-bottom: 32px; }

.grid { display: grid; gap: 24px; }
.prose + .grid { margin-top: 24px; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--lz-surface); border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-card); box-shadow: var(--lz-shadow-card);
  padding: 24px;
}
@media (min-width: 640px) { .card { padding: 32px; } }
@media (min-width: 900px) { .card { padding: 40px; } }
.card h3 { margin-bottom: 8px; }
.section--white .card { box-shadow: none; background: var(--lz-page-alt); }

/* IconBadge, the lighter variant. */
.badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--lz-radius-sm);
  background: color-mix(in srgb, var(--lz-blue) 10%, transparent); color: var(--lz-blue);
}

.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--lz-blue); margin-top: 3px; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--lz-blue-tint); color: var(--lz-ink); font-size: 13px; font-weight: 600;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Home -------------------------------------------------------------------- */

.hero { padding: 40px 0 48px; }
@media (min-width: 900px) { .hero { padding: 72px 0 64px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }

.portrait {
  max-width: 360px; width: 100%; margin: 0 auto;
  background: var(--lz-blue-tint); border-radius: var(--lz-radius-card);
  overflow: hidden; padding-top: 24px;
}
.portrait img { width: 100%; }

.hero-lede { margin-top: 28px; }
.accent-bar + .prose { margin-top: 28px; }

/* The experience: one row per card, the badge beside the words. */
.experience { margin-top: 32px; display: grid; gap: 16px; }
.experience .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; padding: 24px; }
.experience .card > :not(.badge) { grid-column: 2; }
.experience .badge { grid-row: 1 / span 2; }
.experience .card h3 { margin: 0 0 6px; }
.experience-more { margin-top: 24px; font-weight: 600; }

.connect { text-align: center; }
.connect .section-title { max-width: none; }
.connect .prose { margin: 16px auto 0; }
.connect .btn-row { justify-content: center; margin-top: 24px; }

/* ---- Blog list ---------------------------------------------------------------- */

.post-list { display: grid; gap: 24px; }

.post-card {
  display: grid; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--lz-surface); border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-card); box-shadow: var(--lz-shadow-card);
}
.post-card:hover { border-color: var(--lz-pill-to); }
.post-card:hover .post-card-title { color: var(--lz-blue); }
/* The images are quote cards, square or taller: a narrow card shows the
   whole image; the side column crops from the top, where the words are. */
.post-card-img { width: 100%; height: 240px; object-fit: contain; background: var(--lz-page-alt); }
.post-card-body { padding: 24px; }
@media (min-width: 760px) {
  .post-card--image { grid-template-columns: 240px 1fr; }
  .post-card-img { height: 100%; min-height: 220px; object-fit: cover; object-position: center top; }
  .post-card-body { padding: 32px; }
}
.post-card-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 6px 0 10px; }
.post-card-excerpt { color: var(--lz-ink-2); }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: 14px; color: var(--lz-text-muted);
}
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 16px; height: 16px; }
.post-card .post-meta { margin-top: 16px; }

.pagination { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 14px; border-radius: var(--lz-radius-md); text-decoration: none; font-weight: 600;
  background: var(--lz-surface); border: 1px solid var(--lz-border); color: var(--lz-ink);
}
.page-link[aria-current="page"] { background: var(--lz-primary); border-color: var(--lz-primary); color: var(--lz-surface); }
.page-link--disabled { color: var(--lz-text-muted); background: transparent; }

/* ---- A post ------------------------------------------------------------------- */

.post-header { margin-bottom: 32px; }
.post-header .post-meta { margin-top: 16px; }

.post-figure {
  margin-bottom: 32px; border-radius: var(--lz-radius-card); overflow: hidden;
  border: 1px solid var(--lz-border); background: var(--lz-page-alt);
}
.post-figure img { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }

.post-body { font-size: 18px; line-height: 1.65; color: var(--lz-ink-2); }
.post-body p + p, .post-body p + ul, .post-body p + ol,
.post-body ul + p, .post-body ol + p { margin-top: 16px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 16px 0; }
.post-body li + li { margin-top: 6px; }

.post-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--lz-border); display: grid; gap: 24px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---- Resume ------------------------------------------------------------------- */

.page-head { margin-bottom: 40px; }
.page-head .lede { margin-top: 16px; }

.resume-section + .resume-section { margin-top: 48px; }
.resume-heading { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin-bottom: 20px; }

.competencies { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .competencies { grid-template-columns: repeat(2, 1fr); } }
.competencies li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--lz-surface); border: 1px solid var(--lz-border); border-radius: var(--lz-radius-md);
  color: var(--lz-ink); font-weight: 500;
}
.competencies .icon { color: var(--lz-blue); }

/* The experience timeline: a hairline, a ring on each role. */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 32px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: -4px;
  width: 2px; background: var(--lz-line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; border: 3px solid var(--lz-blue); background: var(--lz-surface);
}
.job-title { font-size: 18px; font-weight: 700; color: var(--lz-ink); line-height: 1.35; }
.job-company { font-weight: 600; color: var(--lz-blue-strong); }
.job-period { font-size: 14px; color: var(--lz-text-muted); }
.job-description { margin-top: 8px; max-width: 46em; }

.credential { border-left: 4px solid var(--lz-blue); padding: 4px 0 4px 20px; }
.credential--slate { border-left-color: var(--lz-slate); }
.credential h3 { font-size: 18px; margin-bottom: 4px; }

/* ---- Footer ------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--lz-border); padding: 32px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--lz-ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--lz-ink); text-decoration: underline; }
.copyright { font-size: 14px; color: var(--lz-text-muted); }

/* ---- Privacy ------------------------------------------------------------------ */

.legal h2 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 24px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }

/* ---- Not found ---------------------------------------------------------------- */

.not-found { text-align: center; }
.not-found .lede { margin: 16px auto 0; }
.not-found .btn-row { justify-content: center; }
