*,
::before,
::after {
  box-sizing: inherit; 
}

:root {
  --border-color: #CACACA; /* global scope */
  --body-background-color: #F4F9FA;
  --transparent: #00000000;
  --text-color: #3B3B35;
  --highlight-color: #AA0221;
  --sidebar-highlight-color: #ebb7c1;
  --masthead-background-color: #123524;
  --masthead-text-color: #F4F9FA;
  --masthead-link-hover-color: #A4A9AA;
}

@font-face {
  font-family: CaslonDisplay; /* set name */
  src: url(fonts/LibreCaslonDisplay-Regular.ttf); /* url of the font */
}
@font-face {
  font-family: CaslonText;
  src: url(fonts/LibreCaslonText-Regular.ttf);
  font-style: regular;
}
@font-face {
  font-family: CaslonText;
  src: url(fonts/LibreCaslonText-Bold.ttf);
  font-weight: bold;
}
@font-face {
  font-family: CaslonText;
  src: url(fonts/LibreCaslonText-Italic.ttf);
  font-style: italic;
}

html {
    box-sizing: border-box;
    font-family: "Libre Caslon Text", CaslonText, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    color: var(--text-color);
    height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background-color: var(--body-background-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
  font-family: "Libre Caslon Display", CaslonDisplay, serif;
  font-weight: 400;
  font-style: normal;
}

h1 {
    font-size: 30pt;
}
h2 {
    font-size: 25pt;
}
h3 {
    font-size: 20pt;
}

hr {
  border: 0;
  clear:both;
  display:block;
  width: 96%;               
  background-color: var(--border-color);
  height: 1px;
}

footer {
    padding: 1em;
    width: 100%;
    text-align: right;
}

.masthead {
    background-color: var(--masthead-background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

a {
    color: var(--text-color);
    text-decoration: underline;
}
a:link, a:visited {
    color: var(--text-color);
}
a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}
a:active {
    color: var(--text-color);
    text-decoration: underline;
}

a.sidebar-link {
    color: var(--text-color);
    text-decoration: none;
}
a:link.sidebar-link, a:visited.sidebar-link {
    color: var(--text-color);
}
a:hover.sidebar-link {
    color: var(--text-color);
    background-color: var(--sidebar-highlight-color);
    text-decoration: underline;
}
a:active.sidebar-link {
    color: var(--text-color);
}

a.masthead-link {
    color: var(--masthead-text-color);
}
a:link.masthead-link, a:visited.masthead-link {
    color: var(--masthead-text-color);
    text-decoration: none;
}
a:hover.masthead-link {
    color: var(--masthead-link-hover-color);
    text-decoration: underline;
}
a:active.masthead-link {
    color: var(--masthead-text-color);
    text-decoration: underline;
}

input[type=text] {
    width: 350px;
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid var(--transparent);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0px;
    background-color: var(--transparent);
    font-family: "Libre Caslon Text", CaslonText, serif;
    outline: none;
    font-size: 0.916em;
}
input:focus[type=text] {
    border-bottom: 1px solid var(--text-color);
    border-radius: 0px;
}
input[type=RESET] {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    background-color: var(--transparent);
    font-family: "Libre Caslon Text", CaslonText, serif;
    outline: none;
    font-size: 1em;
}
input:focus[type=RESET] {
    border: 1px solid var(--text-color);
}
input:hover[type=RESET] {
    background-color: var(--transparent);
}
input[type=SUBMIT] {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    background-color: var(--transparent);
    font-family: "Libre Caslon Text", CaslonText, serif;
    outline: none;
    font-size: 1em;
}
input:focus[type=SUBMIT] {
    border: 1px solid var(--text-color);
}
input:hover[type=SUBMIT] {
    background-color: var(--transparent);
}

.masthead-logo {
    height: 30px;
    padding-top: 5px;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: none;
}

.nav-links li {
    margin-left: 10px;
}

.nav-links li:first-child {
    margin-left: 0;
}

.sr-only {
    display: none;
}

.content-sidebar-wrap {
    display:flex;
    gap: 1em;
    flex-grow: 1;
}

.sidebar-wrap {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    align-self: flex-start;
    display: block;
    top: 0;
    bottom: auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    width: 150px;
}

.sidebar-links {
    list-style: none;
    margin: 5px;
    padding: 0;
}
.sidebar-links li {
    width: 100%;
}
.sidebar-link {
    display: block;
    width: 100%;
    padding-left: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.container {
    max-width: min(97%, 1920px); 
    margin: 0 auto;
}

.section-top {
    display: flex;
}

.section-wide {
    width: 500px;
    margin: 0em 1em;
}

.full-width {
    width: 100%;
    display: flex;
    margin: 5px 0;
}

.showcase-box {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    padding: 20px;
    padding-top: 0px;
    border: 1px solid var(--border-color);
}

.cost-wrap {
    display: flex;
    justify-content: space-between;
    padding: 0px 20px;
}
.cost-container {
    width: 170px;
    padding: 0px 10px;
}
.right-align {
    margin-left: auto;
}
.bit-bigger {
    width: 163px;
}

@media (max-width: 1300px) {
    html {
      font-size: 1.5em;
    }

    h1 {
        font-size: 45pt;
    }
    h2 {
        font-size: 38pt;
    }
    h3 {
        font-size: 30pt;
    }
    input[type=text] {
        width: 550px;
    }
    .masthead-logo {
        height: 50px;
        padding-top: 5px;
    }
    .section-top {
        display: flex;
        flex-direction: column;
    }
    .sidebar-wrap {
        display: none;
    }
    .content {
        margin: 0 auto;
    }
    .cost-container {
        width: 250px;
        padding: 0px 10px;
    }
    .bit-bigger {
        width: 250px;
    }
    .nav-links {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .section-wide {
        width: auto;
        max-width: 650px;
        margin: 0em 0.5em;
    }
    .showcase-box {
        width: 600px;
    }
}