/* miftakhov.org: one reading column, Source Serif 4 throughout. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: optional;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: optional;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: optional;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: optional;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* Georgia resized to Source Serif 4's metrics, so either font gives the same layout. */
@font-face {
  font-family: "Source Serif Fallback";
  src: local("Georgia");
  size-adjust: 108.02%; ascent-override: 95.9%; descent-override: 31.01%; line-gap-override: 0%;
}

:root {
  --ink: #1c1917;
  --muted: #625c57;
  --rule: #e7e5e4;
  --link: #1a4f8f;
  --accent: #b42318;
  --column: 40rem;
}

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Serif 4", "Source Serif Fallback", Georgia, serif;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: rgba(26, 79, 143, 0.4); overflow-wrap: anywhere; }
a:hover { text-decoration-color: currentColor; }

.site-header, .content { max-width: var(--column); margin-left: auto; margin-right: auto; }
/* The notice lines up with the text column, inside the page padding. */
.current-news { max-width: calc(var(--column) - 2.5rem); margin-left: auto; margin-right: auto; }
@media (max-width: 40rem) { .current-news { margin-left: 1.25rem; margin-right: 1.25rem; } }

/* Header: name on the left, languages and pages on the right. */
.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.25rem;
  padding: 1.5rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--link); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* The pointer to current news: the first thing on every page. */
.current-news {
  margin-top: 1.5rem; margin-bottom: 2.25rem;
  padding: 1.1rem 1.25rem 1.15rem;
  background: #fdf3f2;
  border-left: 4px solid var(--accent);
}
.current-news__text { margin: 0 0 0.85rem; font-size: 1.1rem; line-height: 1.5; }
.current-news__link {
  display: inline-block; padding: 0.45rem 0.9rem;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border-radius: 3px;
}
.current-news__link:hover { background: #912018; color: #fff; }
.current-news__note { margin: 0.85rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* Content imported from the original pages. */
.content { padding: 0 1.25rem 4rem; }
.content > :first-child { margin-top: 0; }
.content h1 { font-size: 1.6rem; line-height: 1.25; font-weight: 650; margin: 2.5rem 0 1rem; letter-spacing: -0.005em; }
.content h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; margin: 2rem 0 0.75rem; }
.content h3, .content h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; margin: 1.75rem 0 0.6rem; }
.content p { margin: 0 0 1rem; }
.content .lead { font-size: 1.1rem; }
.content ul, .content ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.content li { margin: 0 0 0.75rem; }
.content hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.content img { display: block; max-width: 100%; height: auto; margin: 0 auto 1.5rem; }
.content iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1rem 0; }
.content blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }

/* Dated notes from the original site ("Azat was sentenced…"). */
.content .alert { margin: 0 0 1.75rem; padding: 0.75rem 1rem; border: 1px solid var(--rule); background: #fafaf9; }
.content .alert p:last-child { margin-bottom: 0; }

/* Event announcements from 2021, set apart from the main text. */
.content .jumbotron { margin: 0 0 2rem; padding: 1.25rem 1.25rem 0.5rem; border: 1px solid var(--rule); }
.content .jumbotron h1 { margin-top: 0; }

@media (max-width: 30rem) {
  html { font-size: 17px; }
  .site-header { padding-top: 1rem; }
}
.content img.portrait { width: 15rem; float: right; margin: 0.3rem 0 1rem 1.5rem; }
@media (max-width: 34rem) { .content img.portrait { float: none; margin: 0 auto 1.5rem; } }
