* {
  box-sizing: border-box;
}

/* ==========================================================================
   Typography
   ========================================================================== */

@font-face {
  font-family: 'Barlow';
  src: url('/fonts/barlow-regular.woff2') format('woff2'),
      url('/fonts/barlow-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('/fonts/barlow-regular-italic.woff2') format('woff2'),
      url('/fonts/barlow-regular-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('/fonts/barlow-semibold.woff2') format('woff2'),
      url('/fonts/barlow-semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlowcondensed-semibold.woff2') format('woff2'),
      url('/fonts/barlowcondensed-semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: 'Barlow', sans-serif;
  font-weight: normal;
  font-style: normal;
}

body,
.l-main {
  overflow-x: hidden;
}

html {
  color: #000;
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font-family);
  margin-top: 0;
  margin-bottom: 0.25em;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 600;
  font-style: normal;
}

h1 { font-size: 45px; }
@media (min-width: 768px) { h1 { font-size: 52px; } }
@media (min-width: 992px) { h1 { font-size: 62px; } }
@media (min-width: 1200px) { h1 { font-size: 72px; } }

h2 { font-size: 40px; }
@media (min-width: 768px) { h2 { font-size: 44px; } }
@media (min-width: 992px) { h2 { font-size: 48px; } }
@media (min-width: 1200px) { h2 { font-size: 52px; } }

/* H2 large up to 78px */
h2.large { font-size: 44px; }
@media (min-width: 768px) { h2.large { font-size: 54px; } }
@media (min-width: 992px) { h2.large { font-size: 64px; } }
@media (min-width: 1200px) { h2.large { font-size: 74px; } }

/* H2 larger up to 100px */
h2.larger { font-size: 60px; }
@media (min-width: 768px) { h2.larger { font-size: 70px; } }
@media (min-width: 992px) { h2.larger { font-size: 80px; } }
@media (min-width: 1200px) { h2.larger { font-size: 100px; } }

h3 { font-size: 26px; }
@media (min-width: 768px) { h3 { font-size: 28px; } }
@media (min-width: 992px) { h3 { font-size: 30px; } }
@media (min-width: 1200px) { h3 { font-size: 32px; } }

p {
  margin-top: 0;
  line-height: 1.75;
}

p { font-size: 16px; }
@media (min-width: 768px) { p { font-size: 18px; } }
@media (min-width: 992px) { p { font-size: 20px; } }

strong {
  font-weight: 600;
}

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

/* ==========================================================================
   Link style
   ========================================================================== */

a,
a:visited {
  color: #000;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: #000;
}

.l-header a,
.l-footer a {
  text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.l-container {
  margin: 0 auto;
  width: 90%;
  max-width: var(--max-width);
}

.l-container--small {
  max-width: 840px;
}

.l-main > .l-container {
  padding: 2em 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button a {
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.75em 1em 0.75em 1em;
  color: white;
  border: 2px solid black;
  font-family: var(--heading-font-family);
  background: linear-gradient(to left, black 50%, white 50%) right;
  background-size: 201% 100%;
}

.button a:hover,
.button a:focus {
  color: black;
  background-position: left;
  transition: .2s ease-out;
}

.button a::after {
  content: " ->";
}

/* Inverse */

.button.button--inverse a {
  border: 2px solid white;
  color: black;
  background: linear-gradient(to left, white 50%, black 50%) right;
  background-size: 201% 100%;
}

.button.button--inverse a:hover,
.button.button--inverse a:focus {
  color: white;
  background-position: left;
  transition: .2s ease-out;
}

/* Buttons */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ol li {
  margin-bottom: 1em;
  counter-increment: list;
  list-style-type: none;
  position: relative;
}

ol li:before {
  position: absolute;
  content: counter(list) "";
  color: #fff;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: -40px;
  text-align: center;
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.webform .form-item {
  margin-bottom: 1em;
}

.webform .form-item input,
.webform .form-item textarea {
  width: 100%;
  border: 1px solid white;
  background-color: white;
  padding: 1.25em 1em 1.25em 1em;
}

.webform .form-item.required label::after,
.webform .form-item.required textarea::after {
  content:" *";
  color: red;
}

/* Position label inside input field */

.webform .form-item {
  position: relative;
}

.webform .form-item label,
.webform .form-item.alt.active label {
  position: absolute;
  transition: all .2s ease;
  font-size: 16px;
  color: var(--medium-grey);
  top: 1.25rem;
  left: 1rem;
}

.webform .form-item label:hover,
.webform .form-item label:hover {
  cursor: text;
}

.webform .form-item.active label {
  position: absolute;
  font-size: 11px;
  top: 0.33rem;
  left: 1rem;
}

/* File field */

.webform input[type="file"] {
  padding: 0.7125em 1em;
  direction: rtl;
}

.webform input[type="file"]::file-selector-button {
  padding: 0 1em;
  height: 40px;
  cursor: pointer;
  background-color: white;
  border: 2px solid black;
  margin-left: 1rem;
  transition: background-color 200ms;
}

.webform input[type="file"]::file-selector-button:hover,
.webform input[type="file"]::file-selector-button:active {
  color: white;
  background-color: black;
}

/* Submit button */

.webform input[type=submit] {
  width: auto;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.75em 1em 0.75em 1em;
  color: white;
  border: 2px solid black;
  font-family: var(--heading-font-family);
  background: linear-gradient(to left, black 50%, white 50%) right;
  background-size: 201% 100%;
}

.webform input[type=submit]:hover,
.webform input[type=submit]:focus {
  cursor: pointer;
  color: black;
  background-position: left;
  transition: .2s ease-out;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  width: 100%;
  border: none;
}

th {
  background-color: var(--primary-color);
  font-size: 19px;
  padding: 10px;
  text-align: left;
}

tr {
  font-size: 16px;
}

tr:nth-child(even) {
  background-color: rgba(255,255,255,.1);
}

tr:nth-child(odd) {
  background-color: var(--primary-color);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb {
  padding: .5em 0;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
  
.breadcrumb li:not(:last-child)::after {
  display: inline-block;
  margin: 0 .25rem;
  content: "/";
}

.breadcrumb ul li a:hover {
  text-decoration: none;
}

/* ==========================================================================
   Filters
   ========================================================================== */

.filters {
  display: flex;
}

.filters .filter a {
  color: var(--primary-color);
  text-decoration: none;
  opacity: 0.5;
  margin: 0 0.75em;
}

/* Active */

.filters .filter.active a,
.filters .filter a:hover {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 1;
  margin: 0 0.75em;
}

/* ==========================================================================
   Pager
   ========================================================================== */

.pager {
  padding: 1em 0;
}

.pager ul.pager__items {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding-left: 0;
}

.pager ul.pager__items li a {
  font-size: 16px;
  margin: 0 0.1em;
  padding: 0.5em 0.75em;
  border-radius: 50%;
  text-decoration: none;
  color: var(--primary-color);
}

/* Active state */

.pager ul.pager__items li.active a,
.pager ul.pager__items li a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ==========================================================================
   Helpers
   ========================================================================== */

.l-flex {
  display: flex;
}

ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo {
  width: 162px;
  height: 56px;
}
