@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --text: #182133;
  --muted: #5a657a;
  --accent: #0e2a57;
  --accent-soft: #dbe6fb;
  --border: #d5deeb;
  --danger: #7c1f2b;
  --max: 1240px;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(14, 42, 87, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Public Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #edf3ff 0%, transparent 36%),
    radial-gradient(circle at 90% 0%, #f8ecf0 0%, transparent 35%),
    var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar {
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.socials {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.social-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(14px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.logo span {
  color: var(--danger);
}

.menu {
  display: none;
  gap: 1rem;
  font-weight: 600;
  color: #30405e;
}

.menu a {
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
}

.menu a:hover,
.menu a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #fff;
}

.hero {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hero-content {
  padding: 1.25rem;
}

.kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
  font-family: 'Fraunces', serif;
}

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 1.2rem 0 2.6rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card {
  margin-bottom: 1rem;
}

.card-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card p,
.sidebar p {
  margin: 0;
  color: var(--muted);
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.list {
  display: grid;
  gap: 0.75rem;
}

.list-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.footer {
  background: #0f203f;
  color: #e4ebf8;
  padding: 2.3rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.footer a {
  color: #e4ebf8;
  opacity: 0.9;
}

.footer small {
  display: block;
  margin-top: 0.8rem;
  opacity: 0.78;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  margin-right: 0.35rem;
}

.tag.sponsored {
  background: #f7e7ea;
  color: var(--danger);
}

.page-hero {
  margin-top: 1.2rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1.2rem 0;
}

.feature-main {
  width: min(100% - 2rem, 900px);
  margin: 1.2rem auto;
}

.feature-article {
  max-width: 860px;
  margin-inline: auto;
}

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9fb9ec, #6f84b9);
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--danger);
  background: #f7f0f2;
  color: #3a2a2d;
  border-radius: 8px;
}

.inline-image {
  margin: 0;
  background: #eef2f8;
  border: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.inline-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
}

.hero .inline-image {
  min-height: 0;
  height: auto;
  border-top: 1px solid var(--border);
}

.card .inline-image {
  aspect-ratio: 16 / 10;
}

.article .inline-image {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.share {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  background: #fff;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.also-read {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.comment-box {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.cta-panel {
  margin: 1.4rem 0;
  padding: 1.1rem;
  border: 1px solid #c9d7ee;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef4ff, #f9f2f4);
}

.cta-panel p {
  margin: 0 0 0.8rem;
}

.risk-note {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(24, 33, 51, 0.12);
  color: #4f5c73;
  font-size: 0.92rem;
}

.lead-link {
  color: var(--accent);
}

.compact-meta {
  font-size: 0.84rem;
  color: var(--muted);
}

.inline-link-note {
  margin: 0.9rem 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid #d3deef;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: linear-gradient(90deg, #eef4ff, #f7f9fc);
  font-weight: 600;
}

.inline-link-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link-note a:hover {
  color: #0a2148;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.62rem 0.74rem;
  font: inherit;
  margin-bottom: 0.65rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.policy-list {
  display: grid;
  gap: 1rem;
}

.policy-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.ui-kit {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.swatch {
  padding: 0.7rem;
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
}

.swatch.accent {
  background: var(--accent);
}

.swatch.danger {
  background: var(--danger);
}

.swatch.soft {
  background: #84a2db;
}

.swatch.text {
  background: #253657;
}

.home-main {
  margin-top: 1.25rem;
}

.home-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.home-hero-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e7eefb;
}

.home-hero-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
}

.home-hero-copy {
  padding: 1.25rem;
}

.home-content {
  margin: 1.25rem 0 2.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.home-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.news-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  margin: 0;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e7eefb;
}

.news-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
}

.news-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.home-sidebar .sidebar-box {
  margin-bottom: 0.9rem;
}

@media (min-width: 760px) {
  .menu {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.18fr 1fr;
  }

  .hero .inline-image {
    border-top: 0;
    border-left: 1px solid var(--border);
    min-height: 100%;
  }

  .hero-content {
    padding: 1.8rem;
  }

  .layout {
    grid-template-columns: 2fr 1fr;
    gap: 1.2rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 2fr 1fr;
  }

  .home-hero {
    grid-template-columns: 1.15fr 1fr;
    min-height: 420px;
  }

  .home-hero-copy {
    padding: 1.7rem;
  }

  .home-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-content {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1320px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
