body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #fcf8f4;
  color: #444;
  line-height: 1.5;
}
h1 {
  margin-top: 0;
}
a {
  color: #026acd;
}
ul li {
  margin: .5rem 0;
}
ul.demo-list {
  list-style: none;
  padding: 0;
}
ul.demo-list a {
  font-weight: bold;
  text-decoration: none;
}
ul.demo-list a:hover {
  text-decoration: underline;
}
.desc {
  color: #444;
  font-size: 1rem;
  margin-top: 0.25rem;
}
header {
  background: #f3f5f8;
  border-bottom: 1px solid #dde4e6;
  display: flex;
  padding: 0 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

form {
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

nav a {
  padding: 1rem;
  text-decoration: none;
  font-weight: normal;
  color: #026acd;
  position: relative;
  font-weight: bold;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background: transparent;
}

nav a.active {
  background: #fff;
}

nav a.active::after,
nav a:hover::after,
nav a:focus::after {
  background: currentColor;
}

code {
  background: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  font-family: monospace;
  color: #f31f65;
  font-weight: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 8px;
  text-align: left;
}

tbody tr:not(:last-child) td,
tbody tr:not(:last-child) th {
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: #f9fafb;
  text-transform: uppercase;
  font-size: 0.75rem;
}

thead th a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

th.sorted {
  position: relative;
}

th.sorted::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: currentColor;
  height: 2px;
}

.container {
  max-width: 42rem;
  margin: 2rem auto;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem #0001;
  padding: 2em;
}
@media (max-width: 50rem) {
  .container {
    margin: 2rem;
  }
}

.hero-wrapper {
  position: relative;
  width: 100vw;
  height: auto;
  min-height: 300px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.hero-hi-res {
  max-width: 100%;
  height: auto;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s;
}

.fade-in.loaded {
  opacity: 1;
}

.blur-12px {
  filter: blur(12px);
}

.hero-lo-res--lqip-ultimate,
.hero-hi-res--lqip-ultimate,
.hero-hi-res--blurhash,
.hero-hi-res--css-lqip {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

.hero-hi-res--lqip-bmp,
.hero-hi-res--lqip-png,
.hero-hi-res--lqip-webp,
.hero-hi-res--lqip-webp-smooth {
  display: block;
  position: absolute;
  width: 100%;
  max-width: 100%;
  height: auto;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}

.hero-placeholder--blurhash {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-placeholder--sqip {
  display: block;
  position: absolute;
  width: 100%;
  max-width: 100%;
  height: auto;
  top: 0;
  left: 0;
}

.hero-placeholder--sqip svg {
  width: 100%;
  height: auto;
}

.hero-hi-res--sqip {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.message {
  border: 1px solid;
  border-left-width: .3rem;
  border-radius: 0.3em;
  display: block;
  padding: 0.3em 0.7em;
  margin: 0.5em 0;
}

.message--error {
  color: hsl(340, 97%, 45%);
  border-color:hsl(340, 85%, 69%);
  background: hsl(340, 100%, 98%);
}

.message--warning {
  color: hsl(52 30% 20% / 1);
  border-color: hsl(52, 97%, 55%);
  background: hsl(52, 100%, 88%);
}

/* Hamburger styles */
#nav-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  color: #026acd;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

/* Responsive nav */
@media (max-width: 700px) {
  header {
    flex-direction: row;
    position: relative;
    justify-content: space-between;
    margin-bottom: 0;
  }

  #nav-toggle {
    display: flex;
  }

  #nav-toggle[aria-expanded="true"] {
    background: #fff;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f3f5f8;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 0.25rem 0.5rem #0001;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dde4e6;
  }

  nav a::after {
    content: initial;
  }

  nav a.active,
  nav a:hover,
  nav a:focus {
    background: #fff;
  }
  nav a.active::after {
    content: '';
    left: 0;
    top: 0;
    width: .35rem;
    height: 100%;
  }
}
