/* slovetskiy.com — W3-style sheet. Poppins local first, then Google, then system. */
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}

:root {
  --text: #111;
  --muted: #666;
  --line: #e6e6e6;
  --accent: #009688;
  --accent-soft: #e0f2f1;
  --bg: #f1f1f1;
  --paper: #fff;
  --measure: 40rem;
  --gutter: 24px;
  --shadow: 0 4px 10px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  max-width: none;
  padding: var(--gutter);
  font-family: Poppins, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  text-align: left;
  background: var(--bg);
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 0 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

h1, h2 {
  font-family: inherit;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

h2 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

a {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

a:hover:not(nav a) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
}

nav .end { margin-left: auto; }

.hero {
  padding: 40px 24px 28px;
  text-align: center;
}

.portrait-slot {
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
}

.portrait {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  border: none;
  background: #eee;
  display: block;
}

.lede {
  margin: 8px 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.06em;
}

#about,
#work {
  padding: 28px 24px;
  border-top: 1px solid var(--line);
}

.bio {
  margin: 0;
  line-height: 1.7;
  text-align: left;
}

.work {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.work li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.work li:last-child { border-bottom: none; }

.work .id,
.work .muted {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 13px;
  color: var(--muted);
}

.work-more { margin: 18px 0 0; font-size: 14px; }

#contact {
  padding: 22px 24px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

#contact a { color: var(--accent); }

.muted { color: var(--muted); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 16px 24px 8px;
}

footer p { margin: 0; }

@media (max-width: 480px) {
  body { padding: 12px; }
  nav, .hero, #about, #work, #contact, footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---- added 2026-09-25: credentials row, current-page nav, patents page ---- */
.creds {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.creds span + span::before { content: " · "; color: var(--muted); }
nav a[aria-current="page"] { color: var(--accent); }
nav a + a:not(.end) { margin-left: 18px; }
@supports (gap: 1px) { nav a + a:not(.end) { margin-left: 0; } }

.hero-sub { padding: 32px 24px 8px; }
.hero-sub .lede { color: var(--muted); }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 18px 0 6px;
}
.facts div { text-align: center; min-width: 4.5rem; margin: 0 14px 8px; }
@supports (gap: 1px) { .facts div { margin: 0; } }
.facts strong { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.facts span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

#patents { padding: 8px 24px 20px; }
#patents .theme { padding: 22px 0 6px; border-top: 1px solid var(--line); margin-top: 10px; }
#patents h3 {
  margin: 18px 0 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
#patents .id { display: block; font-size: 13px; color: var(--muted); }
#patents .id a { color: var(--accent); }
#patents .grant { white-space: nowrap; }
#patents .summary { margin: 8px 0 0; line-height: 1.6; }
#patents .note { font-size: 13px; color: var(--muted); }

.contact-links { list-style: none; margin: 0; padding: 0; }
.contact-links li { display: inline; }
.contact-links li + li::before { content: " · "; color: var(--muted); }

@media (max-width: 480px) {
  #patents { padding-left: 16px; padding-right: 16px; }
  .facts { gap: 6px 18px; }
}
@media print {
  html, body { background: #fff; }
  .page { box-shadow: none; max-width: none; }
  nav { display: none; }
  a { color: inherit; }
  #patents .id a { color: inherit; }
}
