:root {
  --bg: #fffff0;
  --surface: #ffffff;
  --surface-hover: #f7f2e8;
  --border: rgba(42, 40, 36, 0.1);
  --text: #2a2824;
  --text-muted: #6b6459;
  --text-soft: #4a453d;
  --accent: #9a7b4f;
  --accent-hover: #7a6240;
  --accent-soft: rgba(154, 123, 79, 0.12);
  --radius: 16px;
  --shadow: 0 12px 32px rgba(42, 40, 36, 0.08);
  --max-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 240, 0.9), transparent 55%),
    linear-gradient(180deg, #fffff0 0%, #f5eed6 100%);
  color: var(--text);
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 240, 0.88);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero {
  margin-bottom: 32px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 auto;
  color: var(--text-muted);
  max-width: 42ch;
}

.feed-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.feed-switcher__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.feed-switcher__link:hover {
  color: var(--text);
  background: #fff;
  border-color: rgba(154, 123, 79, 0.25);
}

.feed-switcher__link.is-active {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-color: rgba(154, 123, 79, 0.3);
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-status {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
}

.feed-status--error {
  color: #b91c1c;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  box-shadow: 0 16px 36px rgba(42, 40, 36, 0.1);
}

.card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ece6d8;
  overflow: hidden;
}

.card__media img,
.card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 20px 22px 22px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
}

.card__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover {
  color: var(--accent);
}

.card__link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.card__link:hover {
  color: var(--accent-hover);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article__header {
  padding: 24px 24px 0;
  text-align: center;
}

.article__title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.article__header .card__meta {
  justify-content: center;
}

.article__media {
  margin-top: 20px;
  background: #ece6d8;
}

.article__media img,
.article__media video {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article__body {
  padding: 24px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.article__body p {
  margin: 0;
}

.article__footer {
  padding: 0 24px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: #fff;
}

.btn--ghost:hover {
  background: var(--surface-hover);
  color: var(--accent);
  border-color: rgba(154, 123, 79, 0.25);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: rgba(255, 255, 240, 0.7);
}

.footer p {
  margin: 0;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .main {
    padding-top: 24px;
  }

  .card__body {
    padding: 16px 18px 18px;
  }
}
