/* Illia Polosukhin — personal site.
   Minimal, single-column, in the spirit of darioamodei.com.
   No build step: plain CSS, served straight from GitHub Pages. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --rule: #e6e6e6;
  --link: #1a56db;
  --max-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #e8e8e8;
    --muted: #888888;
    --rule: #2a2a2a;
    --link: #7aa2f7;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

header h1 a {
  color: var(--text);
}

header h1 a:hover {
  text-decoration: none;
}

.bio p {
  margin: 0 0 1rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1rem;
}

ul.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.entries li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
}

ul.entries li .date {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

footer {
  margin-top: 3rem;
}

footer ul.links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

footer .copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  main {
    padding: 3rem 1.25rem 3rem;
  }
  body {
    font-size: 17px;
  }
}
