:root {
  color-scheme: light;
  --paper: #f5f5f0;
  --ink: #1a1a1a;
  --muted: #616874;
  --line: #ddddd6;
  --accent: #4f46e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

a { color: inherit; }

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

.site-header__inner,
.page {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 3rem;
  align-items: start;
  padding: 6rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

h1, h2 { font-family: Merriweather, Georgia, serif; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.05em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 4vw, 2.35rem); letter-spacing: -.025em; }
h3 { margin: 0 0 .65rem; font-size: 1.05rem; }

.lead { max-width: 700px; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.35rem;
  border-radius: .8rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.facts {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.facts dl { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #ecece6; }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

.section { padding: 4rem 0; border-top: 1px solid var(--line); }
.section > p { max-width: 760px; color: var(--muted); line-height: 1.75; }

.steps,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.step,
.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.step span { display: block; margin-bottom: 1rem; color: var(--accent); font-size: .8rem; font-weight: 700; }
.step p, .card p { margin: 0; color: var(--muted); line-height: 1.65; }

.notice {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: #ecebff;
  color: #38345f;
  line-height: 1.65;
}

.related { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.related a { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; }

.article-header {
  max-width: 860px;
  padding: 5.5rem 0 3.5rem;
}

.article-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.article-meta {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 4rem;
  align-items: start;
  padding-bottom: 5rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body h2 {
  margin: 3.25rem 0 1rem;
}

.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 2rem 0 .65rem; }
.article-body p, .article-body ul, .article-body ol { color: #444b55; }
.article-body li + li { margin-top: .75rem; }
.article-body a { color: var(--accent); }

.article-aside {
  position: sticky;
  top: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.article-aside p { color: var(--muted); line-height: 1.6; }
.article-aside .cta { width: 100%; }

.source-list {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
}

.guide-list a {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  text-decoration: none;
}

.guide-list span { display: block; margin-bottom: .8rem; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.guide-list strong { font-family: Merriweather, Georgia, serif; font-size: 1.2rem; line-height: 1.45; }
.guide-list p { color: var(--muted); line-height: 1.6; }

footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .steps, .cards { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-aside { position: static; }
  .guide-list { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
}
