/*
 * Jordan McGilvray.net
 * Typography
 *
 * Blue Highway for identity and headings.
 * EB Garamond for body text.
 * Space Mono for code and ASCII art.
 */

/* Blue Highway */
@font-face {
  font-family: "Blue Highway";
  src: url("../fonts/Blue_Highway/BlueHighway-Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blue Highway";
  src: url("../fonts/Blue_Highway/BlueHighway-Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* EB Garamond */
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EB_Garamond/EBGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EB_Garamond/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EB_Garamond/EBGaramond-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EB_Garamond/EBGaramond-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Space Mono */
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/Space_Mono/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/Space_Mono/SpaceMono-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/Space_Mono/SpaceMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/Space_Mono/SpaceMono-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Body */
body {
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: inherit;
  font-family: "Blue Highway", "Helvetica Neue", Helvetica, "Liberation Sans", "Noto Sans", Arial, sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

h4 {
  font-size: 1.1rem;
  font-weight: 400;
}

h5,
h6 {
  font-weight: 400;
}

/* Paragraphs */
p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* Lists */
ul,
ol {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.25em;
}

/* Emphasis */
em,
i {
  font-style: italic;
}

strong,
b {
  font-weight: 700;
}

/* Quotes */
blockquote {
  margin: 1.5em 0;
  padding-left: 1.25em;
  border-left: 3px solid var(--color-border);
  font-style: italic;
}

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

/* Code and monospace content */
code,
pre,
kbd,
samp {
  font-family: "Space Mono", "Lucida Console", "Liberation Mono", "Noto Sans Mono", "Courier", monospace;
}

code {
  font-size: 0.9em;
}

pre {
  margin: 1.5em 0;
  padding: 1em;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.4;
}

/* Prevent long URLs or technical strings from breaking layout */
p,
li,
blockquote {
  overflow-wrap: break-word;
}

/* Site identity */
.site-title {
  margin: 0;
  font-family: "Blue Highway", "Helvetica Neue", Helvetica, "Liberation Sans", "Noto Sans", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.site-tagline {
  margin: 0.25rem 0 0;
  font-family: "Blue Highway", "Helvetica Neue", Helvetica, "Liberation Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.2;
}
