:root {
  --bg: #f2f3f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --ink: #1b2233;
  --muted: #5e6578;
  --brand: #0f4cdb;
  --brand-strong: #0a37a3;
  --accent: #1da6a0;
  --line: #d8deec;
  --shadow: 0 18px 46px rgba(16, 31, 70, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #dce8ff 0%, transparent 32%),
    radial-gradient(circle at 95% 0%, #d7f7f4 0%, transparent 36%),
    radial-gradient(circle at 50% 100%, #e8ecff 0%, transparent 30%),
    var(--bg);
  min-height: 100vh;
}

.app-shell {
  width: min(1120px, 92vw);
  margin: 2rem auto 3rem;
}

.hero {
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, #ffffff 0%, #f8fbff 55%, #f0fffc 100%);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  animation: rise 420ms ease;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.hero-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 65ch;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 190px auto;
  gap: 0.8rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--surface) 85%, #f4f7ff 15%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.65rem;
  box-shadow: 0 8px 24px rgba(28, 44, 81, 0.07);
}

input,
select,
button {
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  padding: 0.78rem 0.9rem;
  font: inherit;
}

input,
select {
  background: var(--surface-soft);
  color: var(--ink);
}

button {
  background: linear-gradient(135deg, var(--brand), #2366ff);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(15, 76, 219, 0.3);
  background: linear-gradient(135deg, var(--brand-strong), #2152cf);
}

.status {
  min-height: 1.25rem;
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.05rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #b4c3ea;
  box-shadow: 0 18px 38px rgba(13, 27, 63, 0.16);
}

.card-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: linear-gradient(140deg, #deebff, #dffaf5);
}

.card-content {
  padding: 0.9rem 1rem 1rem;
  display: grid;
  gap: 0.6rem;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.32;
}

.card-description {
  margin: 0;
  color: #38445f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-link {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.card-link:hover {
  color: var(--brand-strong);
  border-color: var(--brand-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .hero {
    padding: 1rem;
  }

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

  .app-shell {
    margin-top: 1.2rem;
  }
}

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