:root {
  color-scheme: dark;
  --ink: #eef4f6;
  --muted: #a8bbc4;
  --night: #07161f;
  --deep: #0b2633;
  --sea: #174557;
  --rust: #c76245;
  --paper: #f1e7d6;
  --line: rgba(238, 244, 246, 0.16);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(110% 70% at 87% 2%, rgba(38, 104, 126, 0.38), transparent 55%), linear-gradient(160deg, var(--night) 0 52%, #0a202b 100%);
  font: 17px/1.68 var(--body);
}
a { color: var(--paper); text-underline-offset: 0.22em; }
a:hover { color: white; }
a:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.masthead { position: relative; min-height: 420px; overflow: hidden; border-bottom: 1px solid var(--line); }
.masthead::after {
  content: "";
  position: absolute;
  top: -12%;
  right: -9%;
  width: 73%;
  height: 48%;
  transform: rotate(-11deg);
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(241, 231, 214, 0.13));
  clip-path: polygon(0 47%, 100% 0, 100% 100%);
  pointer-events: none;
}
.nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 8px 26px rgba(0,0,0,.32); }
.brand span { font: 600 19px/1 var(--display); letter-spacing: .02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: white; }
.hero { position: relative; z-index: 1; padding: 72px 0 84px; max-width: 780px; }
.eyebrow { margin: 0 0 13px; color: #e39b83; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(48px, 8vw, 92px); line-height: .94; }
.lede { margin: 28px 0 0; max-width: 650px; color: #c7d5db; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; }
main { padding: 70px 0 96px; }
.document { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; }
.content { max-width: 720px; }
.content section { padding: 34px 0; border-top: 1px solid var(--line); }
.content section:first-child { padding-top: 0; border-top: 0; }
h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 43px); line-height: 1.08; }
p, ul { margin: 0 0 18px; }
ul { padding-left: 1.25em; }
li + li { margin-top: 8px; }
.aside {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 49, 63, .58);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}
.aside h2 { font: 700 13px/1.3 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.aside p, .aside li { color: var(--muted); font-size: 14px; }
.aside ul { margin: 0; padding-left: 18px; }
.callout { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--rust); background: rgba(199, 98, 69, .10); }
.callout p:last-child { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; color: #0a1c24; background: var(--paper); font-size: 15px; font-weight: 800; text-decoration: none; }
.button:hover { color: #0a1c24; background: white; }
footer { padding: 30px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 680px); }
  .masthead { min-height: 360px; }
  .nav { align-items: flex-start; }
  .nav-links { justify-content: flex-end; gap: 12px; }
  .hero { padding: 48px 0 64px; }
  .document { grid-template-columns: 1fr; gap: 36px; }
  .aside { position: static; order: -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
