/* ==========================================================================
   American Tech Workers — site styles
   Aesthetic reference: official/presidential American (whitehouse.gov):
   navy background, white text, red as accent only.
   ========================================================================== */

:root {
  --bg: #002b5c;              /* Old Glory navy */
  --bg-soft: #00214a;         /* darker navy for elevation */
  --bg-elevated: #003875;     /* lighter navy for hover surfaces */
  --bg-band: #001a3d;         /* deepest navy for header/footer bars */
  --text: #ffffff;
  --text-muted: #cdd8e6;
  --text-subtle: #8fa0b8;
  --border: #1a4581;
  --border-strong: #2c5a99;
  --link: #ffffff;            /* links are white, with underline */
  --link-hover: #ffe8a0;      /* warm cream on hover */
  --red: #e63452;             /* accent red, tuned for navy bg contrast */
  --red-hover: #ff5a76;
  --red-fg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .45);

  --container-max: 64rem;
  --reading-max: 42rem;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Charter", "Sitka Text", "Cambria", "Georgia", serif;
}

/* No light/dark variants — this site is one mode. Defaults to dark navy
   for everyone. Print stylesheet at the bottom handles paper output. */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--bg);
}
body {
  margin: 0;
  font: 17px/1.7 var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: var(--red); color: var(--red-fg); }

/* Skip link */
.skip {
  position: absolute; left: -10000px;
  background: var(--red); color: var(--red-fg);
  padding: .6rem 1rem; border-radius: 4px;
  font-weight: 700; font-size: .9rem;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
  position: sticky; top: 0;
  background: var(--bg-band);
  border-top: 3px solid var(--red);   /* red bunting strip across the top */
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding-block: .75rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark span { white-space: nowrap; }
.wordmark::after {
  content: "";
  display: inline-block;
  width: .35rem; height: .35rem;
  background: var(--red);
  border-radius: 50%;
  margin-left: .35em;
  align-self: center;
}
.wordmark:hover { color: var(--text); }

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}
.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--red);
}

/* CTA-style nav link (Sign On) */
.site-nav a.cta {
  background: var(--red);
  color: var(--red-fg);
  padding: .55rem 1.2rem;
  border-radius: 4px;
  border-bottom: none;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .12s ease, transform .08s ease;
}
.site-nav a.cta:hover {
  background: var(--red-hover);
  color: var(--red-fg);
  border-bottom: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   Main content
   ========================================================================== */
main.container {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

main h1, main h2, main h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text);
  font-weight: 700;
}

main h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin: 0 0 1.75rem;
  max-width: var(--reading-max);
  letter-spacing: -0.02em;
}

main h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  margin: 3.5rem 0 1.1rem;
  padding-top: 2rem;
  position: relative;
  max-width: var(--reading-max);
}
main h2::before {
  /* navy-and-red bunting strip above each major section */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4rem; height: 4px;
  background: linear-gradient(to right,
    var(--red) 0, var(--red) 1.4rem,
    rgba(255,255,255,.85) 1.4rem, rgba(255,255,255,.85) 2.2rem,
    var(--red) 2.2rem, var(--red) 4rem);
}

main h3 {
  font-size: 1.2rem;
  margin: 2rem 0 .6rem;
  font-weight: 700;
  max-width: var(--reading-max);
}

main p, main li {
  max-width: var(--reading-max);
  color: var(--text);
}

main p {
  margin: 0 0 1.15rem;
}

/* Lead paragraph (the first paragraph after h1) */
main h1 + p {
  font-size: 1.18rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
}

main strong {
  color: var(--text);
  font-weight: 700;
}

main em, main i { color: inherit; }

main ul {
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
}
main li { margin-bottom: .65rem; }
main li::marker { color: var(--red); }

main a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .1s ease, text-decoration-thickness .1s ease;
}
main a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

main blockquote {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.4rem;
  border-left: 3px solid var(--red);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  max-width: var(--reading-max);
}

main code {
  background: var(--bg-soft);
  padding: .12em .42em;
  border-radius: 4px;
  font-size: .92em;
  border: 1px solid var(--border);
  color: var(--text);
}

/* Pull-quote-style emphasis can be added later via .pull-quote */

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer {
  margin-top: 5rem;
  background: var(--bg-band);
  border-top: 3px solid var(--red);   /* matching red bunting at the bottom */
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.25rem;
}

.footer-brand .wordmark-footer {
  font-size: .82rem;
  display: inline-flex;
  cursor: default;
}
.footer-tagline {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  max-width: 28rem;
}

.footer-quote {
  margin: 1.25rem 0 0;
  padding: .15rem 0 .15rem 1rem;
  border-left: 3px solid var(--red);
  max-width: 30rem;
}
.footer-quote p {
  margin: 0 0 .35rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.footer-quote cite {
  display: block;
  font-style: normal;
  font-size: .82rem;
  color: var(--text-subtle);
  letter-spacing: .02em;
}
.footer-quote cite i { font-style: italic; }

.footer-nav-h2-stacked {
  margin-top: 1.25rem !important;
}

/* Page meta (date stamp on Legal/Privacy/Accessibility pages) */
.page-meta {
  font-size: .85rem;
  color: var(--text-subtle);
  margin: -.75rem 0 1.5rem;
  font-family: var(--font-sans);
}
.page-meta time { color: var(--text-muted); }

.footer-nav h2 {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 .85rem;
  font-weight: 700;
  font-family: var(--font-sans);
}
.footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: color .1s ease, border-color .1s ease;
}
.footer-nav a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--red);
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-block: 1.4rem;
  color: var(--text-subtle);
  font-size: .85rem;
}
.footer-legal p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1rem;
  }
  .site-nav ul {
    gap: 1.1rem;
    flex-wrap: wrap;
  }
  .site-nav a.cta {
    padding: .5rem 1rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.5rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wordmark { font-size: .76rem; letter-spacing: .14em; }
  main h1 { font-size: 1.95rem; }
  main h2 { font-size: 1.35rem; }
}

/* ==========================================================================
   Print — keep readable on paper: black on white
   ========================================================================== */
@media print {
  :root {
    --bg: #fff;
    --text: #000;
    --text-muted: #333;
    --border: #ccc;
    --link: #000;
  }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.55; }
  .site-header, .site-footer, .skip { display: none; }
  main h1, main h2, main h3 { color: #000; page-break-after: avoid; }
  main h2::before { background: #000; }
  main a { color: #000; text-decoration: underline; }
  main p, main li { orphans: 3; widows: 3; }
}
