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

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --text: #112136;
  --muted: #55657e;
  --primary: #0f5fff;
  --primary-deep: #0a41ad;
  --accent: #ff7a18;
  --line: #d9e2f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(17, 33, 54, 0.08);
  --max-width: 1140px;
}

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

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

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% -10%, rgba(15, 95, 255, 0.12), transparent 35%),
    radial-gradient(circle at 10% 15%, rgba(255, 122, 24, 0.12), transparent 30%),
    var(--bg);
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--primary-deep);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-family: "Fraunces", Georgia, serif;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--primary-deep);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 0.75rem 1.15rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.btn:hover {
  color: #fff;
  background: var(--primary-deep);
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(244, 246, 248, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 226, 240, 0.75);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.brand-logo {
  width: 3.6rem;
  height: 3.6rem;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-size: 1rem;
}

.site-nav {
  display: none;
  gap: 1rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  max-width: 14ch;
}

.hero-copy {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-stats {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-stats > div {
  min-width: 105px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.section {
  padding: 2.2rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0), rgba(248, 251, 255, 1));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.section-head a {
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 0.95rem;
}

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

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.article-card h3 {
  margin-top: 0.8rem;
  font-size: 1.35rem;
}

.article-card p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.card-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 95, 255, 0.12);
  color: var(--primary-deep);
  padding: 0.2rem 0.65rem;
  font-weight: 700;
}

.tag-list {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-list a {
  border-radius: 999px;
  background: #edf3ff;
  border: 1px solid #d8e5ff;
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  color: var(--primary-deep);
  font-weight: 600;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: var(--surface);
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.chip.muted {
  background: #f2f6ff;
}

.chip.selected {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: #e8f0ff;
}

.split-panel {
  display: grid;
  gap: 1.3rem;
}

.newsletter-panel {
  background: linear-gradient(150deg, #0f2550, #0f5fff);
  color: #f6f8ff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.newsletter-panel h2 {
  font-size: 1.4rem;
}

.newsletter-panel p {
  margin-top: 0.55rem;
  color: #d8e5ff;
}

.newsletter-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.newsletter-form input,
.sticky-cta input {
  flex: 1;
  min-width: 160px;
  border-radius: 999px;
  border: 1px solid #aec5ff;
  padding: 0.72rem 0.9rem;
  font-size: 0.95rem;
}

.newsletter-form button,
.sticky-cta button[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.newsletter-form button:hover,
.sticky-cta button[type="submit"]:hover {
  background: #e56508;
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

.flash {
  margin: 0.9rem 0 0;
  border: 1px solid;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.flash.success {
  border-color: #9ed9ba;
  background: #e8f8ef;
}

.flash.error {
  border-color: #ffb3b3;
  background: #ffefef;
}

.flash.info {
  border-color: #b5c8ff;
  background: #edf2ff;
}

.listing-page {
  padding-top: 2.1rem;
}

.listing-head p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.listing-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.listing-layout {
  margin-top: 1.3rem;
  display: grid;
  gap: 1.25rem;
}

.listing-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.sidebar-block {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1rem;
}

.sidebar-block h2 {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.article-page {
  padding-top: 1.5rem;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-top: 0.8rem;
  max-width: 22ch;
}

.article-meta {
  margin-top: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.share-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.share-row a {
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 0.9rem;
}

.inline-signup {
  margin: 1.4rem 0;
}

.article-content {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.article-content h2,
.article-content h3 {
  margin-top: 1.3rem;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content figure {
  margin-top: 0.95rem;
  color: #1e314b;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2rem;
}

.article-hero-media {
  margin: 1.2rem 0 1.35rem;
}

.article-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(110, 164, 255, 0.22);
  box-shadow: 0 20px 50px rgba(13, 26, 49, 0.2);
  background: linear-gradient(135deg, #13284c, #0b1730);
}

.article-hero-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2.5rem;
  background: #101f34;
  color: #d3def0;
  padding: 2.3rem 0 1.1rem;
}

.footer-grid {
  display: grid;
  gap: 1.15rem;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.footer-copy {
  max-width: 32ch;
}

.footer-title {
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.site-footer a {
  display: block;
  margin-bottom: 0.35rem;
  color: #d3def0;
}

.footer-bottom {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(211, 222, 240, 0.18);
  padding-top: 1rem;
  color: #8fa4c6;
  font-size: 0.88rem;
}

.not-found {
  padding: 4rem 0;
}

.sticky-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.8rem;
  z-index: 20;
  border-radius: 16px;
  background: #0f1f38;
  color: #f3f8ff;
  border: 1px solid #223a63;
  box-shadow: 0 16px 36px rgba(4, 11, 23, 0.3);
  padding: 0.8rem 0.8rem 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sticky-cta p {
  margin-right: 1.7rem;
}

.sticky-cta form {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
}

.sticky-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: #223a63;
  color: #d3def0;
  cursor: pointer;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 700px) {
  .site-nav {
    display: flex;
  }

  .hero {
    padding-top: 3.6rem;
  }

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

  .split-panel {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

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

  .listing-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .article-content {
    padding: 2rem;
  }

  .sticky-cta {
    left: auto;
    right: 1.25rem;
    width: 390px;
  }
}
