:root {
  --home-accent: #dc052d;
  --home-text: #1a1a1a;
  --home-text-secondary: #5f5e5a;
  --home-text-tertiary: #888780;
  --home-border: #d8d6cd;
  --home-photo-bg: #f1efe8;
  --home-bg: #ffffff;
  --home-max-width: 720px;
}

:root[data-theme="dark"] {
  --home-text: #ece9e0;
  --home-text-secondary: #b0ada3;
  --home-text-tertiary: #93908a;
  --home-border: #3a3832;
  --home-photo-bg: #232219;
  --home-bg: #161511;
}

body {
  background: var(--home-bg);
}

.home {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--home-text);
  background: var(--home-bg);
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.home__title {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.home__intro {
  font-size: 0.9375rem;
  color: var(--home-text-secondary);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.home__blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.home-block {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  border: 1px solid var(--home-border);
  border-left: 3px solid var(--home-accent);
  border-radius: 12px;
  padding: 0.75rem 0.625rem 0.75rem 0.875rem;
}

.home-block__photo {
  width: 120px;
  flex-shrink: 0;
  align-self: stretch;
  order: 2;
  border-radius: 8px;
  background: var(--home-photo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-block__photo svg {
  width: 28px;
  height: 28px;
  stroke: var(--home-text-tertiary);
}

.home-block__title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin: 0 0 0.5rem;
  text-decoration: none;
}

.home-block__text {
  font-size: 0.8125rem;
  color: var(--home-text-secondary);
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.home-block__link {
  font-size: 0.75rem;
  color: var(--home-accent);
  font-weight: 500;
  text-decoration: none;
}

.home-block__link:hover {
  text-decoration: underline;
}

.home-block--card .home-block__body {
  order: 1;
  flex: 1;
}

.home-block--card .home-block__photo {
  order: 2;
  width: 282px;
  height: auto;
  flex-shrink: 0;
}

.home-block--card .home-block__photo img {
  height: auto;
  object-fit: initial;
}

.home-block__date {
  font-size: 0.75rem;
  color: var(--home-text-tertiary);
  margin: 0 0 4px;
}

.home-block__match {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.home-block__headline {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0.4rem 0 6px;
}

.home-block__excerpt {
  font-size: 0.875rem;
  color: var(--home-text-secondary);
  line-height: 1.55;
  margin: 0 0 10px;
  white-space: pre-line;
}

.home-block__tags {
  display: flex;
  gap: 6px;
  margin: 0 0 6px;
}

.home-block__tag {
  font-size: 0.6875rem;
  color: var(--home-text-tertiary);
}

.home__footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--home-text-tertiary);
}

.home__footer a,
.home__footer a:link,
.home__footer a:visited {
  color: var(--home-text-tertiary);
  text-decoration: none;
}

.home__footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .home-block--card {
    flex-direction: column;
  }

  .home-block--card .home-block__photo {
    width: 100%;
  }
}
