/* Base */

:root {
  --bg-page: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-muted: #f0f2f5;
  --border-subtle: #d3d7e0;
  --border-strong: #b5bdcf;
  --accent: #1858d8;
  --accent-soft: #e3ebff;
  --accent-dark: #123f97;
  --text-main: #111827;
  --text-soft: #4b5563;
  --text-softer: #6b7280;
  --danger: #b91c1c;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #e5ecff 0, #f5f6f8 48%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 1.75rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.section-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* Topbar */

.topbar {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.75rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
}

.topbar-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.topbar-location,
.topbar-updated {
  opacity: 0.8;
}

/* Header */

.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 0.9rem 0;
}

.logo {
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: #1d4ed8;
}

.logo-sub {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-transform: lowercase;
  color: #111827;
}

/* Search */

.search-bar {
  display: flex;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: #f9fafb;
}

.search-bar input {
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  flex: 1;
  background: transparent;
  outline: none;
}

.search-bar button {
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.search-bar button:hover {
  background: var(--accent-dark);
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-main);
  background: #ffffff;
}

.btn-ghost:hover {
  background: #f9fafb;
}

/* Nav */

.main-nav {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  background: #f9fafb;
}

.nav-inner {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0;
  overflow-x: auto;
}

.nav-link {
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-soft);
  white-space: nowrap;
}

.nav-link:hover {
  background: #e5ecff;
  color: var(--accent-dark);
}

.nav-link.active {
  background: var(--accent);
  color: white;
}

/* Hero layout */

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: flex-start;
}

/* Hero article */

.hero-article {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-image-link {
  position: relative;
  display: block;
}

.hero-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(15, 23, 42, 0.92);
  color: #f9fafb;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-content {
  padding: 1.25rem 1.4rem 1.4rem;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin: 0 0 0.35rem;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.2;
}

.hero-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-softer);
}

.hero-summary {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-readmore {
  margin-top: 0.2rem;
}

/* Sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-block {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}

/* Headlines */

.headline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.headline-item + .headline-item {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.headline-item a {
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
}

.headline-item a:hover {
  color: var(--accent-dark);
}

/* Newsletter */

.newsletter {
  background: #f3f4ff;
  border-color: #cfd8ff;
}

.newsletter-text {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.newsletter-form input {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-softer);
}

/* News cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.news-card-inner {
  display: block;
  padding: 0.9rem 0.9rem 1.1rem;
  text-decoration: none;
  color: var(--text-main);
  height: 100%;
}

.news-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin: 0 0 0.35rem;
}

.news-card-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.35;
}

.news-card-meta {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--text-softer);
}

.news-card-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.news-card-inner:hover .news-card-title {
  color: var(--accent-dark);
}

/* Category chips */

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-chip {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  text-decoration: none;
  color: var(--text-soft);
}

.category-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Footer */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0 0.7rem;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-softer);
  max-width: 420px;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  padding: 0.35rem 0 1rem;
  font-size: 0.8rem;
  color: var(--text-softer);
}

/* Responsive */

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}
