@font-face {
  font-family: "Manrope";
  src: url("https://irsaliev.com/assets/Manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("https://irsaliev.com/assets/SourceSerif4.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eae7df;
  --ink: #20201e;
  --muted: #5f5e58;
  --line: #bcb9b1;
  --red: #bc2b1a;
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --gutter: 48px;
  --touch: 44px;
  --label-weight: 650;
  --entry-thumb: 72px;
  --article-portrait: 144px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 21px/1.75 var(--serif); }
a { color: inherit; text-underline-offset: .18em; }
a:hover, button:not(:disabled):hover, summary:hover { color: var(--red); }
button, summary { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-weight: 650; line-height: 1.15; }
h1 { font-size: 46px; letter-spacing: -1.7px; }
h2 { font-size: 30px; letter-spacing: -.9px; }
h3 { font-size: 28px; letter-spacing: -.8px; }
h4 { font-size: 16px; }
p { margin-block: 0 1em; }
.shell { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }
.hero-place, .hero-clock span + span, .status, .entry-label, .footer, .side-panel time {
  color: var(--muted);
  font: var(--label-weight) 11px/1.55 var(--sans);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.masthead { border-bottom: 1px solid var(--ink); }
.masthead-inner { min-height: 66px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font: 650 14px/1.4 var(--sans); }
.masthead-inner a { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: none; }
.brand { gap: 12px; }
.brand b, .hero h1 span { color: var(--red); }
.brand b { font-size: 19px; letter-spacing: -1px; }
.masthead-nav { margin-inline-start: auto; }
.filters button[aria-pressed="true"] { text-decoration: underline 2px; text-underline-offset: .35em; }
.filters button[aria-pressed="false"] { color: var(--muted); }
.filters button:hover { color: var(--red); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-block: 54px 38px; }
.hero-place { margin: 0 0 14px; }
.hero-description { max-width: 37em; margin: 12px 0 0; font-size: 25px; line-height: 1.45; }
.hero-clock { display: grid; justify-items: end; font: 650 25px/1.3 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }

.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 58px); }
.feed, .side-panel { border-block-start: 2px solid var(--ink); padding-block-start: 16px; }
.section-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; }
.refresh, .filters button, .article-close { min-height: var(--touch); font: 650 14px/1.3 var(--sans); text-align: start; }
.refresh:disabled { color: var(--muted); cursor: wait; }
.filters { display: flex; flex-wrap: wrap; gap: 0 20px; }
.status { margin: 2px 0 14px; }
.entries, .side-panel :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.entry { border-top: 1px solid var(--line); scroll-margin-block-start: 20px; }
.entry:target, .entry--open { border-top-color: var(--ink); }
.entry-preview { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 12px; gap: 12px; align-items: start; padding: 16px 4px; }
.entry-preview--photo { grid-template-columns: var(--entry-thumb) minmax(0, 1fr) 12px; gap: 16px; }
.entry-thumbnail { width: var(--entry-thumb); height: var(--entry-thumb); border: 1px solid var(--line); }
.entry-thumbnail, .article-portrait img { display: block; object-fit: cover; object-position: center 23%; }
.entry-label { margin: 0 0 4px; letter-spacing: .065em; }
.entry h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.025em; overflow-wrap: anywhere; }
.entry-trigger { font: inherit; text-align: start; }
.entry-trigger::after { position: absolute; inset: 0; content: ""; }
.entry-preview:hover .entry-trigger, .entry--open .entry-trigger { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.entry-trigger:focus-visible { outline: none; }
.entry-trigger:focus-visible::after { outline: 2px solid var(--red); outline-offset: -2px; }
.entry-chevron { width: 8px; height: 8px; margin: 9px 3px 0 0; border-inline-end: 1.5px solid var(--ink); border-block-end: 1.5px solid var(--ink); transform: rotate(45deg); }
.entry-chevron--up { transform: rotate(225deg); margin-block-start: 14px; }
.entry-speaker { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 6px 0 0; font: 650 12px/1.45 var(--sans); }
.entry-speaker span { color: var(--muted); }
.entry-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; color: var(--muted); font: 17px/1.42 var(--serif); }
.entry--open .entry-preview { padding-bottom: 12px; }
.entry--open h3 { font-size: clamp(24px, 3vw, 32px); }
.source { margin: 6px 0 0; color: var(--muted); font: 650 13px/1.5 var(--sans); overflow-wrap: anywhere; }
.source a, .research-sources a { display: inline-flex; align-items: center; min-height: var(--touch); }
.empty { padding-block: 20px; border-top: 1px solid var(--line); }

.entry-article { display: grid; gap: 24px; padding: 6px 4px 20px; overflow-wrap: anywhere; font: 19px/1.65 var(--serif); }
.entry-dek { margin: 0; max-width: 48ch; font-size: clamp(21px, 2.3vw, 25px); line-height: 1.42; }
.article-section { border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.article-section h4, .article-figure h4 { font-size: 17px; }
.article-section p { margin: 8px 0 0; }
.article-takeaway { border-inline-start: 2px solid var(--red); border-block-start: 0; padding: 0 0 0 12px; }
.article-profile--photo { display: grid; grid-template-columns: var(--article-portrait) minmax(0,1fr); gap: 16px; align-items: start; }
.article-portrait { margin: 0; }
.article-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.article-portrait .source { font-size: 11px; }
.article-profile .article-role { margin-top: 4px; font: 650 13px/1.45 var(--sans); color: var(--muted); }
.research-sources { margin: 4px 0 0; list-style: none; padding: 0; font: 650 13px/1.5 var(--sans); }
.article-close { justify-self: start; padding-inline: 8px; text-decoration: underline; text-underline-offset: .18em; }

.sidebar { display: grid; align-content: start; gap: 32px; }
.side-panel ol > li, .side-panel.sources li { border-block-start: 1px solid var(--line); }
.side-panel ol > li { padding-block: 10px; }
.side-panel h2 + :is(ul, ol) { margin-block-start: 14px; }
.side-panel time { display: block; }
.side-panel a { display: inline-flex; align-items: center; min-height: var(--touch); font-family: var(--sans); font-size: 14px; font-weight: 650; line-height: 1.4; }
.side-panel > p { margin: 10px 0 0; }

.article-figure { margin: 0; border-block-start: 1px solid var(--line); padding-block-start: 16px; }
.article-figure figcaption p { color: var(--muted); font: 500 13px/1.45 var(--sans); margin: 6px 0 14px; }
.chart, .article-milestones { margin: 0; padding: 0; list-style: none; }
.chart { display: grid; gap: 12px; }
.chart-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 600 13px/1.4 var(--sans); }
.chart-label b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-track { border-bottom: 1px solid var(--line); height: 9px; margin-top: 4px; }
.chart-track span { display: block; height: 100%; background: var(--muted); }
.chart li:last-child .chart-track span { background: var(--ink); }
.article-milestones li { display: grid; grid-template-columns: 6ch minmax(0, 1fr); gap: 12px; padding-block: 8px; border-top: 1px solid var(--line); font: 600 14px/1.4 var(--sans); }
.article-milestones b { color: var(--red); font-variant-numeric: tabular-nums; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-block-start: 1px solid var(--ink); margin-block-start: 32px; padding-block: 20px; }

@media (max-width: 900px) {
  :root { --gutter: 30px; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; --entry-thumb: 60px; --article-portrait: 100px; }
  body { font-size: 20px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  h2 { font-size: 27px; }
  h3 { font-size: 25px; }
  .masthead-inner { min-height: 56px; gap: 0 14px; }
  .brand { gap: 7px; }
  .hero { grid-template-columns: 1fr; padding-block: 34px 26px; gap: 12px; }
  .hero-description { font-size: 23px; }
  .hero-clock { justify-items: start; font-size: 19px; }
  .columns { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 420px) {
  .masthead-inner { gap: 0 10px; font-size: 12px; }
  .brand b { font-size: 16px; }
  .filters { column-gap: 13px; }
  .entry-preview, .entry-preview--photo { gap: 10px; padding-inline: 0; }
  .entry-excerpt { font-size: 16px; }
  .entry-article { padding-inline: 0; }
}
