/* ACK Cohort Systems website stylesheet. One file. No framework. */

:root {
  --navy: #003858;
  --gold: #F8D000;
  --white: #FFFFFF;
  --text: #17202A;
  --muted: #4F5B66;
  --bg-alt: #F7F7F5;
  --rule: #D9DDE1;
  --rule-on-navy: rgba(255, 255, 255, 0.18);
  --max: 1100px;
  --measure: 68ch;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font);
  font-size: 106.25%; /* 17px */
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

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

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1.1em; }
p:last-child, ul:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Focus ring: navy on light backgrounds, gold on navy backgrounds. Both exceed 3:1 against their background. */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* Layout */
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* Section heading with a short gold rule */
.section h2::before,
.page-hero .eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1rem;
}
.page-hero .eyebrow::after { margin-top: 0.75rem; margin-bottom: 0; }

.lede { font-size: 1.18rem; line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Skip link */
.skip-link {
  position: absolute; left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--gold); color: var(--navy);
  padding: 0.6rem 1rem; font-weight: 600; text-decoration: none; z-index: 100;
}
.skip-link:focus { transform: none; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding-block: 0.75rem; }
.brand img { height: 3.25rem; width: auto; }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--rule-on-navy); color: var(--white);
  font: inherit; font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.85rem; cursor: pointer; border-radius: 2px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; padding-block: 0.5rem; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

@media (max-width: 719px) {
  .site-header .wrap { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { flex-basis: 100%; display: none; padding-bottom: 0.75rem; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule-on-navy); padding-top: 0.5rem; }
  .site-nav a { display: block; padding: 0.7rem 0; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(4rem, 10vw, 7.5rem); }
.hero h1, .hero .eyebrow, .page-hero h1, .page-hero .eyebrow { color: var(--white); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 20ch; }
.hero .lede { color: rgba(255, 255, 255, 0.92); }
.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lede { color: rgba(255, 255, 255, 0.92); }
/* Veterans Academy hero: a little more vertical room between eyebrow, title and lede */
.page-hero-roomy { padding-block: clamp(4rem, 9vw, 6.5rem); }
.page-hero-roomy .eyebrow { margin-bottom: 1.5rem; }
.page-hero-roomy h1 { margin-bottom: 1rem; }
.page-hero-roomy .lede { margin-top: 0.5rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.4rem; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px; line-height: 1.2;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--white); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--white); color: var(--navy); }

/* Grids */
.grid-2 { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid-3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.panel { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.panel h3 { margin-bottom: 0.5rem; }

.feature h3 { margin-bottom: 0.3rem; }
.feature p { margin: 0; color: var(--muted); }

/* Founder */
.founder { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 720px) { .founder { grid-template-columns: 18rem minmax(0, 1fr); } }
.founder-photo { max-width: 18rem; }
.founder-photo img { border-radius: 2px; }
.founder-roles { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; color: var(--muted); font-weight: 500; }
.founder-roles li { margin: 0; }
.founder-roles li + li::before { content: "\00B7"; margin-right: 0.9rem; color: var(--gold); font-weight: 700; }

/* Boundary note: intentionally quiet */
.note { border-left: 3px solid var(--navy); padding: 0.25rem 0 0.25rem 1.25rem; max-width: var(--measure); color: var(--text); }

/* Definition style lists on Academy page */
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); max-width: 48rem; }
.plain-list li { padding-left: 1.1rem; position: relative; margin: 0; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 0.45rem; background: var(--gold); }

/* Contact */
.contact-email { font-size: 1.25rem; font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.88); padding-block: 2.75rem 2rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer img { height: 2.75rem; width: auto; margin-bottom: 1rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 0.35rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav li { margin: 0; }
.footer-legal { border-top: 1px solid var(--rule-on-navy); margin-top: 1.5rem; padding-top: 1.25rem; grid-column: 1 / -1; color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }

/* Legal page */
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h2:first-of-type { margin-top: 0; }
