/* ---------------------------------------------------
   Alona O. Dolinsky — static site
   Palette / type chosen to match the original WordPress.com
   theme: quiet, academic, serif headings, blue text links.
   --------------------------------------------------- */

:root {
  --bg: #ffffff;
  --text: #2b2b2b;
  --text-muted: #5c5c5c;
  --link: #1a5490;
  --link-visited: #4a3a78;
  --border: #e5e2db;
  --header-bg: #fafaf8;
  --max-width: 780px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(26, 84, 144, 0.35);
  text-underline-offset: 2px;
}
a:hover { text-decoration-color: currentColor; }
a:visited { color: var(--link-visited); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
  text-align: center;
}

.site-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.site-title a { color: var(--text); text-decoration: none; }

.site-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 22px;
  font-style: italic;
}

/* Nav */
nav.site-nav {
  position: relative;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 3px;
  user-select: none;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  display: inline-block;
  padding: 6px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 3px;
}
.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  background: rgba(26, 84, 144, 0.08);
  color: var(--link);
}

@media (max-width: 560px) {
  .nav-toggle-label { display: inline-block; }
  .nav-list {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-toggle:checked ~ .nav-list {
    max-height: 400px;
    margin-top: 12px;
  }
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 64px;
}

main h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

main p {
  margin: 0 0 20px;
  text-align: justify;
  hyphens: auto;
}

main h2, main h3 {
  font-family: var(--font-serif);
  margin: 36px 0 12px;
}

main ul, main ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
main li { margin-bottom: 8px; text-align: justify; hyphens: auto; }

main strong { font-weight: 600; }

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.cv-download {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.95rem;
}
.cv-download:hover { background: #444; }
.cv-download:visited { color: #fff; }

/* CV page */
.cv-meta {
  margin: 0 0 32px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}
.cv-meta a { color: var(--text-muted); }

main h2.cv-h {
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
  margin: 44px 0 16px;
  font-size: 1.3rem;
}
main h3.cv-sub {
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.cv-entries {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 18px;
  row-gap: 14px;
  margin: 0 0 12px;
}
.cv-entries .cv-year {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.cv-entries .cv-detail { margin: 0; text-align: justify; hyphens: auto; }
.cv-entries .cv-detail .sub { color: var(--text-muted); display: block; }

.cv-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
}
.cv-list li {
  padding-left: 1.6em;
  text-indent: -1.6em;
  margin-bottom: 13px;
  text-align: justify;
  hyphens: auto;
}
.cv-list .yr { font-weight: 600; }

.cv-inline { margin: 0 0 12px; }
.cv-inline .lead { font-weight: 600; }

@media (max-width: 560px) {
  .cv-entries { grid-template-columns: 1fr; row-gap: 3px; }
  .cv-entries .cv-year { margin-top: 12px; font-weight: 600; color: var(--text); }
  .cv-entries .cv-detail { margin-bottom: 8px; }
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
footer.site-footer a { color: var(--text-muted); }
