/* JWC Global Consulting. Dark scheme (Jason, 28 Oct 2026: "I like dark backgrounds"); every color is set in this file.
   Palette: ground #0F1A2E, raised #16233B, header and footer #0A1322, text #C9D2E0, bright #FFFFFF, link #9DB8E8,
   accent gold #D4AF5A (the logo's gold on navy), rules #2A3A57. */

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

html {
  color-scheme: only dark;
  background-color: #0F1A2E;
  color: #C9D2E0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: #0F1A2E;
  color: #C9D2E0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(157, 184, 232, 0.25);
}

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

h1,
h2,
h3 {
  margin: 0;
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a,
a:visited {
  color: #9DB8E8;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #FFFFFF;
}

a:focus-visible {
  outline: 3px solid #D4AF5A;
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background-color: #2E5496;
  color: #FFFFFF;
}

.wrap {
  width: min(100% - 2.5rem, 60rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  background-color: #0A1322;
  color: #FFFFFF;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.125rem;
}

.wordmark,
.wordmark:visited,
.wordmark:hover {
  color: #FFFFFF;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.nav a:visited {
  color: #C9D2E0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Sections */

.section {
  padding-block: 3rem;
  background-color: #0F1A2E;
}

.section-tint {
  background-color: #16233B;
}

.section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.measure {
  max-width: 40rem;
}

.actions {
  margin-top: 1.5rem;
}

/* Opening */

.hero {
  padding-block: 3rem 2.75rem;
  background-color: #16233B;
}

.hero h1 {
  max-width: 21em;
  margin-bottom: 1.25rem;
  font-size: 1.875rem;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 38rem;
  color: #C9D2E0;
  font-size: 1.125rem;
}

.place {
  margin-top: 1.5rem;
  color: #D4AF5A;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* How we help */

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  padding: 1.25rem 1.25rem 1.375rem;
  border-radius: 6px;
  background-color: #16233B;
  color: #C9D2E0;
}

.service h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.service p {
  font-size: 0.96875rem;
}

/* Buttons */

.button,
.button:visited {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 2px solid #D4AF5A;
  border-radius: 4px;
  background-color: #D4AF5A;
  color: #0F1A2E;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  border-color: #FFFFFF;
  background-color: #FFFFFF;
  color: #0F1A2E;
}

.button-outline,
.button-outline:visited {
  border-color: #9DB8E8;
  background-color: transparent;
  color: #FFFFFF;
}

.button-outline:hover {
  border-color: #FFFFFF;
  background-color: #FFFFFF;
  color: #0F1A2E;
}

/* About */

.about {
  display: grid;
  gap: 1.75rem;
}

.portrait {
  max-width: 15rem;
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background-color: #1F2B45;
}

.portrait figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.about-lead {
  color: #E6EAF0;
  font-size: 1.125rem;
}

.credentials {
  font-size: 0.9375rem;
}

/* Contact */

.email {
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.email a,
.email a:visited {
  color: #FFFFFF;
}

.email a:hover {
  color: #D4AF5A;
}

/* Footer */

.site-footer {
  padding-block: 1.5rem;
  background-color: #0A1322;
  color: #9AA6B8;
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

/* On a phone the place goes on its own line; wider screens show the line as written, with the separator. */
.footer-sep {
  display: none;
}

.footer-place {
  display: block;
}

/* Page not found: the footer sits at the bottom of the screen. */

.page-notfound {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-notfound main {
  flex: 1 0 auto;
}

.notfound h1 {
  margin-bottom: 1rem;
  font-size: 1.875rem;
}

/* Draft placeholders: text only Jason can supply. check_site.sh fails while any element carries this class. */

.placeholder {
  padding: 0.05em 0.3em;
  border-radius: 2px;
  background-color: #FFE95C;
  color: #1A1A1A;
  box-shadow: inset 0 0 0 1px #B89500;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Wider screens */

@media (min-width: 40em) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .service:last-child {
    grid-column: 1 / -1;
  }

  .footer-sep,
  .footer-place {
    display: inline;
  }
}

@media (min-width: 48em) {
  .section {
    padding-block: 4rem;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding-block: 4.5rem 4rem;
  }

  .hero h1 {
    font-size: 2.375rem;
  }

  .lede {
    font-size: 1.1875rem;
  }

  .about {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }

  .portrait {
    max-width: none;
  }

  .email {
    font-size: 1.25rem;
  }
}

@media (min-width: 60em) {
  body {
    font-size: 1.0625rem;
  }

  .hero {
    padding-block: 5.5rem 5rem;
  }

  .hero h1 {
    font-size: 2.625rem;
  }

  .services {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .service,
  .service:last-child {
    grid-column: span 2;
  }

  .service:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* 28 October 2026: logo, expertise, record cards, research and publications pages. */

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 4.5rem;
}

.hero .measure {
  margin-bottom: 1rem;
}

.expertise {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 60rem;
}

.expertise li {
  padding-left: 1.1rem;
  text-indent: -1.1rem;
}

.expertise li::before {
  content: "·";
  display: inline-block;
  width: 1.1rem;
  text-indent: 0;
  color: #D4AF5A;
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.25rem 1.25rem 1.375rem;
  border-radius: 6px;
  background-color: #16233B;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.card p {
  font-size: 0.96875rem;
}

.page-title {
  margin-bottom: 1rem;
  font-size: 1.875rem;
}

.lede-sub {
  margin-bottom: 2rem;
}

.grants {
  margin: 0;
  padding: 0;
  list-style: none;
}

.grants li {
  padding: 0.875rem 0;
  border-top: 1px solid #2A3A57;
}

.grants li:last-child {
  border-bottom: 1px solid #2A3A57;
}

.grant-title {
  margin: 0 0 0.2rem;
  color: #FFFFFF;
  font-weight: 600;
}

.grant-meta {
  margin: 0;
  font-size: 0.9375rem;
}

main h2#services,
main h2[id^="y"],
main h3[id^="y"] {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #2A3A57;
  font-size: 1.25rem;
}

.year-nav {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 2;
}

.year-nav a {
  margin-right: 0.75rem;
  white-space: nowrap;
  text-decoration: none;
}

.year-nav a:hover {
  text-decoration: underline;
}

ol.pubs {
  margin: 0;
  padding-left: 2.6rem;
}

ol.pubs li {
  margin: 0 0 0.625rem;
  padding-left: 0.25rem;
  font-size: 0.96875rem;
}

ol.pubs li::marker {
  color: #9AA6B8;
  font-size: 0.9rem;
}

ol.pubs strong {
  color: #FFFFFF;
  font-weight: 700;
}

.links {
  white-space: nowrap;
  font-size: 0.85rem;
}

.links a,
.links a:visited {
  margin-left: 0.375rem;
  padding: 1px 7px;
  border: 1px solid #3A4C6B;
  border-radius: 4px;
  color: #9DB8E8;
  text-decoration: none;
}

.links a:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.source {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2A3A57;
  font-size: 0.875rem;
}

@media (min-width: 40em) {
  .expertise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 48em) {
  .logo img {
    height: 5.75rem;
  }

  .page-title {
    font-size: 2.375rem;
  }
}

@media (max-width: 40em) {
  .links {
    white-space: normal;
  }
}
