/* cv.microstoma.top — 2026 */

@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/ptsans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/ptsans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/ptsans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("/assets/fonts/ptserif-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #16324f;
  --navy-deep: #0e2233;
  --ink: #1f2933;
  --muted: #5c6b7a;
  --accent: #c2410c;
  --gold: #d9a441;
  --soft: #f4f6f8;
  --line: #d8dee6;
  --white: #ffffff;
  --wrap: 1120px;
  --radius: 16px;
  --sans: "PT Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration-color: rgba(22, 50, 79, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

::selection { background: var(--gold); color: var(--navy-deep); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top .15s ease;
}
.skip:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: .01em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .02em;
}
.brand__name { font-size: 15.5px; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"] { font-weight: 700; }

.top__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
}
.lang:hover { border-color: var(--navy); color: var(--navy); }

.burger {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.6px;
  margin: 4px auto;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 56px;
  align-items: start;
  padding-top: 76px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: var(--gold); }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--navy);
}

.hero__role {
  margin: 16px 0 0;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.35;
  color: var(--ink);
}
.hero__summary {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 17.5px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line); color: var(--muted); }
.btn--ghost.is-disabled { cursor: not-allowed; opacity: .55; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--accent); }
.btn--outline-light { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.meta div { min-width: 120px; }
.meta dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta dd { margin: 4px 0 0; font-size: 14.5px; color: var(--ink); }
.meta a { color: var(--ink); text-decoration: none; }
.meta a:hover { color: var(--accent); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2e9e6b;
  vertical-align: 1px;
}

.hero__aside { padding-top: 8px; }
.photo {
  aspect-ratio: 1;
  width: 100%;
  max-width: 220px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 20% 0%, #24496b 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, .92);
  font-family: var(--serif);
  font-size: 48px;
  letter-spacing: .02em;
  box-shadow: 0 18px 40px -24px rgba(14, 34, 51, .55);
}
.photo__hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  max-width: 220px;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  color: var(--navy);
}
.stat__label { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */

.section { padding-top: 78px; }

.sec__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 18px;
  align-items: baseline;
  margin-bottom: 36px;
}
.sec__num {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .04em;
}
.sec__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy);
}
.sec__lead {
  grid-column: 2;
  margin: 10px 0 0;
  max-width: 60ch;
  color: var(--muted);
}
.sec__more { margin: 26px 0 0; }
.sec__more a { font-weight: 700; text-decoration: none; color: var(--accent); }

/* ---------- jobs ---------- */

.jobs { display: grid; gap: 0; }
.job {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job__side p { margin: 0; }
.job__dates {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
}
.job__company { margin-top: 6px !important; font-size: 14px; color: var(--muted); }
.job__body h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--navy);
}
.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  color: var(--ink);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 1.5px;
  background: var(--gold);
}

/* ---------- skills ---------- */

.skills { margin: 0; border-top: 1px solid var(--line); }
.skill {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.skill dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.skill dd { margin: 0; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #c3cedb;
  box-shadow: 0 20px 40px -30px rgba(14, 34, 51, .45);
}
.card.is-soon { background: var(--soft); }
.card__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.tag {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff;
}
.badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--navy);
}
.card__desc { margin: 0; font-size: 15px; color: var(--muted); }
.card__result {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.card__link { margin-top: 14px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent); }

/* ---------- education ---------- */

.edu {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-top: 8px;
}
.edu h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { margin: 6px 0; }
.edu p { margin: 0; }

/* ---------- cta ---------- */

.cta {
  margin-top: 90px;
  background: var(--navy);
  color: #fff;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}
.cta__lead { margin: 12px 0 0; max-width: 52ch; color: rgba(255, 255, 255, .78); }
.cta__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta__small { color: rgba(255, 255, 255, .72); font-size: 14px; text-decoration: none; }
.cta__small:hover { color: #fff; }

/* ---------- footer ---------- */

.foot { background: var(--soft); border-top: 1px solid var(--line); }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 13px;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot__links { display: flex; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--navy); }

/* ---------- subpages ---------- */

.page-head { padding-top: 74px; padding-bottom: 34px; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 56px); }
.page-head__lead { margin: 16px 0 0; max-width: 60ch; font-size: 18px; color: var(--muted); }

.prose { max-width: 820px; padding-bottom: 20px; }
.prose__block { padding: 34px 0; border-top: 1px solid var(--line); }
.prose__block h2 {
  margin: 4px 0 14px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy);
}
.prose__block p { margin: 0 0 12px; color: var(--ink); }
.prose__block p:last-child { margin-bottom: 0; }

.back { margin: 34px 0 60px; }
.back a { font-weight: 700; text-decoration: none; color: var(--accent); }

.cards--page { margin-bottom: 10px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; }
  .hero__aside { padding-top: 0; }
  .photo { max-width: 148px; border-radius: 18px; font-size: 34px; }
  .photo__hint { text-align: left; max-width: none; }
  .job { grid-template-columns: 1fr; gap: 10px; }
  .job__dates { margin-bottom: 2px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .edu { grid-template-columns: 1fr 1fr; }
  .cta__inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .stats { grid-template-columns: 1fr; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
  .stat { flex-direction: row; align-items: baseline; gap: 14px; }
  .stat__num { font-size: 30px; min-width: 96px; }
  .sec__head { grid-template-columns: 1fr; }
  .sec__num { margin-bottom: 6px; }
  .sec__lead { grid-column: 1; }
  .skill { grid-template-columns: 1fr; gap: 4px; }
  .cards { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; gap: 22px; }
  .meta { gap: 14px 22px; }
  .cta { margin-top: 60px; }
  .cta__links { width: 100%; }
  .cta__links .btn { width: 100%; }
  .foot__inner { flex-direction: column; }
}

/* ---------- motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .top, .foot, .cta, .skip, .hero__actions, .photo__hint, .back { display: none !important; }
  body { font-size: 10.5pt; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .hero { display: block; padding: 0 0 10mm; }
  .hero__aside { display: none; }
  h1 { font-size: 26pt; }
  .hero__role { font-size: 13pt; margin-top: 3mm; }
  .hero__summary { color: #000; font-size: 10.5pt; }
  .meta { border-top: .4pt solid #999; }
  .stats { border-color: #999; }
  .stat__num { font-size: 18pt; }
  .section { padding-top: 8mm; }
  .sec__head h2 { font-size: 16pt; }
  .job, .skill, .card, .prose__block { break-inside: avoid; }
  .card { border: .4pt solid #999; }
  a { color: #000; text-decoration: none; }
}
