:root {
  --accent: #a899f3;
  --accent-deep: #5c49b8;
  --accent-hover: #4a389e;
  --accent-soft: #f3effc;
  --accent-wash: #e7e0f8;
  --ink: #2c2833;
  --muted: #5c5668;
  --line: #e4dfed;
  --bg: #f7f5fb;
  --white: #ffffff;
  --footer: #2a2633;
  --shadow: 0 12px 32px rgba(74, 56, 130, 0.08);
  --radius: 18px;
  --max: 1120px;
  --narrow: 760px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(var(--narrow), calc(100% - 40px));
}

h1,
h2,
h3,
.logo {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
}

.logo:hover {
  color: var(--accent-hover);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-deep);
  position: relative;
  flex: none;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 7px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--white);
  color: var(--accent-hover);
  border-color: #c9bfef;
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-small {
  min-height: 44px;
  padding: 10px 16px;
}

.hero {
  position: relative;
  padding: 56px 0 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(168, 153, 243, 0.45), rgba(168, 153, 243, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-figure {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--accent-wash);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.card-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.section-note {
  margin-top: 28px;
  max-width: 46rem;
}

.card,
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-media,
.article-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--accent-wash);
}

.card-body,
.article-card .card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card p,
.article-card p {
  color: var(--muted);
  margin: 0;
}

.card h3 a,
.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover,
.article-card h3 a:hover {
  color: var(--accent-hover);
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #2a2438;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  padding-bottom: 88px;
}

.cta-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(135deg, #efe9fc, #f7f4ff 55%, #e4dcf8);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-panel .lead {
  margin-inline: auto;
}

.page-hero {
  padding: 36px 0 8px;
}

.crumbs {
  margin-bottom: 18px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs li:not(:last-child)::after {
  content: "–";
  color: inherit;
}

.crumbs a,
.crumbs a:hover {
  text-decoration: none;
  color: inherit;
  font-weight: 400;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.figure {
  margin: 22px 0 8px;
}

.figure img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--accent-wash);
}

.figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  padding-bottom: 20px;
}

.prose h2 {
  margin-top: 2.1em;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.35em;
}

.toc {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 22px 0 8px;
  box-shadow: var(--shadow);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.callout {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 22px 8px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  margin: 28px 0;
}

.callout ul {
  margin-top: 8px;
}

.check-panel {
  background: var(--white);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 16px 0 28px;
}

.check-progress {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist + h3 {
  margin-top: 22px;
}

.check-panel h3 {
  margin: 18px 4px 8px;
}

.checklist label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.checklist label:hover {
  background: var(--accent-soft);
}

.checklist input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 2px solid #b7addb;
  border-radius: 6px;
  background: var(--white);
  display: grid;
  place-items: center;
  flex: none;
}

.checklist input:checked {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.checklist input:checked::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checklist input:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
}

.checklist input:checked + span {
  color: var(--muted);
}

.static-checks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.static-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px 12px;
}

.static-checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex: none;
  box-shadow: inset 0 0 0 5px var(--accent-soft), inset 0 0 0 7px var(--accent-deep);
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

caption {
  caption-side: bottom;
  text-align: left;
  color: var(--muted);
  padding: 12px 14px 14px;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  font-size: 0.95rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.related {
  padding: 10px 0 40px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 8px;
}

.spec-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.spec-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.spec-card span {
  display: block;
  padding: 12px 14px 14px;
  font-weight: 700;
}

.spec-card:hover span {
  color: var(--accent-hover);
}

.site-footer {
  background: var(--footer);
  color: #ddd7ea;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 36rem);
  gap: 28px;
  padding: 42px 0 28px;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 10px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 24px;
  color: #f3eef8;
  font-size: 1rem;
}

.footer-note p {
  margin: 0;
}

.footer-note p + p {
  margin-top: 4px;
  color: #c9c2d8;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .article-grid,
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .container,
  .narrow {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .no-js .nav-toggle {
    display: none;
  }

  .no-js .site-nav {
    display: flex;
    position: static;
    box-shadow: none;
    padding: 0 0 16px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav ul a,
  .site-nav .btn {
    width: 100%;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .card-grid,
  .article-grid,
  .article-grid.cols-2,
  .spec-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .cta-panel {
    padding: 32px 20px;
    text-align: left;
  }

  .hero-actions .btn,
  .cta-panel .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
