:root {
  --bg: #eef3ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: rgba(242, 247, 255, 0.95);
  --ink: #13233d;
  --muted: #5f708b;
  --line: rgba(141, 171, 232, 0.28);
  --brand: #3a67ff;
  --brand-2: #ff8e63;
  --brand-3: #0e2147;
  --brand-4: #dfe9ff;
  --success: #2a8a70;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 60px rgba(26, 50, 96, 0.12);
  --shadow-soft: 0 18px 40px rgba(26, 50, 96, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(58, 103, 255, 0.14), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(255, 142, 99, 0.12), transparent 18%),
    linear-gradient(180deg, #f7faff, var(--bg));
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-shell {
  position: relative;
  padding-bottom: 34px;
  overflow: hidden;
}
.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.34;
  pointer-events: none;
}
.site-shell::before {
  top: 120px;
  left: -120px;
  background: rgba(58, 103, 255, 0.12);
}
.site-shell::after {
  top: 540px;
  right: -140px;
  background: rgba(255, 142, 99, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0 10px;
  backdrop-filter: blur(12px);
}
.header-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 227, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.brand { display: inline-flex; gap: 14px; align-items: center; min-width: 0; }
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(58, 103, 255, 0.14);
}
.brand strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.brand span span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav a.active,
.nav a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.edition-strip,
.lead-card,
.card,
.article-shell,
.simple-page,
.story-card,
.archive-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(214, 227, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.edition-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 18px;
  animation: riseIn 0.55s ease both;
}
.edition-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 16px;
  padding: 14px 0 10px;
}
.hero-copy,
.hero-panel,
.metric-card {
  animation: riseIn 0.7s ease both;
}
.hero-copy {
  padding: 28px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.98), rgba(239, 245, 255, 0.98)),
    var(--surface);
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.hero-side {
  display: grid;
  gap: 18px;
}
.eyebrow,
.tag,
.panel-label,
.story-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}
.eyebrow,
.panel-label {
  background: rgba(58, 103, 255, 0.1);
  color: var(--brand);
}
.story-kicker {
  background: rgba(19, 35, 61, 0.06);
  color: var(--brand-3);
  margin-right: 8px;
  margin-bottom: 12px;
}
.tag {
  background: rgba(255, 142, 99, 0.12);
  color: var(--brand-2);
}
.hero h1 {
  margin: 12px 0;
  font-size: clamp(2.1rem, 4.1vw, 3.9rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.hero p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 64ch;
}
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-meta span {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
}
.meta-line span {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
}
.author-line,
.meta-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}
.author-line strong { color: var(--ink); }

.hero-panel {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 28%),
    linear-gradient(180deg, #10254e, #0c1a38);
  color: #eef4ff;
}
.hero-panel strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.35rem;
  line-height: 1.12;
}
.hero-panel p {
  color: rgba(238,244,255,0.82);
  max-width: none;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.metric-card strong {
  display: block;
  font-size: 1.15rem;
  color: var(--brand-3);
}
.metric-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.lead-grid,
.split-section,
.analysis-grid,
.section-blocks,
.publisher-grid {
  display: grid;
  gap: 16px;
}
.lead-grid { grid-template-columns: 1.14fr 0.86fr; }
.split-section { grid-template-columns: 1.08fr 0.92fr; }
.analysis-grid { grid-template-columns: 1.05fr 0.95fr; }
.section-blocks { grid-template-columns: 1fr 1fr; }
.publisher-grid { grid-template-columns: 1.15fr 0.85fr; }

.lead-card,
.story-card,
.section-pill,
.reading-card,
.digest-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.lead-card:hover,
.story-card:hover,
.section-pill:hover,
.reading-card:hover,
.digest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 68px rgba(26, 50, 96, 0.16);
  border-color: rgba(58, 103, 255, 0.22);
}

.lead-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  animation: riseIn 0.72s ease both;
}
.lead-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
}
.feature-card h2,
.side-card h2 {
  margin: 12px 0 12px;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.feature-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.side-card h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.feature-card p,
.side-card p,
.card p,
.story-card p,
.archive-card p {
  color: var(--muted);
  line-height: 1.75;
}

.section { padding-top: 16px; }
.frontpage-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 16px;
}
.frontpage-card {
  position: relative;
  overflow: hidden;
}
.frontpage-card::after {
  content: "";
  position: absolute;
  inset: auto auto -36px -30px;
  width: 132px;
  height: 132px;
  background: radial-gradient(circle, rgba(58, 103, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.frontpage-card h3,
.digest-card h3,
.publisher-card h3,
.reading-card h3 {
  margin: 12px 0 10px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.reading-paths,
.digest-grid {
  display: grid;
  gap: 14px;
}
.reading-paths { grid-template-columns: repeat(3, 1fr); }
.digest-grid { grid-template-columns: repeat(4, 1fr); }
.reading-card,
.digest-card { padding: 18px; }
.digest-card strong {
  color: var(--brand);
  font-size: 0.92rem;
}

.section-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 14px;
}
.section-pill {
  padding: 14px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(214, 227, 255, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.section-pill strong {
  display: block;
  margin-bottom: 10px;
}
.section-pill span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 12px 0 0;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.section-link {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}
.card { padding: 20px; }
.accent-card {
  background:
    radial-gradient(circle at top right, rgba(255, 142, 99, 0.15), transparent 28%),
    linear-gradient(160deg, #fff5f0, #ffffff);
}
.signal-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.story-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.story-card {
  padding: 14px;
  animation: riseIn 0.8s ease both;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.story-card img,
.archive-card img {
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.story-card h3,
.archive-card h2 {
  margin: 12px 0 10px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.story-card .meta-line,
.archive-card .meta-line,
.lead-card .meta-line {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  overflow: hidden;
}
.story-card .meta-line span,
.archive-card .meta-line span,
.lead-card .meta-line span {
  flex: 0 0 auto;
  max-width: 100%;
}

.link-list,
.side-link-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.link-list a,
.side-link-list a {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faff, #ffffff);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.side-link-list a { padding: 14px; }
.link-list a:hover,
.side-link-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 103, 255, 0.24);
  box-shadow: var(--shadow-soft);
}
.link-list span,
.side-link-list span,
.mini-links a { color: var(--muted); }
.mini-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.mini-links a {
  color: var(--brand);
  font-weight: 800;
}
.publisher-note {
  background:
    linear-gradient(160deg, rgba(242, 246, 255, 0.96), rgba(255,255,255,0.98)),
    var(--surface-strong);
}

.site-footer { padding-top: 34px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.article-shell,
.simple-page {
  padding: 20px;
  margin-top: 14px;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--brand);
  font-weight: 800;
}
.article-kicker-row { margin-top: 6px; }
.article-summary {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
  max-width: 74ch;
}
.article-cover {
  margin: 14px 0;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}
.article-body p,
.simple-page p {
  color: var(--muted);
  line-height: 1.9;
}
.article-body h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.article-side {
  display: grid;
  gap: 16px;
}
.article-side .side-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #eff4ff, #ffffff);
  border: 1px solid var(--line);
}
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.insight-card {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7faff, #ffffff);
  border: 1px solid var(--line);
}
.check-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.archive-page { max-width: 1240px; }
.archive-card {
  padding: 18px;
}
.archive-tag {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(58, 103, 255, 0.1);
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lead-grid > *:nth-child(1) { animation-delay: 0.08s; }
.lead-grid > *:nth-child(2) { animation-delay: 0.16s; }
.story-grid > *:nth-child(1),
.reading-paths > *:nth-child(1) { animation-delay: 0.08s; }
.story-grid > *:nth-child(2),
.reading-paths > *:nth-child(2) { animation-delay: 0.16s; }
.story-grid > *:nth-child(3),
.reading-paths > *:nth-child(3) { animation-delay: 0.24s; }

@media (max-width: 1080px) {
  .hero-metrics,
  .section-rail,
  .digest-grid,
  .reading-paths { grid-template-columns: repeat(2, 1fr); }
  .story-grid,
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .hero,
  .lead-grid,
  .split-section,
  .article-layout,
  .story-grid,
  .analysis-grid,
  .archive-grid,
  .section-rail,
  .section-blocks,
  .frontpage-grid,
  .digest-grid,
  .publisher-grid,
  .hero-metrics,
  .reading-paths,
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .header-row,
  .footer-grid,
  .edition-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .author-line,
  .meta-line { flex-direction: column; align-items: flex-start; }
  .hero-copy,
  .hero-panel,
  .card,
  .article-shell,
  .simple-page,
  .story-card,
  .lead-card { padding: 22px; }
  .hero h1 { max-width: none; }
}

/* Legal / contact page layout (reference style) */
.legal-page {
  margin: 18px auto 50px;
  max-width: 920px;
}
.legal-page > h1 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.15;
}
.legal-page .info-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.legal-page .info-card--highlight {
  background: var(--legal-highlight-bg, #fce8ec);
  border-color: #f0d4da;
}
.legal-page .info-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.legal-page .info-card p,
.legal-page .info-card li {
  margin: 0 0 10px;
  line-height: 1.75;
  font-size: 15px;
  color: #333;
}
.legal-page .info-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.legal-page .email-line {
  margin: 0 0 12px;
  font-size: 15px;
}
.legal-page .email-line a {
  color: var(--legal-accent, #cf3e1d);
  font-weight: 700;
}
.legal-page .legal-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  font-size: 14px;
}
.legal-page .legal-form input,
.legal-page .legal-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.legal-page .legal-form textarea {
  min-height: 140px;
  resize: vertical;
}
.legal-page .legal-form button {
  margin-top: 14px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--legal-accent, #cf3e1d);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.legal-page .legal-form button:hover {
  filter: brightness(0.95);
}
.legal-page .form-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
}

.legal-doc h2 {
  margin: 22px 0 10px;
  font-size: 17px;
}
.legal-doc p,
.legal-doc li {
  margin: 0 0 12px;
  line-height: 1.8;
  font-size: 15px;
  color: #333;
}
.legal-doc ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.legal-doc .updated {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
}

:root { --legal-accent: #3a67ff; --legal-highlight-bg: #fff4ee; --legal-highlight-border: #ffe2d2; }
.nav a.nav-active { color: #3a67ff; }
