/* Website styles. Palette and details follow the CV: sand band, slate accents, square bullets. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --band: #f4f0ea;
  --surface: #ffffff;
  --ink: #1f2b33;
  --body: #3a4850;
  --muted: #5d6d76;
  --accent: #45687a;
  --slate: #7f9aa9;
  --rule: #e2e6e8;
  --chip: #eef2f4;
  --chip-ink: #2e4652;
  --mono: #45687a;
  --primary: #1f2b33;
  --on-primary: #ffffff;
  --header: rgba(251, 250, 247, 0.92);
  --ring: #ffffff;
  --shadow: 0 10px 30px rgba(31, 43, 51, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181d;
    --band: #172128;
    --surface: #182229;
    --ink: #e7eef2;
    --body: #b8c5cd;
    --muted: #8fa1ac;
    --accent: #93b7ca;
    --slate: #6f8c9b;
    --rule: #27343d;
    --chip: #213039;
    --chip-ink: #d3e3ec;
    --primary: #e7eef2;
    --on-primary: #11181d;
    --header: rgba(17, 24, 29, 0.9);
    --ring: #27343d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--body); font: 16px/1.65 "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip { position: absolute; top: -60px; left: 16px; z-index: 30; padding: 8px 14px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-weight: 600; }
.skip:focus { top: 12px; }

/* Header */
.site { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); background: var(--header); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 700; white-space: nowrap; }
.mono { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--mono); color: #fff; font-size: 13px; letter-spacing: 0.06em; }
.sections { display: flex; gap: 2px; }
.sections a { padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.sections a:hover { background: var(--chip); color: var(--ink); }
.lang { display: flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang a { padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--chip); color: var(--ink); }
.lang a:hover { color: var(--ink); }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); background: var(--band); }
.hero-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.avatar { width: 220px; height: 220px; border: 6px solid var(--ring); border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-wrap: balance; }
h1 { margin-top: 8px; color: var(--ink); font-size: clamp(36px, 6vw, 54px); line-height: 1.1; letter-spacing: -0.01em; }
.lead { max-width: 44ch; margin-top: 14px; color: var(--ink); font-size: clamp(18px, 2.4vw, 20px); line-height: 1.5; }
.sub { max-width: 62ch; margin-top: 10px; }
.where { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 15px; font-weight: 600; }
.where svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; }
.btn:hover { border-color: var(--slate); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { opacity: 0.9; }

/* Sections */
.block { padding: 64px 0; scroll-margin-top: 62px; }
.block + .block { border-top: 1px solid var(--rule); }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.label::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--slate); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.section-intro { max-width: 62ch; margin: -12px 0 26px; }

/* Product and project cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.card.feature { padding: 28px; }
.shot { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 18px; border: 1px solid var(--rule); border-radius: 10px; object-fit: cover; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.card h3 { margin-top: 2px; color: var(--ink); font-size: 20px; line-height: 1.25; }
.card.feature h3 { font-size: 28px; letter-spacing: -0.01em; }
.tagline { margin-top: 2px; color: var(--muted); font-weight: 600; }
.card.feature .tagline { color: var(--accent); font-size: 17px; }
.summary { margin-top: 10px; }
.minor { margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ticks { display: grid; gap: 6px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; top: 0.66em; left: 2px; width: 7px; height: 7px; background: var(--slate); }
.card:not(.feature) .summary, .card:not(.feature) .ticks { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li { padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 13px; line-height: 1.5; }
.card .chips { margin-top: auto; padding-top: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 600; }
.more svg { width: 15px; height: 15px; }

/* Experience and education */
.timeline { display: grid; gap: 30px; }
.row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
.when { padding-top: 3px; color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row h3 { color: var(--ink); font-size: 19px; line-height: 1.35; }
.org { color: var(--accent); font-weight: 600; }
.org span { color: var(--muted); font-weight: 400; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.skill h3 { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.skill .chips { margin-top: 10px; }

/* Contact */
.contact-title { color: var(--ink); font-size: clamp(26px, 4vw, 34px); font-weight: 700; line-height: 1.2; }
.contact-note { max-width: 56ch; margin-top: 10px; }
.email { display: inline-block; margin-top: 16px; padding-bottom: 2px; border-bottom: 2px solid var(--slate); color: var(--ink); font-size: clamp(19px, 3vw, 26px); font-weight: 600; overflow-wrap: anywhere; }
.email:hover { border-color: var(--accent); }

/* Footer */
.foot { border-top: 1px solid var(--rule); background: var(--band); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 22px; padding-bottom: 22px; color: var(--muted); font-size: 14px; }

/* 404 */
.notfound { padding-top: 96px; padding-bottom: 120px; }
.notfound .sub { margin-top: 8px; }

@media (max-width: 880px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .sections { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 40px; padding-bottom: 44px; }
  .avatar { width: 128px; height: 128px; border-width: 4px; }
  .block { padding: 48px 0; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .skills { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .card, .card.feature { padding: 22px; }
  .card.feature h3 { font-size: 24px; }
}
