/* andriibarabash.com
   One quiet text column. IBM Plex, self-hosted (SIL OFL 1.1, see /fonts/LICENSE.txt).
   Red is kept for the one thing on a page that carries the point.
   There is no italic font file: the browser slants the regular face for <em>,
   which keeps newsletter pages under 100 KB (Andrii's call, 2026-12-05). */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../fonts/IBMPlexSansCondensed-SemiBold-Latin1.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

:root {
  --bg: #f2f2f2;
  --ink: #1d1b18;
  --gray: #55524d;
  --blue: #2b5bd7;
  --red: #e63b2e;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --condensed: "IBM Plex Sans Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif-condensed, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1.125rem/1.65 var(--sans);
  font-kerning: normal;
  overflow-wrap: break-word;
}

@media (min-width: 48em) {
  body {
    font-size: 1.1875rem;
  }
}

/* One column, about 65 characters wide. */
.site-header,
main,
.site-footer {
  max-width: calc(65ch + 2.5rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Links: blue and underlined. */
a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1.25rem;
  top: -10rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
}

.skip:focus {
  top: 0.75rem;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 0;
}

.site-name {
  font: 600 1.25rem/1.2 var(--condensed);
  color: var(--ink);
  text-decoration: none;
}

.site-name:hover {
  text-decoration: underline;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header li + li {
  margin-top: 0;
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--condensed);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  margin: 2.5rem 0 1.25rem;
}

h2 {
  font-size: 1.625rem;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.4em;
}

strong,
b {
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}

/* Dates and small labels */
.label {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.01em;
}

h3 .label {
  margin-left: 0.35em;
}

h2 .label {
  margin-left: 0.5em;
  vertical-align: 0.2em;
}

/* Home */
.overprint {
  margin: 2.25rem 0 1.75rem;
  font-size: clamp(3.75rem, 1.25rem + 13vw, 7.5rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  isolation: isolate;
}

.overprint .op {
  display: block;
  width: fit-content;
}

.op-blue {
  color: var(--blue);
  transform: rotate(-2.5deg);
  transform-origin: 0 100%;
}

/* The red line prints over the blue one: where they overlap, the ink goes dark. */
.op-red {
  color: var(--red);
  mix-blend-mode: multiply;
  margin-top: -0.36em;
  transform: translateX(0.06em) rotate(1.5deg);
  transform-origin: 0 0;
}

.positioning {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}

.inline-list li + li {
  margin-top: 0;
}

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

.entries li + li {
  margin-top: 0.9em;
}

.entries .label,
.entry-note {
  display: block;
}

.notice {
  margin-top: 0.75rem;
}

/* Writing */
.article-header {
  margin: 2.5rem 0 2rem;
}

.article-header h1 {
  margin: 0.5rem 0 0.75rem;
}

.article-header p {
  margin: 0;
}

article h2 {
  margin-top: 2.25rem;
}

article h3 {
  margin-top: 1.75rem;
}

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

blockquote {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gray);
}

.sources {
  overflow-wrap: anywhere;
}

.cover {
  display: block;
  margin: 0 0 2rem;
}

.pager {
  margin-top: 3rem;
}

.pager p {
  margin-bottom: 0.5em;
}

/* About */
.timeline {
  padding: 0;
  list-style: none;
}

.timeline > li + li {
  margin-top: 1.75rem;
}

.role {
  margin-bottom: 0.4em;
}

.headshot {
  display: block;
  width: 12rem;
  margin: 0 0 1.5rem;
}

.print-only {
  display: none;
}

/* Contact */
.email-address {
  font-family: var(--mono);
  font-size: 1.125rem;
  user-select: all;
}

/* Footer */
.site-footer {
  margin-top: 4.5rem;
  padding-block: 1.25rem 3rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray);
  font-size: 0.875rem;
  color: var(--gray);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Print: the About page prints as a clean one-page profile. */
@media print {
  @page {
    margin: 1.2cm 1.5cm;
  }

  html {
    background: #fff;
  }

  body {
    font-size: 9pt;
    line-height: 1.33;
    color: #000;
  }

  .print-name {
    margin: 0 0 2pt;
    font: 600 20pt/1.1 var(--condensed);
  }

  /* A small photo in the top right corner, beside the name. */
  .headshot {
    float: right;
    width: 2.4cm;
    margin: 0 0 6pt 12pt;
  }

  .site-header,
  main,
  .site-footer {
    max-width: none;
    padding: 0;
  }

  .skip,
  .site-header,
  .no-print {
    display: none;
  }

  .print-only {
    display: block;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  h2 {
    margin: 8pt 0 3pt;
    font-size: 12pt;
    break-after: avoid;
  }

  h3 {
    font-size: 10.5pt;
  }

  .label {
    font-size: 8.5pt;
    color: #333;
  }

  p,
  ul,
  ol {
    margin-bottom: 4pt;
  }

  .timeline > li + li {
    margin-top: 4.5pt;
  }

  .timeline > li {
    break-inside: avoid;
  }

  .role {
    margin-bottom: 1pt;
  }

  .role br {
    display: none;
  }

  .role .label {
    margin-left: 0.5em;
  }

  .site-footer {
    margin-top: 6pt;
  }

  .site-footer p {
    padding-top: 4pt;
    font-size: 7.5pt;
    color: #333;
  }
}
