/* ----
  nickrodd.com — custom styles based off bootstrap
---- */

/* ---- Charis SIL (SIL Open Font License) ---- */

@font-face {
  font-family: "Charis SIL";
  src: url("../fonts/CharisSIL-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Charis SIL";
  src: url("../fonts/CharisSIL-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Charis SIL";
  src: url("../fonts/CharisSIL-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Charis SIL";
  src: url("../fonts/CharisSIL-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---- Core ---- */

:root {
  --orange: #F07800;
  --nav-ink: #111;
  --nav-muted: #5a5a5a;
  --link: #B34700;
  --link-hover: #8F3A08;
}

body {
  padding-bottom: 100px;
}

#images {
  text-align: center;
}

p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.accent {
  color: #D35400;
  font-weight: 600;
}

/* ---- navbar ---- */

.navbar {
  border-radius: 0;
  border: 0;
}

.navbar-inverse {
  background-color: #fff;
  border-bottom: 2px solid var(--orange);
}

.navbar-inverse .navbar-brand {
  color: var(--nav-ink);
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
  color: var(--nav-ink);
}

.navbar-inverse .navbar-nav > li > a {
  color: var(--nav-muted);
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: var(--nav-ink);
  background-color: transparent;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  color: var(--nav-ink);
  background-color: transparent;
  box-shadow: inset 0 -2px 0 var(--orange);
}

/* ---- links ---- */

a {
  color: var(--link);
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* ---- typography ---- */

body {
  font-family: "Charis SIL", Charter, Georgia, serif;
  font-size: 16.5px;
  line-height: 1.48;
  color: #2b2b2b;
}

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.15;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

h1 { font-size: 2.4em; letter-spacing: -0.016em; }
h2 { font-size: 1.71em; letter-spacing: -0.008em; }
h3 {
  font-size: 0.95em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
h4 { font-size: 1.03em; }

h1:first-child,
h2:first-child {
  margin-top: 0;
}

.lead {
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.35;
  color: #5f5f5f;
}
