/* ============================================================
   Skilldeck — practical guides for everyday tools
   Shared stylesheet
   ============================================================ */

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --ink: #14181c;
  --ink-soft: #3b434b;
  --muted: #6d757d;
  --line: #e2ddd2;
  --line-strong: #cfc7b8;
  --white: #ffffff;

  --accent: #d9541f;
  --accent-ink: #a83c12;
  --excel: #18794e;
  --excel-soft: #e7f2ec;
  --photo: #1f5f74;
  --photo-soft: #e5f0f3;
  --software: #3d3a8c;
  --software-soft: #ecebf7;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shell: 1180px;
  --gutter: 24px;

  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .05), 0 2px 8px rgba(20, 24, 28, .04);
  --shadow: 0 8px 24px rgba(20, 24, 28, .07), 0 2px 6px rgba(20, 24, 28, .04);
  --shadow-lg: 0 24px 60px rgba(20, 24, 28, .12), 0 6px 18px rgba(20, 24, 28, .06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: #f6d3c2; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--paper { background: var(--paper-2); }

.ad-slot {
  display: flex;
  justify-content: safe center;
  margin-block: 24px;
  overflow-x: auto;
}
.ad-slot--banner { min-height: 50px; }
.ad-slot--multi { min-height: 200px; }

@media (width < 320px) {
  .ad-slot--banner { display: none; }
}

@media (width < 200px) {
  .ad-slot--multi { display: none; }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section-head__text { max-width: 620px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.02;
}
.h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-soft);
  line-height: 1.7;
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: .92rem;
  font-weight: 550;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent); filter: brightness(.9); }
.btn--sm { padding: 10px 17px; font-size: .84rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  font-size: .92rem;
  border-bottom: 1px solid transparent;
  transition: gap .18s ease, border-color .18s ease;
}
.link-arrow:hover { gap: 12px; border-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
}
.brand__mark span { transform: translateY(-.5px); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--ink-soft);
  transition: background .16s ease, color .16s ease;
}
.nav__links a:hover { background: rgba(20, 24, 28, .05); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
.nav__toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% 40%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(217, 84, 31, .10), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero__lede { max-width: 46ch; margin-bottom: 32px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__meta div { min-width: 96px; }
.hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}
.hero__meta span {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__visual {
  position: relative;
}
.hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__card {
  position: absolute;
  left: -22px;
  bottom: 30px;
  width: min(255px, 78%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__card b {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.hero__card p { font-size: .9rem; line-height: 1.45; }

/* ---------- Topic cards ---------- */
.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.topic__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.topic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.topic:hover .topic__media img { transform: scale(1.045); }
.topic__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.topic__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.topic__body h3 { font-size: 1.32rem; margin-bottom: 10px; }
.topic__body p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.topic__body .link-arrow { margin-top: auto; }

/* ---------- Featured guide ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.feature__body .kicker { margin-bottom: 16px; }
.feature__body h2 { margin-bottom: 14px; }
.feature__body .btn { margin-top: 26px; }
.feature__list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.feature__list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  font-weight: 500;
  transition: padding-inline .18s ease, color .18s ease;
}
.feature__list a:hover { padding-inline: 8px; color: var(--accent-ink); }
.feature__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}
.feature__arrow { color: var(--muted); }

/* ---------- Guide rows ---------- */
.guide-list { border-top: 1px solid var(--line); }
.guide {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease, padding-inline .18s ease;
}
.guide:hover { background: rgba(255, 255, 255, .6); padding-inline: 14px; }
.guide__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--line-strong);
}
.guide__title { display: block; font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.guide__meta span { display: inline-flex; align-items: center; gap: 7px; }
.guide__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}
.guide__meta span:first-child::before { display: none; }
.guide__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.guide:hover .guide__arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: rotate(-45deg);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 60px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: end;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .5; }

.page-hero p { max-width: 52ch; margin-top: 18px; color: var(--ink-soft); }

.page-hero__aside {
  display: grid;
  gap: 14px;
  font-size: .86rem;
}
.page-hero__stat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.page-hero__stat span { color: var(--muted); }
.page-hero__stat b { font-weight: 600; }

.topic-accent-excel { --accent: var(--excel); --accent-ink: var(--excel); }
.topic-accent-photo { --accent: var(--photo); --accent-ink: var(--photo); }
.topic-accent-software { --accent: var(--software); --accent-ink: var(--software); }

/* ---------- Tips / accordion ---------- */
.tips {
  display: grid;
  gap: 14px;
  counter-reset: tip;
}
.tip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tip[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tip summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 550;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.tip summary::-webkit-details-marker { display: none; }
.tip summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform .2s ease;
  line-height: 1;
}
.tip[open] summary::after { transform: rotate(45deg); }
.tip__idx {
  counter-increment: tip;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
  min-width: 22px;
}
.tip__idx::before { content: counter(tip, decimal-leading-zero); }
.tip__body {
  padding: 0 24px 24px 64px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.tip__body p + p { margin-top: 12px; }
.tip__body ul { margin: 12px 0 0 18px; }
.tip__body li + li { margin-top: 6px; }

.kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78em;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--paper);
  white-space: nowrap;
}

code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
pre code { border: 0; background: none; padding: 0; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 560px;
}
thead th {
  text-align: left;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 15px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfcfa; }
td code { white-space: nowrap; }

/* ---------- Feature grid ---------- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.mini-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.mini-card p { font-size: .9rem; color: var(--muted); }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: .95rem;
}
.callout b { display: block; margin-bottom: 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------- Article ---------- */
.article-hero {
  padding: 54px 0 0;
}
.article-hero__inner { max-width: 800px; margin-inline: auto; text-align: center; }
.article-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: 20px; }
.article-hero p { color: var(--ink-soft); font-size: 1.06rem; max-width: 62ch; margin-inline: auto; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.article-figure {
  max-width: 980px;
  margin: 42px auto 0;
}
.article-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.article-figure figcaption {
  margin-top: 12px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

.prose {
  max-width: 730px;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  color: var(--ink);
  margin-top: 56px;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.prose h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 34px;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 9px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 30px 0; }
.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}
.prose .callout { margin: 30px 0; }

.formula {
  background: #14201a;
  color: #dff0e6;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: .84rem;
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre-wrap;
}
.formula .cm { color: #7fa38f; }

.copy-btn {
  display: block;
  margin-left: auto;
  margin-top: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(223, 240, 230, .25);
  border-radius: 999px;
  background: transparent;
  color: #a9c8b6;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.copy-btn:hover { background: rgba(223, 240, 230, .12); color: #eaf6ee; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .72rem;
  display: grid;
  place-items: center;
}

.article-foot {
  max-width: 960px;
  margin: 64px auto 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.article-foot .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .72rem;
  letter-spacing: .05em;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 52px clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 84, 31, .45), transparent 68%);
}
.cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.cta p { color: rgba(250, 248, 244, .68); font-size: .96rem; max-width: 44ch; }
.cta__form { display: flex; gap: 10px; position: relative; z-index: 1; }
.cta__form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 244, .22);
  background: rgba(250, 248, 244, .07);
  color: var(--paper);
  font: inherit;
  font-size: .92rem;
}
.cta__form input::placeholder { color: rgba(250, 248, 244, .45); }
.cta__form input:focus { outline: 2px solid rgba(217, 84, 31, .7); outline-offset: 1px; }
.cta__note { font-size: .74rem; color: rgba(250, 248, 244, .45); margin-top: 12px; }
.cta__ok { color: #9fe0b6; font-size: .86rem; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  margin-top: 88px;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 34ch; font-size: .89rem; }
.footer__col h5 {
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { color: var(--ink-soft); }
.footer__col a:hover { color: var(--accent-ink); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .hero__visual { order: -1; max-width: 620px; }
  .hero__card { left: auto; right: 16px; bottom: -16px; }
  .hero { padding-top: 44px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav { height: 66px; }
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 10px; font-size: 1rem; }
  .nav__cta { margin: 10px 0 0; }
  .nav__cta .btn { width: 100%; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .topics { grid-template-columns: 1fr; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 40px 1fr; gap: 14px; row-gap: 6px; }
  .guide__arrow { display: none; }
  .guide__num { font-size: 1.25rem; }
  .tip__body { padding-left: 24px; }
  .tip summary { padding: 18px 20px; gap: 12px; font-size: .95rem; }
  .hero__meta { gap: 18px; }
  .hero__meta div { min-width: 80px; }
  .article-hero { padding-top: 34px; }
  .article-figure img { aspect-ratio: 16 / 10; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta__form { flex-direction: column; }
  .cta__form .btn { width: 100%; }
  .article-foot { flex-direction: column; align-items: flex-start; }
}
