:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #596275;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --line: #d8deea;
  --purple: #6246d9;
  --purple-dark: #4d33bd;
  --teal: #147d73;
  --coral: #b94f43;
  --gold: #9a6a00;
  --focus: #0b63ce;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: var(--purple-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.site-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links .primary-link {
  padding: 9px 15px;
  color: #ffffff;
  background: var(--purple);
  border-radius: 6px;
}

.nav-links .primary-link:hover {
  background: var(--purple-dark);
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #25304a;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 32, 0.64);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 72px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d8fff7;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: #f4f7ff;
  font-size: 21px;
  line-height: 1.55;
}

.article-meta {
  margin: 18px 0 0;
  color: #dbe2ef;
  font-size: 15px;
}

.page-intro {
  padding: 64px 0 38px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-intro-inner {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
}

.page-intro h1 {
  max-width: 820px;
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0;
}

.page-intro p {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.article-layout {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(220px, 280px);
  gap: 68px;
  align-items: start;
}

.article-body h2 {
  margin: 52px 0 14px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.article-body h3 {
  margin: 34px 0 10px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
}

.article-body li + li {
  margin-top: 10px;
}

.article-body blockquote {
  margin: 34px 0;
  padding: 22px 26px;
  border-left: 5px solid var(--teal);
  background: #eef9f7;
  font-weight: 700;
}

.article-body blockquote p {
  margin: 0;
}

.quick-script {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid #cbd7ea;
  border-radius: 8px;
  background: #f7f9fd;
}

.quick-script strong {
  color: var(--purple-dark);
}

.article-aside {
  position: sticky;
  top: 22px;
  padding-left: 24px;
  border-left: 3px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.article-aside h2 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0;
}

.article-aside ol {
  margin: 0;
  padding-left: 20px;
}

.article-aside li + li {
  margin-top: 9px;
}

.safety-note,
.disclaimer {
  margin: 42px 0 0;
  padding: 24px;
  border-radius: 8px;
}

.safety-note {
  border: 1px solid #e5c06b;
  background: #fff9e9;
}

.disclaimer {
  border: 1px solid #e7b7b0;
  background: #fff5f3;
}

.safety-note h2,
.disclaimer h2 {
  margin-top: 0;
}

.article-list {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 84px;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.article-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.article-card-copy {
  align-self: center;
  padding: 32px 32px 32px 0;
}

.article-card h2 {
  margin: 6px 0 14px;
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: 0;
}

.article-card p {
  color: var(--muted);
}

.read-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
}

.site-footer {
  padding: 38px 0;
  color: #e7ebf4;
  background: var(--ink);
}

.footer-inner {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  font-size: 15px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #ffffff;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .site-nav {
    min-height: 64px;
  }

  .nav-links a:not(.primary-link) {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-summary {
    font-size: 18px;
  }

  .page-intro h1 {
    font-size: 38px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
  }

  .article-aside {
    position: static;
    order: -1;
    padding: 0 0 22px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .article-card img {
    min-height: 260px;
    aspect-ratio: 16 / 9;
  }

  .article-card-copy {
    padding: 0 24px 28px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-nav,
  .hero-copy,
  .page-intro-inner,
  .article-layout,
  .article-list,
  .footer-inner {
    width: min(100% - 28px, 1050px);
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-links .primary-link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-copy {
    padding-bottom: 48px;
  }

  .hero h1,
  .page-intro h1 {
    font-size: 34px;
  }

  .article-body h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
