@font-face {
  font-family: 'deriviaregular';
  src: url('/assets/fonts/derivia-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #f7f3eb;
  --bg-alt: #ffffff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text: #1f2937;
  --muted: rgba(31, 41, 55, 0.72);
  --gold: #b08a43;
  --gold-2: #8f6a25;
  --line: rgba(31, 41, 55, 0.12);
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
}

html {
  scroll-behavior: smooth;
}

img,
video,
iframe {
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(176, 138, 67, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 41, 55, 0.04), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
}

a {
  color: inherit;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid rgba(176, 138, 67, 0.55);
  outline-offset: 3px;
}

body .text-muted,
body .brand-subtitle,
body .panel-note,
body .page-description,
body .story-excerpt,
body .story-meta,
body .editor-picks-subtitle,
body .topics-note,
body .topics-note,
body .article-note,
body .article-meta,
body .footer-copy,
body .search-meta,
body .empty-state,
body .editor-pick-meta {
  color: var(--muted) !important;
}

body .page-title,
body .panel-title,
body .topics-title,
body .cover-title,
body .story-title,
body .article-title,
body .editor-picks-title,
body .editor-pick-title,
body .story-card h3,
body .empty-state h2,
body .brand-title {
  font-family: 'deriviaregular', 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

body .page-title,
body .article-title,
body .cover-title {
  line-height: 0.98;
}

body .page-intro,
body .stories-panel,
body .search-panel,
body .topics-panel,
body .story-card,
body .empty-state,
body .article-panel,
body .cover-story,
body .editor-picks,
body .fallback-nav,
body .fallback-footer {
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow) !important;
}

body .page-intro,
body .stories-panel,
body .search-panel,
body .topics-panel,
body .article-panel,
body .story-card,
body .empty-state {
  border-radius: 24px;
}

body .blog-shell {
  padding-top: 20px;
}

body .site-footer {
  background: #ffffff;
  backdrop-filter: blur(16px);
  border-color: var(--line);
}

body .fallback-nav,
body .fallback-footer {
  border-radius: 24px;
  gap: 18px;
}

body .brand-mark {
  width: 104px;
  height: 36px;
  border-radius: 0;
  background: url('/assets/home/logo-1.png') center/contain no-repeat;
  box-shadow: none;
}

body .brand-title {
  font-size: 0.95rem;
  text-transform: uppercase;
}

body .brand-subtitle {
  font-size: 0.88rem;
}

body .eyebrow,
body .section-label,
body .story-link,
body .cover-badge,
body .topic-icon {
  background: rgba(176, 138, 67, 0.12) !important;
  color: var(--gold) !important;
}

body .eyebrow,
body .section-label {
  border-radius: 999px;
  letter-spacing: 0.18em;
}

body .story-link {
  border: 1px solid rgba(176, 138, 67, 0.18);
  font-weight: 700;
}

body .story-link:hover,
body .story-link:focus-visible,
body .topic-tile:hover,
body .topic-tile:focus-visible {
  transform: translateY(-1px);
}

body .button,
body .btn,
body .topic-tile,
body .search-input,
body .tag-chip,
body .stat-chip {
  border-color: var(--line) !important;
}

body .btn-primary,
body .btn-gold {
  background: linear-gradient(135deg, var(--gold), #d8be7d);
  color: #111 !important;
  border: 0;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(176, 138, 67, 0.18);
}

body .btn-primary:hover,
body .btn-gold:hover {
  color: #111 !important;
  transform: translateY(-1px);
}

body .search-input {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
}

body .search-input:focus {
  border-color: rgba(176, 138, 67, 0.36) !important;
  box-shadow: 0 0 0 5px rgba(176, 138, 67, 0.08);
}

body .stat-chip,
body .tag-chip {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

body .topic-tile {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92) !important;
}

body .topic-tile.is-active {
  border-color: rgba(176, 138, 67, 0.32) !important;
  box-shadow: 0 12px 28px rgba(176, 138, 67, 0.12) !important;
}

body .topic-icon {
  border-radius: 12px;
}

body .cover-story,
body .editor-picks,
body .article-image,
body .story-thumb {
  overflow: hidden;
}

body .cover-media,
body .story-thumb,
body .article-image,
body .editor-pick-thumb {
  background: #ebe4d8;
}

body .cover-overlay {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.08) 0%, rgba(15, 15, 15, 0.62) 100%),
    linear-gradient(90deg, rgba(15, 15, 15, 0.28) 0%, transparent 42%);
}

body .cover-badge::before {
  content: "✓";
}

body .cover-badge {
  box-shadow: 0 12px 24px rgba(176, 138, 67, 0.18);
}

body .editor-picks-header {
  border-bottom-color: var(--line);
}

body .editor-pick:hover {
  background: rgba(176, 138, 67, 0.04);
}

body .article-body {
  color: #23211f;
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
}

body .article-body h2,
body .article-body h3,
body .article-body h4 {
  color: var(--text);
  font-family: 'deriviaregular', 'Playfair Display', serif;
  font-weight: 400;
}

body .article-body blockquote {
  border-left-color: var(--gold);
  background: rgba(176, 138, 67, 0.08);
}

body .fallback-footer strong {
  color: var(--text);
}

body .footer-managed-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: #d0ad87;
  padding: 0.4rem 0.7rem;
  border-radius: 0.75rem;
}

body .footer-managed-logo {
  display: block;
  height: 24px;
  width: auto;
}

@media (max-width: 768px) {
  body .fallback-nav,
  body .fallback-footer,
  body .page-intro,
  body .stories-panel,
  body .search-panel,
  body .topics-panel,
  body .article-panel,
  body .story-card,
  body .empty-state {
    border-radius: 20px;
  }

  body .brand-mark {
    width: 96px;
    height: 32px;
  }

  body .blog-shell {
    width: min(100% - 12px, 1240px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  body .site-header,
  body .site-footer {
    width: min(100% - 12px, 1240px);
  }

  body .stories-grid,
  body .article-shell,
  body .story-card,
  body .search-row {
    grid-template-columns: 1fr;
  }

  body .cover-story {
    min-height: 360px;
  }

  body .cover-content {
    padding: 16px;
  }

  body .cover-title {
    max-width: 12ch;
    font-size: clamp(1.7rem, 8vw, 2.8rem);
  }

  body .story-title,
  body .editor-pick-title {
    font-size: 1.15rem;
  }

  body .search-row {
    gap: 8px;
  }

  body .search-meta {
    white-space: normal;
  }

  body .topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  body .topic-tile {
    padding: 12px;
  }

  body .article-title {
    font-size: clamp(1.95rem, 8vw, 3rem);
  }

  body .article-body {
    font-size: 1rem;
    line-height: 1.75;
  }

  body .story-thumb {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 575px) {
  body .fallback-nav,
  body .fallback-footer {
    padding: 14px;
    gap: 12px;
  }

  body .page-title,
  body .panel-title,
  body .topics-title {
    font-size: clamp(1.7rem, 10vw, 2.5rem);
  }

  body .page-description,
  body .panel-note,
  body .story-excerpt,
  body .article-subtitle,
  body .article-note {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  body .story-link {
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  body .stat-chip,
  body .tag-chip {
    padding: 7px 10px;
  }

  body .cover-story {
    min-height: 300px;
  }

  body .editor-pick {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }

  body .editor-pick-thumb {
    width: 72px;
    height: 72px;
  }

  body .article-panel,
  body .story-card,
  body .empty-state {
    padding: 14px;
  }

  body .article-body img {
    border-radius: 16px;
  }
}
