:root {
  --bg-a: #f4f8ff;
  --bg-b: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe5f2;
  --brand: #1d4ed8;
  --brand-2: #0891b2;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(29, 78, 216, 0.12), transparent 62%),
    radial-gradient(880px 320px at 90% 0%, rgba(8, 145, 178, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 52%, #eff6ff 100%);
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.topbar-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  height: 36px;
  width: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav a:not(.margynn-btn-primary):not(.margynn-btn-ghost) {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.topnav a:not(.margynn-btn-primary):not(.margynn-btn-ghost):hover {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  filter: saturate(1.1);
}

.btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}

.hero {
  padding: 68px 0 40px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 16px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 12px 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.card h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.card h2 a {
  text-decoration: none;
}

.card h2 a:hover {
  text-decoration: underline;
}

.label {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eff6ff;
  color: #1e3a8a;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.meta {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  padding: 18px 0 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #334155;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.post {
  padding: 34px 0 62px;
}

.post article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 44px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.post .eyebrow {
  margin: 0;
  font-weight: 700;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.post h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.post .summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.post .hero-media {
  margin-top: 20px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(320px 140px at 15% 10%, rgba(29, 78, 216, 0.2), transparent 65%),
    radial-gradient(340px 140px at 85% 80%, rgba(8, 145, 178, 0.2), transparent 65%),
    #f8fbff;
  padding: 18px;
  color: #334155;
  font-size: 14px;
}

.post h2 {
  margin: 30px 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.post p,
.post li {
  color: #334155;
  line-height: 1.75;
  font-size: 17px;
}

.post ul {
  padding-left: 22px;
}

.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

.post th,
.post td {
  border: 1px solid #dbe5f2;
  padding: 10px;
  text-align: left;
}

.post th {
  background: #f8fafc;
}

.post .note {
  margin-top: 10px;
  padding: 12px;
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  border-radius: 8px;
  color: #1e3a8a;
  font-size: 14px;
}

.post .post-cta {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post .post-cta .btn {
  padding: 12px 16px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
