:root {
  --ink: #101820;
  --paper: #f6f1e7;
  --card: #fffaf0;
  --muted: #59687a;
  --line: rgba(16, 24, 32, 0.13);
  --warm: #ff9f43;
  --warm-strong: #ff7a1a;
  --mint: #7ee8b2;
  --blue: #377dff;
  --shadow: 0 28px 70px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 159, 67, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(126, 232, 178, 0.2), transparent 34%),
    var(--paper);
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar {
  padding: 24px 0;
}

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

.mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #180e05;
  background: linear-gradient(135deg, var(--warm), var(--mint));
  box-shadow: 0 16px 34px rgba(255, 159, 67, 0.24);
}

.nav,
.footer-links,
.actions,
.pill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a,
.footer-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  padding: 72px 0 54px;
}

.eyebrow {
  color: #9a5b11;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 14px 0 18px;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

p,
li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.lead {
  max-width: 760px;
  color: #344154;
  font-size: 1.22rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: #180e05;
  background: linear-gradient(135deg, var(--warm), var(--warm-strong));
  box-shadow: 0 18px 40px rgba(255, 122, 26, 0.24);
}

.button.secondary,
.pill {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
}

.pill {
  border-radius: 999px;
  padding: 8px 12px;
  color: #526070;
  font-size: 0.88rem;
  font-weight: 800;
}

.section {
  padding: 56px 0;
}

.card,
.callout,
.toc {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.card {
  padding: 26px;
}

.callout {
  margin: 34px 0;
  padding: 28px;
  background: #101820;
}

.callout h2,
.callout h3 {
  color: #fff;
}

.callout p,
.callout li {
  color: #cbd6e2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.toc a {
  display: block;
  margin: 10px 0;
  color: #4c5d70;
  font-weight: 800;
  text-decoration: none;
}

.article {
  min-width: 0;
}

.article section {
  margin-bottom: 42px;
}

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

.internal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.internal-links a {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 900;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

@media (max-width: 860px) {
  .grid,
  .two-col,
  .internal-links {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .toc {
    position: static;
  }
}
