:root {
  --bg: #f6f6f4;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.68);
  --line: rgba(17, 17, 17, 0.18);
  --container: 1320px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", serif;
  line-height: 1.45;
}

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

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

.site-shell {
  width: min(calc(100% - 1.2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  padding: 0.7rem 0 0.5rem;
}

.header-band,
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  align-items: center;
}

.site-brand,
.site-nav,
.footer-row,
.kicker,
.post-row__index,
.post-row__date,
.work-card__meta span,
.work-card__meta p,
.section-bar,
.pagination-item {
  font-size: 0.78rem;
  line-height: 1.3;
}

.site-brand {
  margin-right: 0.2rem;
  font-family: "Amatic SC", cursive;
  font-size: 2.1rem;
  line-height: 1;
}

.language-switcher {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.78rem;
  line-height: 1.3;
}

.site-nav a.is-active,
.site-nav a:hover,
.language-switcher a.is-active,
.language-switcher a:hover,
.footer-row a:hover,
.post-row__title a:hover,
.work-card__link:hover h2,
.entry-content a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.site-main {
  padding-bottom: 2rem;
}

.intro-block {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 0.8rem;
}

.intro-copy {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.75fr;
  gap: 0.45rem;
  align-items: start;
}

.work-card--1 {
  padding-top: 0.1rem;
}

.work-card--2 {
  padding-top: 0;
}

.work-card--3 {
  padding-top: 0.1rem;
}

.work-card__link {
  display: block;
}

.work-card__media {
  background: #deded8;
}

.work-card--1 .work-card__media {
  aspect-ratio: 0.92 / 1.14;
}

.work-card--2 .work-card__media {
  aspect-ratio: 0.86 / 1.12;
}

.work-card--3 .work-card__media {
  aspect-ratio: 0.58 / 1.08;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: end start;
  padding: 0.6rem;
  background: linear-gradient(135deg, #ecece8, #d9d9d3);
}

.work-card__meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding-top: 0.15rem;
}

.work-card__meta h2,
.entry-title,
.listing-title,
.post-row__title {
  margin: 0;
  font-weight: 700;
  font-family: "Amatic SC", cursive;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.work-card__meta h2 {
  font-size: 1.55rem;
  line-height: 1;
}

.work-card__meta p {
  margin: 0;
}

.listing-block {
  margin-top: 1.5rem;
}

.listing-summary {
  margin: 0;
  color: var(--muted);
}

.section-bar,
.post-row,
.footer-row {
  border-top: 1px solid var(--line);
}

.section-bar,
.post-row {
  display: grid;
  gap: 0.8rem;
  align-items: start;
  padding: 0.45rem 0;
}

.section-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.post-row {
  grid-template-columns: 2.5rem 8rem minmax(14rem, 1fr) minmax(12rem, 22rem);
}

.post-row__title {
  font-size: 1.8rem;
  line-height: 0.95;
}

.post-row__excerpt {
  color: var(--muted);
  font-size: 0.94rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
}

.pagination-item.is-disabled {
  opacity: 0.42;
}

.entry-shell {
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-top: 0.2rem;
}

.entry-header {
  position: sticky;
  top: 0.75rem;
  align-self: start;
}

.entry-title {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.88;
  margin-top: 0.3rem;
}

.entry-meta {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 15rem;
}

.entry-content {
  max-width: 46rem;
  font-size: 1.02rem;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > p:first-child::first-letter {
  float: left;
  font-family: "Lora", serif;
  font-size: 5.4rem;
  font-weight: 400;
  line-height: 0.82;
  margin-top: 0.08em;
  margin-right: 0.14em;
  padding: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2.2rem 0 0.8rem;
  font-family: "Amatic SC", cursive;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.95;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content pre {
  max-width: 42rem;
}

.entry-content img {
  width: 100%;
  margin: 1.2rem 0;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--text);
}

.entry-content pre {
  overflow-x: auto;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.03);
}

.listing-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.9;
}

.site-footer {
  padding-bottom: 1rem;
}

@media (max-width: 980px) {
  .works-grid,
  .entry-shell,
  .post-row {
    grid-template-columns: 1fr;
  }

  .entry-header {
    position: static;
  }

  .work-card--1,
  .work-card--2,
  .work-card--3 {
    padding-top: 0;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 0.8rem), var(--container));
  }

  .header-band {
    align-items: flex-start;
  }

  .intro-block {
    flex-direction: column;
  }

  .post-row {
    gap: 0.35rem;
  }

  .language-switcher {
    width: 100%;
    margin-left: 0;
  }
}
