:root {
  --bg: #e8ebe6;
  --bg-deep: #dfe3dd;
  --ink: #12140f;
  --muted: #5c6358;
  --line: #c5ccc0;
  --signal: #c45c1a;
  --signal-soft: rgba(196, 92, 26, 0.12);
  --paper: #f4f6f1;
  --shadow: 0 18px 40px rgba(18, 20, 15, 0.08);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 92, 26, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(40, 70, 50, 0.08), transparent 50%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(18, 20, 15, 0.015) 11px,
      rgba(18, 20, 15, 0.015) 12px
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

a {
  color: var(--signal);
  text-underline-offset: 3px;
}

.page {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  padding: 8px 0 40px;
  animation: rise 0.7s ease-out both;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 14vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 18px;
  background: var(--signal);
  transform-origin: left;
  animation: bar-in 0.55s 0.25s ease-out both;
}

h1 {
  margin: 22px 0 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dek {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feed {
  animation: rise 0.7s 0.12s ease-out both;
}

.feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.feed-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feed-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.article-list {
  display: flex;
  flex-direction: column;
}

.article-card {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 18px 22px;
  padding: 22px 10px 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  animation: rise 0.55s ease-out both;
}

.article-card:nth-child(1) { animation-delay: 0.18s; }
.article-card:nth-child(2) { animation-delay: 0.26s; }
.article-card:nth-child(3) { animation-delay: 0.34s; }
.article-card:nth-child(4) { animation-delay: 0.42s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }

.article-card:hover {
  background: rgba(244, 246, 241, 0.65);
  transform: translateX(4px);
}

.article-card:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.article-card__date {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--signal);
  line-height: 1.15;
}

.article-card__date span {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.article-card__body {
  min-width: 0;
}

.article-card__meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.article-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.article-card h3 span {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}

.article-card:hover h3 span {
  background-size: 100% 2px;
}

.article-card__summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tags span {
  padding: 3px 8px;
  color: var(--ink);
  background: var(--signal-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--signal);
  text-decoration: none;
}

.read-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.article-card:hover .read-link::after {
  transform: translateX(3px);
}

.empty {
  padding: 28px 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.empty h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.25rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--ink);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  animation: rise 0.6s 0.2s ease-out both;
}

.footer a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.footer a:hover {
  color: var(--signal);
}

.footer-note {
  color: var(--muted);
  font-size: 0.82rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bar-in {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .page {
    width: calc(100% - 28px);
    padding-top: 32px;
  }

  .article-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-right: 0;
  }

  .article-card__date {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .article-card__date span {
    display: inline;
    margin: 0;
  }

  .hero {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
