:root {
  --background: #fff9e3;
  --primary: #081126;
  --accent: #ea7a53;
  --accent-dark: #d96a44;
  --muted-fg: #5a6478;
  --border: #ebe4c6;
  --card: #fffceb;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand a { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-link {
  text-decoration: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link.active { color: var(--accent); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 56px 56px 96px;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
h1 {
  margin: 22px 0 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-wrap: balance;
}
h1 .accent { color: var(--accent); }
.lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted-fg);
  font-weight: 600;
  text-wrap: pretty;
}

.toc {
  margin: 40px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc a {
  text-decoration: none;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.toc a:hover { border-color: var(--accent); color: var(--accent); }

.section {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 24px;
}
.section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-fg);
  margin: 0 0 12px;
  font-weight: 600;
  text-wrap: pretty;
}
.section a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.section a:hover { text-decoration: underline; }

.foot-note {
  margin-top: 48px;
  padding: 20px 22px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.5;
}
.foot-note strong { color: var(--primary); }

footer {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  padding: 30px 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted-fg);
  border-top: 1px solid var(--border);
}
footer .links { display: flex; gap: 18px; }
footer .links a {
  color: var(--muted-fg);
  text-decoration: none;
  font-weight: 700;
}
footer .links a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .nav { padding: 18px 28px; }
  main { padding: 40px 28px 72px; }
  footer { padding: 26px 28px 36px; }
}
@media (max-width: 700px) {
  .nav { padding: 14px 18px; }
  .nav-link { display: none; }
  .nav-actions { gap: 8px; }
  .btn { padding: 10px 14px; font-size: 13px; }
  main { padding: 32px 18px 56px; }
  h1 { font-size: clamp(34px, 10vw, 48px); }
  .lede { font-size: 15px; }
  .toc { gap: 6px; }
  .toc a { padding: 7px 12px; font-size: 12px; }
  .section h2 { font-size: 19px; }
  .section p { font-size: 15px; }
  footer { padding: 22px 18px 28px; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
  footer .links { flex-wrap: wrap; gap: 14px; }
}
