:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --text: #18201d;
  --muted: #64706b;
  --line: #dbe1dc;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b554f;
  --gold: #a66a00;
  --rose: #b7354b;
  --shadow: 0 16px 42px rgba(20, 30, 26, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.status {
  min-width: 88px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
  text-align: center;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.overview div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.overview span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.overview strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.toolbar h2 {
  margin: 0;
  font-size: 22px;
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: white;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.feed {
  display: grid;
  gap: 14px;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article > div {
  min-width: 0;
}

.article h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article h3 a {
  text-decoration: none;
}

.article h3 a:hover {
  text-decoration: underline;
}

.summary {
  margin-bottom: 10px;
  color: #2d3834;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.why {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent-strong);
  background: #dff3ef;
  font-size: 12px;
  font-weight: 700;
}

.meta {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 112px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.score {
  color: var(--gold);
  font-weight: 800;
}

.source {
  color: var(--rose);
  font-weight: 700;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.empty h2 {
  margin-bottom: 8px;
}

.empty p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 840px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article {
    grid-template-columns: 1fr;
  }

  .meta {
    grid-template-columns: repeat(3, max-content);
    text-align: left;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  .overview {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
