/* AeroDefenseNC website styles. Colors and fonts come from brand-guide.md. */

/* Both brand fonts are stored in this site (not loaded from Google), so visitors
   are not tracked by a font service. Both are free under the SIL Open Font License;
   the license files are in /fonts/. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --tower-navy: #15325C;      /* all backgrounds */
  --signal-blue: #62A2FF;     /* links and accents (5.0:1 on navy) */
  --white: #FFFFFF;           /* body text (12.8:1 on navy) */
  --caption-gray: #B8C4D6;    /* secondary text (7.2:1 on navy) */
  --rule: rgba(184, 196, 214, 0.25);
  --heading: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 0 1.25rem;
  background: var(--tower-navy);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.25; }
h1 { font-size: 2rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; color: var(--caption-gray); }
h3 { font-size: 1.25rem; margin: 0.25rem 0 0.5rem; }

a { color: var(--signal-blue); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--signal-blue); outline-offset: 3px; border-radius: 2px; }
h3 a { color: var(--white); text-decoration-color: var(--signal-blue); }

/* Hidden until a keyboard user presses Tab: jumps past the header. */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); color: var(--tower-navy); padding: 0.5rem 1rem; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem;
}
.logo img { display: block; width: 220px; height: auto; }
nav a { font-family: var(--heading); font-weight: 700; margin-left: 1.25rem; text-decoration: none; }
nav a:first-child { margin-left: 0; }
nav a:hover { text-decoration: underline; }

.tagline { color: var(--caption-gray); margin: 0.5rem 0 0; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }

.card { padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
.card p { margin: 0.25rem 0; }
.card:last-child { border-bottom: none; }
.category {
  font-family: var(--heading); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-blue); margin: 0;
}
.meta, .details, .empty { color: var(--caption-gray); font-size: 0.95rem; }
.story .meta { margin-top: -0.5rem; }
.source { margin-top: 1.5rem; padding: 0.75rem 1rem; border-left: 3px solid var(--signal-blue); background: rgba(255, 255, 255, 0.05); }
.details { padding-left: 1.25rem; }

.site-footer {
  margin-top: 3rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--rule);
  color: var(--caption-gray); font-size: 0.9rem;
}
.site-footer p { margin: 0.35rem 0; }

@media (max-width: 30rem) {
  h1 { font-size: 1.6rem; }
  .logo img { width: 180px; }
}
