/* vandriichuk.com — personal page and resume. Same visual family as andriichuk.com. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0f1419;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --line: #e6e8ec;
  --muted: #5a6470;
  --muted-strong: #3d4651;
  --brand: #1B4F72;
  --brand-deep: #143a55;
  --brand-soft: #e8eef4;
  --ok: #1f7a4d;
  --max-width: 1080px;
  --content-width: 760px;
  --radius: 10px;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--brand); color: var(--paper); }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--content-width); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }
.menu { display: flex; gap: 20px; align-items: center; }
.menu a { color: var(--muted-strong); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--brand); }
.menu .hide-sm { display: none; }
@media (min-width: 760px) { .menu .hide-sm { display: inline; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.98rem; border: 1px solid var(--brand); transition: background .15s; }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.section-head { margin-bottom: 36px; max-width: var(--content-width); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--muted-strong); line-height: 1.7; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .lead { margin-top: 22px; max-width: 760px; }
.hero-meta { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { background: var(--paper); padding: 18px 20px; }
.facts b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 0.9rem; line-height: 1.4; display: block; }

/* Cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted-strong); font-size: 0.98rem; }
.card .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--brand); }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.company .where { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.company h3 { font-size: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li, .chips a { font-size: 0.85rem; padding: 4px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); text-decoration: none; }
.chips a:hover { background: #d6e2ec; }

/* Proof band */
.band { background: var(--ink); color: #dfe4ea; }
.band h2 { color: #fff; }
.band .eyebrow { color: #8fb8d6; }
.band .lead { color: #c3cbd4; }
.band ul.checks { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.band ul.checks li { padding-left: 28px; position: relative; line-height: 1.6; }
.band ul.checks li::before { content: "→"; position: absolute; left: 0; color: #8fb8d6; font-family: var(--font-mono); }
.band ul.checks b { color: #fff; }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn:hover { background: #e8eef4; }
.band .btn.ghost { background: transparent; color: #fff; border-color: #5b6b7a; }
.band .btn.ghost:hover { background: rgba(255,255,255,.08); }

/* Results */
.results { display: grid; gap: 18px; }
@media (min-width: 640px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .results { grid-template-columns: repeat(3, 1fr); } }
.result { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); }
.result b { display: block; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--brand); line-height: 1.2; }
.result p { margin-top: 8px; color: var(--muted-strong); font-size: 0.95rem; }
.result small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.84rem; }
.note { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

/* Links list */
.link-groups { display: grid; gap: 28px; }
@media (min-width: 760px) { .link-groups { grid-template-columns: repeat(3, 1fr); } }
.link-groups h3 { font-size: 0.8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.link-groups ul { list-style: none; display: grid; gap: 8px; }
.link-groups a { text-decoration: none; font-weight: 500; }
.link-groups a:hover { text-decoration: underline; }

/* Contact */
.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.contact-list div { background: var(--paper); padding: 14px 18px; display: grid; gap: 2px; }
@media (min-width: 640px) { .contact-list div { grid-template-columns: 200px 1fr; gap: 16px; } }
.contact-list dt { color: var(--muted); font-size: 0.92rem; }
.contact-list dd { font-weight: 500; overflow-wrap: anywhere; }

/* Resume */
.resume-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.resume-head .title { margin-top: 10px; font-size: 1.12rem; color: var(--muted-strong); }
.resume-head .contacts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }
.resume-head .contacts a { text-decoration: none; }
.resume { padding: 8px 0 72px; }
.resume section { padding: 40px 0 0; }
.resume h2 { font-size: 0.86rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); font-weight: 600; padding-bottom: 10px; border-bottom: 2px solid var(--brand); margin-bottom: 20px; }
.resume p { color: var(--muted-strong); margin-bottom: 12px; }
.resume ul { padding-left: 20px; display: grid; gap: 8px; color: var(--muted-strong); }
.resume ul b { color: var(--ink); }
.job { padding: 18px 0; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: none; }
.job-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.job-top h3 { font-size: 1.15rem; }
.job-top h3 span { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.job-top .dates { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.job .role { font-style: italic; color: var(--brand-deep); margin: 2px 0 10px; }
.job h4 { font-size: 0.98rem; margin: 14px 0 8px; color: var(--ink); }
.quote { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; font-style: italic; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.92rem; }
.site-footer .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted-strong); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  .resume-head { padding-top: 0; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
