@font-face {
  font-family: 'Gilroy Light';
  src: url('font.woff2') format('woff2');
  font-display: swap;
}

:root {
  --measure: 75ch;
  --ratio: 1.5;

  --s-4: calc(var(--s-3) / var(--ratio));
  --s-3: calc(var(--s-2) / var(--ratio));
  --s-2: calc(var(--s-1) / var(--ratio));
  --s-1: calc(var(--s0) / var(--ratio));
  --s0: 1.25rem;
  --s1: calc(var(--s0) * var(--ratio));
  --s2: calc(var(--s1) * var(--ratio));
  --s3: calc(var(--s2) * var(--ratio));
  --s4: calc(var(--s3) * var(--ratio));

  --black: #000000;
  --white: #f5f5f5;
}

html {
  height: 100%;
  background: url(bg.jpg) var(--black) no-repeat center center fixed;
  background-size: cover;
  font-family: 'Gilroy Light', sans-serif;
  text-rendering: optimizeLegibility;
}

html:focus-within {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

* {
  box-sizing: border-box;
  max-width: var(--measure);
}

html,
body,
nav,
select {
  max-width: none;
}

body,
h1,
h2,
h3,
h4,
p,
select,
button {
  margin: 0;
  font-size: unset;
}

body {
  min-height: 100vh;
  min-width: 100%;
  padding: var(--s4) var(--s0);
  font-size: var(--s0);
  line-height: var(--ratio);
}

h1,
h2 {
  font-size: var(--s2);
  font-weight: 400;
  white-space: nowrap;
}

h1 {
  margin-bottom: var(--s3);
}

h3 {
  min-height: var(--s2);
  font-size: var(--s1);
  font-weight: 400;
}

p {
  margin-bottom: var(--s4);
}

a {
  text-decoration: none;
  color: inherit;
  font-size: var(--s-1);
  margin-left: auto;
  font-weight: 400;
  vertical-align: middle;
}

form {
  margin: var(--s3) var(--s0);
}

button {
  padding-top: var(--s0);
  padding-bottom: var(--s-3);
  font-size: var(--s2);
  user-select: none;
  cursor: pointer;
  border: none;
  color: inherit;
  font-family: inherit;
  overflow: visible;
  background-image: none;
  background-color: transparent;
}

button[type='submit'] {
  padding: var(--s1);
  margin-top: var(--s1);
}

input {
  border: none;
  background-image: none;
  background-color: transparent;
  box-shadow: none;
  border-bottom: var(--white) var(--s-4) solid;
  font-size: var(--s0);
  line-height: inherit;
  padding: var(--s0);
  color: inherit;
  outline: none;
  font-weight: 700;
  max-width: 100%;
}

main {
  box-sizing: content-box;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: var(--s2);
  color: var(--white);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding: var(--s3) var(--s0);
}

section {
  transform: rotateX(180deg);
  margin-bottom: var(--s1);
  overflow-x: auto;
  scrollbar-color: rgb(245, 245, 245, 0.7) transparent;
  scrollbar-width: thin;
}

section::-webkit-scrollbar {
  width: var(--s-2);
  height: var(--s-2);
}

section::-webkit-scrollbar-track {
  background: none;
}

section::-webkit-scrollbar-thumb {
  background-color: rgb(245, 245, 245, 0.7);
  border-radius: var(--s2);
  border: none;
}

table {
  transform: rotateX(180deg);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  white-space: nowrap;
  padding-left: var(--s2);
  padding-right: var(--s2);
}

td {
  padding-left: var(--s-2);
  padding-right: var(--s-2);
  padding-bottom: var(--s-1);
}

tfoot th {
  padding-top: var(--s-2);
}

nav {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: 25%;
  pointer-events: none;
}

select {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  background-color: transparent;
  border: none;
  opacity: 0;
  font-family: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.small {
  font-size: var(--s-1);
}

.medium {
  font-size: var(--s1);
}

.large {
  font-size: var(--s2);
}

.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.spaced {
  letter-spacing: 0.05em;
}

.light {
  font-weight: 300;
}

.bold {
  font-weight: bolder;
}

.dimmed {
  opacity: 0.9;
}

.border {
  border-top: var(--white) var(--s-3) solid;
}

.unselect {
  user-select: none;
}

/* iOS fixed bg image fix */
@supports (-webkit-touch-callout: inherit) {
  @media (hover: none) {
    html {
      background-attachment: initial;
    }
    table,
    section {
      transform: none;
    }
    body:after {
      content: '';
      position: fixed;
      top: 0;
      height: 100vh;
      left: 0;
      right: 0;
      z-index: -1;
      background: url(bg.jpg) center center;
      background-size: cover;
    }
  }
}
