:root {
  --bg-light: white;
  --bg-dark: black;
  --fg-light: black;
  --fg-dark: white;
  --gray: #757575;
  --bg: var(--bg-light);
  --fg: var(--fg-light);
  --underline-offset: 0.1em;
  --underline-thickness: 0.03em;
  --underline-color: rgba(128, 128, 128, 0.5);
  --nl-hover-bg: rgba(128, 128, 128, 0.05);
  --nl-border-color: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --fg: var(--fg-dark);
  }
}

html[data-theme="light"] {
  --bg: var(--bg-light);
  --fg: var(--fg-light);
}

html[data-theme="dark"] {
  --bg: var(--bg-dark);
  --fg: var(--fg-dark);
}

@font-face {
  font-family: 'Futura PT';
  src: url('fonts/futurapt-light-webfont.eot');
  src: url('fonts/futurapt-light-webfont.eot?#iefix') format('embedded-opentype'),
       url('fonts/futurapt-light-webfont.woff2') format('woff2'),
       url('fonts/futurapt-light-webfont.woff') format('woff'),
       url('fonts/futurapt-light-webfont.ttf') format('truetype'),
       url('fonts/futurapt-light-webfont.svg#futura_ptlight') format('svg');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
  transition: none;
  overflow: hidden;
}

.w {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.t {
  display: inline-block;
  position: relative;
  margin: 0;
  font-family: 'Futura PT', Arial, Helvetica, sans-serif;
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  color: black;
  color: var(--fg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 500ms ease 50ms, color 800ms ease-out 80ms;
}

.fl .t {
  visibility: visible;
  opacity: 1;
}

.tb,
.tf {
  position: absolute;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  font-kerning: none;
  font-feature-settings: "kern" 0;
}

.tb {
  color: grey;
  z-index: 1;
  pointer-events: auto;
  user-select: auto;
}

.tf {
  color: black;
  color: var(--fg);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.tf > span {
  margin: 0;
  padding: 0;
  border: 0;
  display: inline-block;
  position: relative;
}

.tf > span::after,
.d-fn::after,
.d-at::after,
.d-ln::after,
.d-cc::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.d-fn,
.d-at,
.d-ln,
.d-cc {
  position: relative;
  display: inline-block;
}

.sp {
  color: transparent;
  caret-color: transparent;
  pointer-events: none;
  user-select: none;
}

.nb {
  position: fixed;
  left: 50%;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0.5rem 1.2rem;
  z-index: 9;
  color: #757575;
  color: var(--gray);
  font-size: 1rem;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  background: transparent;
}

.nb.tp {
  top: 0.5rem;
  gap: 0.5rem;
}

.nb.bt {
  bottom: 2rem;
  gap: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
}

.nb.lg {
  bottom: 0.1rem;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
}

.nb.lg .nl {
  margin: 0;
  padding: 0.2rem 0.3rem;
}

.nb.lg .lgs {
  color: var(--gray);
  line-height: 1;
}

.nl {
  display: inline-block;
  box-sizing: border-box;
  color: gray;
  color: var(--gray);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  line-height: 1.2;
  font-weight: 300;
  cursor: pointer;
  transition: background 100ms, color 100ms;
  margin: 0 1.1rem;
  border: 1px solid transparent;
}

.nl:hover,
.nl:focus {
  text-decoration: underline;
}

.nl:focus,
.nl:focus-visible {
  outline: 2px solid grey;
  outline-offset: 2px;
}

.nl.ac {
  cursor: default;
  font-variant: small-caps;
  font-weight: bold;
  text-decoration: none;
}

.nl.ac:hover,
.nl.ac:focus {
  text-decoration: none;
  background: none;
}

.hl-ph .d-fn::after,
.hl-em .tf > span::after,
.hl-tg .d-at::after,
.hl-tg .d-ln::after,
.hl-ca .d-cc::after {
  background: rgba(128, 128, 128, 0.5);
}

#tt {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  background: transparent;
  color: gray;
  color: var(--gray);
  border: none;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 50ms ease, filter 50ms ease;
}

#tt:hover,
#tt:focus-visible {
  opacity: 1;
  outline: none;
}

#tt.invert {
  filter: invert(1);
}

#to {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  transition: none;
  background: transparent;
  opacity: 0;
  transform: scale(1);
}

.vh {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  /* stylelint-disable-next-line property-no-deprecated */
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

@supports (top: env(safe-area-inset-top)) {
  .nb.tp {
    top: max(0.25rem, env(safe-area-inset-top));
  }

  @media (max-width: 660px) {
    #tt {
      bottom: max(0.1rem, env(safe-area-inset-bottom));
      right: max(0.1rem, env(safe-area-inset-right));
    }
  }
}

@supports (gap: 1rem) {
  .nb .nl {
    margin: 0;
  }
}

@supports (text-decoration-thickness: 2px) {
  .hl-ph .nl[data-hl="ph"],
  .hl-em .nl[data-hl="em"],
  .hl-tg .nl[data-hl="tg"],
  .hl-ca .nl[data-hl="ca"] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration-color: rgba(128, 128, 128, 0.5);
    text-underline-offset: var(--underline-offset);
  }
}

@media (max-width: 660px) {
  .t {
    font-size: 2.5rem;
  }

  .tf,
  .tb {
    font-size: inherit;
    line-height: 1.1;
  }

  .nb.tp {
    gap: 0.1rem;
  }
}

@media screen and (orientation: landscape) and (min-width: 661px) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .w {
    box-sizing: border-box;
    padding-top: 1.5rem;
    padding-bottom: 3.4rem;
  }

  .t {
    font-size: 2.5rem;
  }

  .tf,
  .tb {
    font-size: inherit;
    line-height: 1.1;
  }
}

@media (max-width: 400px) {
  .t {
    font-size: 2rem;
  }

  .nb {
    font-size: 0.8rem;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    left: 2rem;
    right: 2rem;
    transform: none;
    justify-content: center;
  }

  .nb.tp {
    gap: 0.1rem;
    padding: 0.1rem;
    left: 0;
    right: 0;
  }

  .nl {
    padding: 0.4rem 0.5rem;
    margin: 0 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .t {
    margin-left: -7.7em;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (-ms-high-contrast: none), (orientation: landscape) and (max-height: 500px) and (-ms-high-contrast: active) {
  .w {
    box-sizing: border-box;
    padding-top: 1.8rem;
    padding-bottom: 3.8rem;
  }

  .t {
    font-size: 2.5rem;
  }

  .nb.tp {
    display: block;
    top: 0.1rem;
    left: 0.35rem;
    right: 0.35rem;
    transform: none;
    text-align: center;
    font-size: 0.76rem;
    padding: 0.1rem 0;
  }

  .nb.bt {
    bottom: 1.25rem;
    padding: 0.35rem 0.45rem;
  }

  .nb.lg {
    bottom: 0;
    font-size: 0.66rem;
  }

  .nb.tp .nl {
    margin: 0 0.06rem;
    padding: 0.16rem 0.2rem;
  }

  .nb.bt .nl {
    margin: 0 0.25rem;
    padding: 0.3rem 0.45rem;
  }

  .nb.lg .nl {
    padding: 0.1rem 0.2rem;
  }

  #tt {
    bottom: 0.05rem;
    right: 0.15rem;
  }
}

html[data-theme="dark"] body {
  background-color: black;
  color: white;
}

html[data-theme="light"] body {
  background-color: white;
  color: black;
}

html[data-theme="dark"] .tf {
  color: white;
}

html[data-theme="light"] .tf {
  color: black;
}

