:root {
  /*
  --blue: #1769a8;
  --blue-dark: #12527f;
  --blue-light: #eaf3f9;
  */
  
  --red: #AE4012;
  --red-dark: #9E2000;
  --red-light: #CE6032;

  --text: #30363b;
  --text-light: #69747c;
  --border: #d9dfe3;

  --background: #f7f8f9;
  /*--paper: #ffffff;*/

  --max-width: 1120px;
  --reading-width: 820px;

  --sans:
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  --serif:
    Georgia,
    "Times New Roman",
    Times,
    serif;
}

@font-face {
    font-family: 'bebas_neueregular';
    src: url('/fonts/BebasNeue-webfont.ttf')  format('truetype');
}


/* --------------------------------------------------
   Reset
-------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  color: black;
  /*text-decoration: underline;*/
}


/* --------------------------------------------------
   Layout
-------------------------------------------------- */

.container {
  width: min(
    calc(100% - 48px),
    var(--max-width)
  );

  margin-inline: auto;
}

.site-main {
  min-height: calc(100vh - 250px);
}


/* --------------------------------------------------
   Header
-------------------------------------------------- */

.site-header {
  background-color: white;
  border-bottom: 1px solid var(--border);
  height: 120px;
}

.header-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.site-brand {
  /*display: flex;
  align-items: baseline;*/
  /*gap: 14px;*/

  color: var(--text);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.site-brand__title {
  font-size: 32px;
  font-weight: bold;
  font-weight: normal;
  letter-spacing: 0.05em;
  font-family: "bebas_neueregular",arial,sans-serif;
  /*letter-spacing: -.02em;*/
  text-transform: uppercase;
  /*background-color: var(--red-light);*/
}

.site-brand__title a {
  color: inherit;
}

.site-brand__title a:hover {
  color: black;
}

.site-brand__title2 {
  color: var(--red);
}

.site-banner {
  height: 120px;
}

.site-banner img {
  height: 120px;
}



/* --------------------------------------------------
   Navigation
-------------------------------------------------- */

#main-navigation {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 120px;
  /*line-height: 1.7;*/
  /*height: 50px;*/
}

.navigation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.navigation-header .site-brand__title {
  flex: 1;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.main-nav a {
  position: relative;

  padding: 15px 15px 15px;

  color: #444;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;

  text-decoration: none;
}

.main-nav a::after {
  content: "";

  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;

  height: 3px;

  background: transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--red);
}

.main-nav a.is-active::after {
  background: var(--red);
}


/* Mobile menu button */

.nav-toggle {
  display: none;

  border: 0;
  background: transparent;

  width: 42px;
  height: 42px;

  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;

  background: var(--text);
}


/* --------------------------------------------------
   Homepage
-------------------------------------------------- */

.hero {
  /*background: var(--paper);*/
  background-color: whitesmoke;
  /*margin-top: 42px;*/
  padding: 0px 70px 30px;

  /*border-top: 4px solid var(--red);*/
}

.hero h1 {
  max-width: 760px;

  /*margin: 0;*/

  color: var(--text);
  font-family: bebas_neueregular, var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: normal;
  line-height: 1.15;
}

.hero-rule {
  width: 80px;
  height: 2px;

  margin: 27px 0;

  background: var(--red);
}

.hero-content {
  /*max-width: var(--reading-width);*/

  font-size: 17px;
  line-height: 1.8;
}

.hero-content p:first-child {
  margin-top: 0;
}

.hero-content p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------
   Quick access
-------------------------------------------------- */

.quick-access {
  margin: 48px 0 70px;
}

.quick-access h2 {
  margin: 0 0 20px;

  color: var(--text);
  font-size: 20px;
  font-weight: 500;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  min-height: 110px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 25px 28px;

  color: var(--text);
  background: #fff;

  border: 1px solid var(--border);
  border-left: 10px solid var(--red);

  transition:
    border-color .15s ease,
    transform .15s ease;
}

.quick-card:hover {
  color: var(--red);
  border-color: var(--red);
  text-decoration: none;
  transform: translateY(-2px);
}

.quick-card__label {
  font-size: 16px;
  font-weight: 600;
}

/*
.quick-card__arrow {
  color: var(--red);
  font-size: 22px;
}
*/


/* --------------------------------------------------
   Page headers
-------------------------------------------------- */

.page-header {
  margin: 1px auto 38px;

  max-width: var(--reading-width);
}

/*
.eyebrow {
  margin: 0 0 8px;

  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
*/

.page-header h1,
.article-header h1 {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: normal;
  line-height: 1.2;
  color: var(--text);
  font-family: bebas_neueregular, var(--serif);
}

.page-intro {
  margin-top: 24px;

  /*color: var(--text-light);*/
  font-size: 17px;
}


/* --------------------------------------------------
   Section lists
-------------------------------------------------- */

.section-list {
  max-width: var(--reading-width);
  margin: 0 auto 80px;
}

.section-item {
  padding: 28px 0;

  border-top: 1px solid var(--border);
}

.section-item:last-child {
  border-bottom: 1px solid var(--border);
}

.section-item h2 {
  margin: 0 0 7px;

  font-family: var(--serif);
  font-size: 25px;
  font-weight: normal;
}

.section-item p {
  margin: 0 0 10px;

  color: var(--text-light);
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}


/* --------------------------------------------------
   Articles
-------------------------------------------------- */

.article {
  /*max-width: var(--reading-width);*/
  margin: 0 auto 80px;
  background-color: whitesmoke;
  /*margin: 55px auto 90px;*/
  width: min( calc(100% - 48px), var(--max-width) );
}

/*
.article-header {

  margin-bottom: 38px;

  padding-bottom: 28px;

  border-bottom: 1px solid var(--border);

}

.article-subtitle {
  margin: 13px 0 0;

  color: var(--text-light);
  font-size: 18px;
}
*/

.article-content {
  font-size: 17px;
  line-height: 1.5;
  background-color: white;
  padding: 20px;
}

.article-content h2 {
  margin-top: 45px;
  color: var(--text);
  /*font-family: var(--serif);*/
  font-size: 29px;
  font-weight: 200;
  line-height: 1.3;
}

.article-content h3 {
  margin-top: 35px;
  color: var(--text);
  font-size: 20px;
  font-weight: 200;
}

.article-content p {
  margin: 0 0 1.3em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: .4em;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 20px 25px;

  background: var(--red-light);
  border-left: 4px solid var(--red);

  font-family: var(--serif);
}

.article-content table {
  width: 100%;
  margin: 30px 0;

  border-collapse: collapse;

  font-size: 15px;
}

.article-content th,
.article-content td {
  padding: 10px 12px;

  border: 1px solid var(--border);

  text-align: left;
}

.article-content th {
  background: var(--red-light);
  color: var(--red-dark);
}

.article-content code {
  padding: .15em .35em;

  background: #eef1f3;

  font-size: .9em;
}

.article-content pre {
  overflow-x: auto;

  padding: 20px;

  background: #252a2e;
  color: #f2f4f5;
}

.external-link {
  margin-top: 40px;
  padding-top: 25px;

  border-top: 1px solid var(--border);

  font-weight: 600;
}

.icon {
  vertical-align: middle;
}


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
  /*margin-top: 80px;*/

  color: #dbe3e8;
  background: #27333a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;

  padding: 45px 0;
}

.footer-block {
  font-size: 14px;
  line-height: 1.7;
}

.footer-block strong {
  display: block;

  margin-bottom: 10px;

  color: #fff;
  font-size: 14px;
}

.footer-block p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links a {
  color: #dbe3e8;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 14px 0;
  background: #202a30;
  color: #aebbc2;
  font-size: 12px;
  text-align: center;
}

.footer-logo {
  margin: 10px;
}


/* --------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 800px) {

  .container {
    width: min(
      calc(100% - 32px),
      var(--max-width)
    );
  }

  .header-inner {
    min-height: 76px;
  }

  .site-brand__title {
    font-size: 17px;
  }

  .site-brand__subtitle {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;

    position: absolute;
    z-index: 20;

    left: 0;
    right: 0;

    padding: 10px 16px 20px;

    background: #fff;
    border-bottom: 1px solid var(--border);

    flex-direction: column;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 8px;

    border-bottom: 1px solid #edf0f2;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    margin-top: 25px;
    padding: 35px 25px 40px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;

    padding: 35px 0;
  }
}


/* Accessibility */

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0../pagefind --site public/ );

  white-space: nowrap;
  border: 0;
}


/* Mobile */

@media (max-width: 800px) {

  .site-search {
    width: 100%;
    margin: 10px 0 5px;
  }

  .site-search form {
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }

  .site-search input:focus {
    width: 100%;
  }

  .search-page__input {
    flex-direction: column;
  }

  .search-page__input button {
    min-height: 44px;
  }
}


/* Search */

.pf-searchbox {
  height: 10px;
}


