/* Dmytro Portianka, personal page. One column, serif display, zero dependencies. Warm paper, one accent. */

:root {
  --bg: #faf7f1;
  --ink: #1c1a17;
  --muted: #6f6a61;
  --line: #e4ddd0;
  --pill: #f0e9db;
  --accent: #b3400f;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark::after { content: "."; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem); }
.hero h1 {
  margin: 0 0 1rem; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -0.02em;
}
.hero h1::after {
  content: ""; display: block; width: 3.5rem; height: 4px;
  background: var(--accent); border-radius: 2px; margin-top: 1.4rem;
}
.lede { font-size: 1.25rem; line-height: 1.5; margin: 0 0 1rem; }
.hero p { max-width: 36rem; color: #35312b; }
.contact-list {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.9375rem;
}
.contact-list a {
  display: inline-block; padding: 0.35rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--pill); color: var(--ink); text-decoration: none;
}
.contact-list a:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.section h2 {
  margin: 0 0 1.25rem; font-family: var(--serif);
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.015em;
}
.section h2::before {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em;
  background: var(--accent); border-radius: 2px; margin-right: 0.45em;
}
.section h3 { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; }
.section p { margin: 0 0 1rem; max-width: 38rem; color: #35312b; }

.article-list { margin: 0; padding-left: 1.2rem; }
.article-list li { margin-bottom: 0.5rem; }
.article-list .note { color: var(--muted); font-size: 0.9rem; }

.entry {
  margin-bottom: 2rem; padding-left: 1rem;
  border-left: 2px solid var(--line);
}
.entry:hover { border-left-color: var(--accent); }
.entry:last-child { margin-bottom: 0; }
.entry-links { font-size: 0.9375rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 1rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.4rem 2rem; padding-block: 1.4rem 2rem;
  font-size: 0.875rem; color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --ink: #ece8e0;
    --muted: #a39c90;
    --line: #2e2a24;
    --pill: #221e18;
    --accent: #e8835a;
  }
  .hero p, .section p { color: #cfC9bd; }
}
