/* px1 "Quiet Summit" foundation (px layer). Loaded last in the head, so it wins over the skin's
   ~110 stylesheets without editing them. One serif for headings, one sans for everything else, no wide
   letter spacing, deep navy and one gold accent, warm paper background. Fonts are self-hosted (OFL). */

@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/px/eb-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/px/eb-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/px/eb-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/px/eb-garamond-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/px/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/px/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/px/inter-latin-600-normal.woff2') format('woff2'); }
/* bold text uses 600 rather than a faux 700 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/px/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/px/eb-garamond-latin-600-normal.woff2') format('woff2'); }

:root {
  --px-navy: #162642;
  --px-navy-2: #22365a;
  --px-blue: #0b5aa2;
  --px-ink: #1f2630;
  --px-muted: #5a6470;
  --px-paper: #faf8f4;
  --px-card: #ffffff;
  --px-line: #e7e2d9;
  --px-gold: #c9952b;
  --px-green: #1f7a45;
  --px-serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --px-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --px-radius: 12px;
  --px-shadow: 0 1px 2px rgba(22,38,66,.06), 0 6px 20px rgba(22,38,66,.06);
}

/* ---------- 1. one type system ---------- */
html body.pagebody {
  background: var(--px-paper) !important;
  color: var(--px-ink);
  font-family: var(--px-sans) !important;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* every text element: the sans, normal spacing. Icons (Font Awesome, glyphicons) keep their own font. */
body.pagebody :where(*:not(i, .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, .glyphicon, [class^="fa-"], [class*=" fa-"])) {
  font-family: var(--px-sans) !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}
body.pagebody p, body.pagebody li { line-height: 1.65; }
body.pagebody b, body.pagebody strong { font-weight: 600; }

/* headings: the serif, navy, sentence case */
body.pagebody h1, body.pagebody h2, body.pagebody h3,
body.pagebody h1 *, body.pagebody h2 *, body.pagebody h3 * {
  font-family: var(--px-serif) !important;
}
body.pagebody h1, body.pagebody h2, body.pagebody h3 {
  font-weight: 600 !important;
  color: var(--px-navy);
  text-transform: none !important;
  line-height: 1.15 !important;
  letter-spacing: -0.005em !important;
}
body.pagebody h4, body.pagebody h5, body.pagebody h6 {
  font-family: var(--px-sans) !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: var(--px-ink);
}
/* the skin's display classes become the serif too (they mark headline-like lines) */
body.pagebody .russoone, body.pagebody .stylish, body.pagebody .kalam, body.pagebody .montez,
body.pagebody .permanentmarker, body.pagebody [class*="russo"] {
  font-family: var(--px-serif) !important;
  font-weight: 600 !important;
}

/* links */
body.pagebody a { color: var(--px-blue); text-underline-offset: 2px; }
body.pagebody a:hover { color: var(--px-navy); }

/* ---------- 2. colour: one navy, one gold accent; tame the rainbow ---------- */
body.pagebody .redtext, body.pagebody .greentext, body.pagebody .bluetext, body.pagebody .orangetext { color: var(--px-navy) !important; }
body.pagebody ::selection { background: rgba(201,149,43,.25); }

/* ---------- 3. calmer surfaces ---------- */
body.pagebody .shadow { box-shadow: 0 1px 0 var(--px-line) !important; }
body.pagebody input[type="text"], body.pagebody input[type="email"], body.pagebody input[type="search"],
body.pagebody input[type="tel"], body.pagebody select, body.pagebody textarea {
  font-family: var(--px-sans) !important;
  border-color: var(--px-line);
}

/* the skin paints the page grey on .sitewrap */
body.pagebody .sitewrap { background: var(--px-paper) !important; }

/* px1-2 (owner 18 Nov): no dark box when a link, card or menu item is clicked or tapped (an old Bootstrap a:focus ring).
   Keyboard users still get a clear ring, in the brand gold. */
body.pagebody a:focus:not(:focus-visible), body.pagebody button:focus:not(:focus-visible), body.pagebody [tabindex]:focus:not(:focus-visible), body.pagebody summary:focus:not(:focus-visible) { outline: none !important; }
body.pagebody a:focus-visible, body.pagebody button:focus-visible, body.pagebody summary:focus-visible { outline: 2px solid var(--px-gold, #c9952b) !important; outline-offset: 2px; }
body.pagebody a, body.pagebody button { -webkit-tap-highlight-color: transparent; }
