/* =====================
   Fonts
   ===================== */
@font-face {
  font-family: 'ConcourseC2';
  src: url('/assets/fonts/concourse_c2_regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ValkyrieT3';
  src: url('/assets/fonts/valkyrie_t3_regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body {
  font-family: 'ValkyrieT3', serif;
  font-size: 0.96rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
  font-variant-ligatures: common-ligatures;
}

/* =====================
   Navigation
   ===================== */
.site-nav {
  margin: 1rem 0;
}
.site-nav a {
  margin-right: 1rem;
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
}

/* =====================
   Headings
   ===================== */
h1, h2, h3, h4 {
  font-family: 'ConcourseC2', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-style: normal; /* prevent italic */
}

h1 { font-size: 2.35rem; }
h2 {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-transform: none; /* change to uppercase if preferred */
  color: #444;
}
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

h2 a {
  color: inherit;
  text-decoration: none;
}
h2 a:hover {
  text-decoration: underline;
}

/* =====================
   Paragraphs & Lists
   ===================== */
p { margin: 0 0 0.9rem; }
ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
li + li { margin-top: 0.35rem; }

/* =====================
   Inline Links
   ===================== */
a {
  color: #0645ad;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:visited { color: #5a3696; }
a:active { color: #c00; }

p a, li a {
  font-weight: 600;
  color: #003366;
}
p a:hover, li a:hover {
  color: #001f4d;
}
p a:visited, li a:visited {
  color: #4b2f82;
}

/* =====================
   Inline Elements
   ===================== */
em { font-style: italic; }
strong { font-weight: 600; }
abbr, acronym {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* =====================
   Figures, Media & Code
   ===================== */
img, svg, video {
  max-width: 100%;
  height: auto;
}
figure { margin: 1.25rem 0; }
figcaption {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
  margin-top: 0.4rem;
}

code {
  font-size: 0.95em;
  padding: 0.1em 0.25em;
  border-radius: 3px;
  background: rgba(0,0,0,0.04);
}
pre {
  overflow: auto;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.035);
  line-height: 1.45;
}

/* =====================
   Blockquotes & Tables
   ===================== */
blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 3px solid #ddd;
  color: #444;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
th, td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e6e6e6;
}
th {
  text-align: left;
  font-weight: 600;
}

/* =====================
   Layout & Measure
   ===================== */
article, .group, main, section {
  max-width: 70ch;
}
@media (min-width: 1200px) {
  article, .group, main, section {
    max-width: 95ch;
  }
}
@media (min-width: 1100px) {
  body { font-size: 0.98rem; }
}
@media (max-width: 640px) {
  article, .group, main, section { max-width: 88vw; }
  body { line-height: 1.6; }
}

/* =====================
   Hyphenation
   ===================== */
p, li, blockquote, figcaption {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* =====================
   Accessibility
   ===================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =====================
   Print Styles
   ===================== */
@media print {
  a[href^="http"]::after {
    content: " (" attr(href) ") ";
    font-size: 0.85em;
    color: #666;
  }
  nav, .site-nav { display: none !important; }
  body { color: #000; }
}
