:root {
  --bg: #f3efe7;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-border: rgba(77, 60, 43, 0.14);
  --text: #23180f;
  --muted: #675848;
  --accent: #a33f24;
  --accent-dark: #7d2f19;
  --shadow: 0 18px 40px rgba(48, 31, 20, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210, 131, 91, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(163, 63, 36, 0.18), transparent 22%),
    linear-gradient(180deg, #fcf8f3 0%, var(--bg) 100%);
}

.layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  max-width: 12ch;
}

.intro {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.controls {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  padding: 22px;
}

.control-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

select,
button {
  border: 1px solid rgba(77, 60, 43, 0.18);
  border-radius: 14px;
  font: inherit;
}

select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
}

button {
  min-width: 200px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff8f2;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

button:disabled,
select:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status-panel {
  margin-top: 18px;
  padding: 0 22px;
}

#status {
  margin: 18px 0;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(77, 60, 43, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-image {
  width: calc(100% + 36px);
  margin: -18px -18px 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(163, 63, 36, 0.18), rgba(210, 131, 91, 0.08));
}

.news-source {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.news-date,
.news-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.news-link {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 720px) {
  .layout {
    width: min(100% - 20px, 1120px);
    padding-top: 28px;
  }

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

  button {
    width: 100%;
    min-width: 0;
  }
}
