/* Literata, SIL Open Font License. */
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lit-cyr-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lit-lat-400.woff2") format("woff2");
  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: Literata;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/lit-cyr-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/lit-lat-600.woff2") format("woff2");
  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: Literata;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lit-cyr-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lit-lat-700.woff2") format("woff2");
  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: Literata;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lit-cyr-400i.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lit-lat-400i.woff2") format("woff2");
  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;
}

:root {
  color-scheme: light;
  --ink: #111;
  --muted: #737373;
  --line: #ececec;
  --paper: #fff;
  --link: #111;
  --mark: #c81d25;
}

* { box-sizing: border-box; }

::selection {
  background: #e8e8e8;
  color: var(--ink);
}

body {
  margin: 0;
  font-family: Literata, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(46rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  padding: 2.5rem 0 0;
}

.site-header .wrap {
  padding-bottom: 1.15rem;
  border-bottom: 2px solid #111;
}

.site-title {
  color: inherit;
  display: inline-block;
  font-size: 2.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-decoration: none;
}

.tagline {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

main { padding: 2.4rem 0 4.5rem; }

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

.posts li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.posts time,
.article-head time {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.posts a,
.feed-item h2 a {
  color: inherit;
  text-decoration: none;
}

.posts a:hover,
.feed-item h2 a:hover { color: #000; }

.article-head h1,
.feed-item h2 {
  margin: 0.2rem 0 0;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.feed-item.is-lead h2 {
  font-size: 2.25rem;
  letter-spacing: -0.035em;
}

.article-head h1 {
  font-size: 2.45rem;
  letter-spacing: -0.035em;
}

.feed-item {
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.pager {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.pager a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.more {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
}

.more a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.more a::after { content: " →"; }

.content p { margin: 0.9rem 0; }
.content h2,
.content h3 {
  margin: 1.75rem 0 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.content ul,
.content ol { padding-left: 1.15rem; }
.content li { margin: 0.25rem 0; }
.content a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
.content img,
.content iframe,
.content video { max-width: 100%; height: auto; }
.content iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  border: 0;
  background: #f3f3f3;
}
.content blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 1px solid #111;
  color: #3a3a3a;
}

.gallery {
  display: grid;
  gap: 0.5rem;
  margin: 1.35rem 0;
}
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item, .gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  background: #f3f3f3;
}
.gallery a { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  align-items: center;
  background: rgba(8, 8, 8, 0.94);
  padding: 3.25rem 0 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; min-width: 0; }
.lightbox img {
  display: block;
  max-width: min(1080px, 100%);
  max-height: calc(100vh - 5rem);
  margin: 0 auto;
  object-fit: contain;
}
.lightbox button {
  border: 0;
  background: transparent;
  color: #fff;
  font: 400 2.4rem/1 Georgia, serif;
  cursor: pointer;
  padding: 0;
}
.lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  width: 2.75rem;
  height: 2.75rem;
}
.lightbox-prev,
.lightbox-next {
  width: 3.25rem;
  height: 4.5rem;
}
.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next { visibility: hidden; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header { padding-top: 2rem; }
  .site-title { font-size: 2.35rem; }
  .article-head h1, .feed-item h2 { font-size: 1.45rem; }
  .feed-item.is-lead h2 { font-size: 1.85rem; }
  .posts li { grid-template-columns: 1fr; gap: 2px; }
  .gallery-columns-3, .gallery-columns-4 { grid-template-columns: repeat(2, 1fr); }
}
