:root {
  --paper: #14181f;
  --ink: #edf1f7;
  --muted: #b1bbc9;
  --olive: #8dccff;
  --line: #35404e;
  --cream: #202833;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--olive); outline-offset: 6px; }
.container { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.logo { font-size: 28px; font-weight: 700; letter-spacing: -2px; text-decoration: none; }
.logo span { color: var(--olive); }
nav { display: flex; flex-wrap: wrap; gap: 28px; }
nav a { font-size: 14px; text-decoration: none; }
nav a:hover, .text-link:hover, .footer a:hover { color: var(--olive); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; padding: 68px 0 80px; }
.eyebrow { margin: 0 0 18px; color: var(--olive); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(48px, 6.8vw, 78px); line-height: 1.03; letter-spacing: -2px; }
h1 span { color: var(--olive); }
.intro { font-size: 21px; line-height: 1.55; margin-bottom: 20px; }
.hero-note { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.button { display: inline-flex; align-items: center; gap: 28px; background: var(--olive); color: #102438; padding: 13px 22px; border-radius: 4px; text-decoration: none; font-size: 14px; }
.button:hover { background: #b6dfff; }
.portrait { margin: 0; transform: rotate(2deg); background: var(--cream); padding: 12px; border-radius: 4px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.section { border-top: 1px solid var(--line); padding: 52px 0 60px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3.2vw, 38px); line-height: 1.2; font-weight: 400; letter-spacing: -.5px; margin-bottom: 30px; }
.about { display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; }
.section-content p { margin-bottom: 18px; }
.section-content p:last-child { margin-bottom: 0; }
.personal { color: var(--olive); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.skill { position: relative; border-top: 1px solid var(--line); padding: 24px 0; }
.skill-number { position: absolute; right: 0; top: 26px; font-family: Georgia, serif; color: var(--muted); font-size: 13px; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.skill p { max-width: 90%; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.level { color: var(--olive); font-size: 12px; font-weight: 600; }
.project { background: var(--cream); border-radius: 5px; padding: 36px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.status { display: inline-block; border: 1px solid #557b9a; border-radius: 30px; padding: 3px 12px; font-size: 12px; color: var(--olive); margin-bottom: 24px; }
.project h2 { font-size: clamp(25px, 3vw, 35px); margin-bottom: 10px; overflow-wrap: anywhere; }
.project-subtitle { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags span { background: var(--paper); padding: 3px 12px; border-radius: 3px; font-size: 12px; }
.project-content { font-size: 15px; }
.project-content h3 { font-size: 16px; }
.project ul { padding-left: 20px; margin-bottom: 24px; }
.project li { padding-left: 3px; margin-bottom: 6px; }
.project li::marker { color: var(--olive); }
.text-link { color: var(--olive); font-weight: 600; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contacts h2 { margin-bottom: 14px; }
.contacts p:last-child { color: var(--muted); font-size: 15px; }
.contact-links { display: grid; gap: 16px; min-width: 0; }
.contact-links a { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; text-decoration: none; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--olive); }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; font-size: 12px; color: var(--muted); }
.footer a { text-decoration: none; }
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .header { align-items: flex-start; gap: 20px; }
  nav { justify-content: flex-end; gap: 8px 16px; padding-top: 6px; }
  nav a { font-size: 12px; }
  .hero { gap: 36px; padding: 40px 0 48px; grid-template-columns: 1fr; }
  .hero-text { max-width: 500px; }
  .portrait { max-width: 390px; margin-inline: auto; width: 94%; }
  .section { padding: 36px 0 42px; }
  .about, .project, .contacts { grid-template-columns: 1fr; gap: 18px; }
  .about h2 { margin-bottom: 6px; }
  .project { padding: 24px; gap: 28px; }
  .intro { font-size: 19px; }
  .skills-grid { column-gap: 24px; }
  .skill p { max-width: 100%; }
  .skill h3 { padding-right: 25px; font-size: 17px; }
}
@media (max-width: 420px) { .skills-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

