:root {
  --blue: #1b3a5b;
  --blue-light: #2f5f8a;
  --accent: #b8860b;
  --ink: #1c2126;
  --muted: #5a6470;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --maxw: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
}

a { color: var(--blue-light); }
a:hover { color: var(--blue); }

img { max-width: 100%; height: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  min-height: 60px;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .3px;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
  padding: 0;
  line-height: 1.1;
}
.brand:hover { color: #fff; }
.brand span { color: #cfe0f0; font-weight: 400; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-nav a {
  color: #dbe7f2;
  text-decoration: none;
  font-size: .92rem;
  padding: 3px 0;
  line-height: 1.1;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; }
/* External link to the main Area 72 site — a pill so it reads as
   leaving this page rather than jumping to an in-page section. */
.site-nav a.nav-external {
  background: var(--accent);
  color: #1a1200;
  padding: 4px 13px;
  border-radius: 999px;
  font-weight: 700;
}
.site-nav a.nav-external:hover { background: #d7a41f; color: #1a1200; }

/* ---------- Layout ---------- */
main { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section.alt { background: var(--bg-alt); }
section:last-of-type { border-bottom: 0; }

h1, h2, h3 { line-height: 1.25; color: var(--blue); }
h2 { font-size: 1.9rem; margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 .4em; color: var(--ink); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #17324f 0%, #1b3a5b 100%);
  color: #fff;
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--accent);
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin: 0 0 .4em;
}
.hero h1 .answer { color: #e9c66a; }
.hero p { color: #e6eef6; font-size: 1.15rem; max-width: 60ch; margin-left: auto; margin-right: auto; }
.hero figure { margin: 28px auto 0; }
.hero img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 26px 0 4px; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #1a1200; }
.btn-primary:hover { background: #cf9a1e; color: #1a1200; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Figures ---------- */
/* fit-content sizes each figure to its image so the caption lines up
   with the image edges instead of the full text column. */
figure { margin: 1.6em auto; width: fit-content; max-width: 100%; }
figure img { border-radius: 10px; display: block; }
figure.rounded img { box-shadow: 0 6px 20px rgba(0,0,0,.12); }
figure.logo { width: auto; text-align: center; }
figure.logo img { max-width: 240px; box-shadow: none; margin: 0 auto; }
figure figcaption {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .6em;
  font-style: italic;
}

/* Centered decorative pull-quote (from the original page's quote gadgets) */
blockquote.center {
  text-align: center;
  border-left: 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 20px 12px;
  max-width: 660px;
  margin: 2em auto;
  font-size: 1.18rem;
}
blockquote.center cite { text-align: center; }

/* ---------- Blockquote ---------- */
blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--accent);
  font-size: 1.12rem;
  color: #2a3138;
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
cite {
  display: block;
  margin-top: .8em;
  font-size: .82rem;
  font-style: normal;
  color: var(--muted);
}
cite a { color: var(--muted); }

/* ---------- Contact / resource grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 1.4em 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.card .place { font-weight: 700; color: var(--blue); }
.card .org { display: block; font-size: .95rem; margin: 2px 0 6px; }

.res-list { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 12px; }
.res-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-light);
  border-radius: 6px;
  padding: 14px 16px;
}
.res-list a { font-weight: 600; text-decoration: none; }
.res-list a:hover { text-decoration: underline; }
.res-list .desc { display: block; color: var(--muted); font-size: .92rem; margin-top: 3px; }

/* ---------- Myths ---------- */
.myth { margin: 1.2em 0; }
.myth h3 { color: var(--blue); margin-bottom: .2em; }

/* ---------- Video ---------- */
.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.6em 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- App badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin: 1.2em 0; }
.badges img { height: 52px; width: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: #d7e2ee;
  padding: 48px 0 40px;
}
.site-footer h2 { color: #fff; font-size: 1.3rem; }
.site-footer blockquote { border-left-color: var(--accent); color: #eaf1f8; }
.site-footer cite, .site-footer cite a { color: #a9c0d6; }
.social { display: flex; gap: 18px; margin: 8px 0 26px; flex-wrap: wrap; }
.social a { color: #fff; text-decoration: none; font-weight: 600; }
.social a:hover { color: var(--accent); }
.footer-note { font-size: .85rem; color: #9fb6cc; margin-top: 22px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .brand { margin-right: 0; width: 100%; }
}
