:root {
  --black: #292530;
  --yellow: #e8c949;
  --red: #ea1332;
  --white: #f5f7f9;

  --gutter: 20px;
  --gap: 5px;
  --border-radius: 6px;

  --bg-w: 900px;
  --bg-h: 600px;
}

body * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: "Inconsolata", monospace;
  font-optical-sizing: auto;
  font-weight: 515;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
  background-color: var(--white);

  background-repeat: repeat;
  background-position: top left;
  background-size: var(--bg-w) var(--bg-h);
  background-attachment: fixed;
  
  background-image: url(assets/bg\ paper.jpg)
}

.tabs div[role="tablist"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.tab {
  text-align: center;
  padding: 10px;
  color: var(--black);
  text-decoration: none;
  background-color: rgba(0,0,0,.1);
}

.tab--active {
  font-weight: 700;
  background-color: transparent;
}

.container {
  padding: var(--gutter);
  max-width: 30rem;
  margin: auto
}

.header {
  margin-bottom: 20px;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.logo {
  height: 2.43rem;
  width: auto
}

.sort-toggle {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 10px 0 40px;
  opacity: .88;
  font-size: 90%;
  letter-spacing: 0.02em
}

.sort-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.sort-toggle label {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: all 170ms ease-out
}

.sort-toggle input:checked + label {
  background-color: var(--black);
  color: var(--white)
}

.manneken-container {
  position: fixed;
  top: 85px;
  right: 15vw;
  width: 133px;
  aspect-ratio: 133/309;
  opacity: .5;
}

.manneken-pis {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-aos-easing="manneken-ease"] {
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important
}

h2  {
  margin: 0
}

.person {
  margin-bottom: 40px;
}

.person-row {
  display: grid; 
  grid-template-columns: 13.5% 1fr 33%; 
  grid-template-rows: auto; 
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.no, .name, h2 {
  font-family: "roc-grotesk", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1.2
}

.no {
  margin-left: calc(var(--gutter) * -1);
  background-image: url(assets/number\ bg.png);
  background-size: cover;
  background-position: right center;
  padding: 0 var(--gutter);
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.name {
  grid-column: span 2;
}

.section {
  text-align: right
}

/* DESKTOP */
@media screen and (min-width: 767px) {
  :root {
    --gap: 10px
  }

  html {
    font-size: 21px
  }

  .manneken-container {
    right: 50px;
    width: 200px
  }

  .year, .ensemble, .section {
    letter-spacing: -.02em
  }

  .container {
    padding-top: 40px
  }

  .sort-toggle {
    margin-bottom: 50px
  }

  .sort-toggle label:hover {
    transform: scale(1.05);
    box-shadow: 1px 2px 6px 2px rgba(0,0,0,.14)
  }

  .sort-toggle label:active {
    transform: scale(.97)
  }

  .no {
    margin-left: 0;
    border-radius: var(--border-radius)
  }

  .sort-toggle {
    font-size: 75%
  }
}

/* SORT ASCENDING */
.list, .person {
  display: flex;
  flex-direction: column;
}

.asc .list {
  flex-direction: column-reverse;
}

.asc .person {
  flex-direction: column-reverse;
}

.asc .person-row:first-child {
  /* keep name at the top of the reverse column */
  order: 999
}