@font-face {
  font-family: "DIN Next Pro";
  src: url('webFonts/DINNextProRegular/font.woff2') format('woff2'), url('webFonts/DINNextProRegular/font.woff') format('woff');
}
@font-face {
  font-family: "Eurostile LT Pro Extended";
  src: url('webFonts/EurostileLTProBoldExtended2/font.woff2') format('woff2'), url('webFonts/EurostileLTProBoldExtended2/font.woff') format('woff');
}
@font-face {
  font-family: FreeFontSerif;
  font-style: normal;
  font-weight: normal;
  src: url('webFonts/FreeSerif.otf');
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #F7F7F7;
}
main {
  padding-inline: 1em;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer {
  text-wrap: balance;
  color: #666;
  margin: 2em;
  text-align: center;
  font-size: clamp(0.6em, 1.2vw, 1.2em);
  font-family: "DIN Next Pro", sans-serif;
}
.homepage-header {
  margin-top: clamp(50px, 6vw, 100px);
  position: relative;
}
.landing-header {
  margin-top: 5em;
  position: relative;
}

h1, h2 {
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  -webkit-text-stroke-color: #333;
}
h1 {
  font-family: "DIN Next Pro", sans-serif;
  margin-block: 2em 1em;
  color: #333;
  font-size: clamp(1.5em, 4vw, 4em);
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-family: "Eurostile LT Pro Extended", sans-serif;
}
.landing-header h1 {
  margin: 0;
  font-family: "Eurostile LT Pro Extended", sans-serif;
  color: #DDD;
  font-size: clamp(3em, 10vw, 10em);
  -webkit-text-stroke-width: 0.015em;
  line-height: 0.9;
}
.homepage-header h1 {
  font-family: "Eurostile LT Pro Extended", sans-serif;
  margin: 0;
  color: #DDD;
  font-size: clamp(1.2em, 6vw, 5em);
  -webkit-text-stroke-width: 0.02em;
}
.landing-header h2 {
  color: #DDD;
  font-size: clamp(1em, 3.5vw, 3.5em);
  -webkit-text-stroke-width: 0.03em;
}
.homepage-header hgroup p {
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(0.6em, 1.8vw, 1.8em);
  margin-top: 0;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

.eridian {
  font-family: FreeFontSerif;
}

div#countdown {
  font-family: FreeFontSerif;
  color: #333;
  margin-block: 0.5em;
  font-size: clamp(3em, 20vw, 15em);
  font-weight: normal;
  text-transform: none;
  display: flex;
  gap: 0.1em;
}
div#countdown span {
  background: #CCC;
  text-align: center;
  width: 1em;
  color: #444;
}

div.warning {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  font-size: clamp(0.75em, 1.4vw, 1.2em);
  color: #333;
  padding: 0.5em 1em 0.5em 0.6em;
  text-align: left;
  font-family: "DIN Next Pro", sans-serif;

  --yellow: #FFCC00;
  --width: 5px;
  background: var(--yellow);

  border-bottom-width: calc(2 * var(--width));
  border-bottom-style: solid;
  border-image: repeating-linear-gradient(
    45deg, black, black var(--width),
    var(--yellow) var(--width), var(--yellow) calc(2 * var(--width))
  ) 10;
}
div.warning h3 {
  margin: 0 0.5em 0 0;
  font-family: 'Eurostile LT Pro Extended', sans-serif;
  font-size: clamp(1.2em, 4vw, 2em);
}
div.warning p {
  margin: 0;
}
div.warning {
  display: none;
}
div.warning.show {
  display: flex;
}
.close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  color: #666;
  cursor: pointer;
}
.close:hover {
  color: #000
}
div.bar {

  --yellow: #FFCC00;
  --width: 5px;

  border-bottom-width: calc(2 * var(--width));
  border-bottom-style: solid;
  border-image: repeating-linear-gradient(
    45deg, black, black var(--width),
    var(--yellow) var(--width), var(--yellow) calc(2 * var(--width))
  ) 10;
}

section.nav {
  width: 100%;
  background: linear-gradient(to bottom, #333, #111);
}
nav {
  padding: 0.5em 1em;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
nav.homepage {
  justify-content: center;
  margin-top: 0;
}
nav a {
  text-decoration: none;
  color: inherit;
}
nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: clamp(0.3em, 1.5vw, 1.5em);
}
nav.homepage ul {
  gap: clamp(1em, 4vw, 6em);
}
nav ul li {
  cursor: pointer;
  text-align: center;
}
nav ul li div {
  color: #999;
  transition: color 0.5s ease-in-out;
}
section.nav nav ul li div {
  color: #FFCC00;
}
nav div.site {
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(1em, 4vw, 2em);
  text-transform: uppercase;
}
nav div.site a {
  color: #CCC;
  transition: color 0.5s ease-in-out;
}
nav div.site:hover a {
  color: #FFCC00;
}
nav ul li div {
  font-family: FreeFontSerif;
  font-size: clamp(1em, 2vw, 1.6em);
}
nav.homepage ul li div:nth-child(1) {
  font-size: clamp(1.5em, 3vw, 3em);
}
nav ul li div:nth-child(2) {
  margin-top: 0.2em;
  font-family: "DIN Next Pro", sans-serif;
  text-transform: uppercase;
  font-size: clamp(0.5em, 1vw, 0.8em);
  color: #999;
}
section.nav nav ul li div:nth-child(2) {
  color: #FFCC00;
}
nav ul li div.soon {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
nav ul li:hover div {
  color: #000;
}
section.nav nav ul li:hover div {
  color: #FFF;
}
nav ul li:hover div.soon {
  opacity: 1;
}

div.fun-quote {
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: clamp(60px, 11vw, 150px);
  animation: pulse 3s ease-in-out infinite;

  max-width: 40ch;
  font-family: "DIN Next Pro", sans-serif;
  font-weight: normal;
  font-size: clamp(0.6em, 1.5vw, 2em);
  color: #333;
  text-align: right;
  text-wrap: balance;
}
@media (min-width: 400px) {
  div.fun-quote {
    right: -5vw;
  }
}
.landing-header div.fun-quote {
  bottom: clamp(90px, 19vw, 300px);
  font-size: clamp(0.7em, 2.5vw, 2em);
}
div.fun-quote cite {
  display: block;
  font-size: 80%;
  color: #999;
  font-style: normal;
  text-align: right;
}
div.fun-quote cite::before {
  content: "—";
}
@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
    transform: rotateZ(6deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotateZ(6deg) scale(1.1);
  }
}

main p {
  text-wrap: pretty;
  max-width: 80ch;
  line-height: 1.5;
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(0.9em, 1.4vw, 1.4em);
  color: #666;
}
main ul {
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(0.9em, 1.4vw, 1.4em);
  color: #666;
}
main p b {
  color: #000;
}
main p code {
  font-size: 90%;
  color: #567;
  background: #CDE;
  padding: 0.1em 0.3em;
  border-radius: 0.2em;
}
footer a {
  color: #666;
}
footer a:hover {
  color: #000;
}

.pagination {
  width: clamp(340px, 85vw, 1200px);
  display: flex;
  justify-content: space-between;
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(1em, 2vw, 2em);
  margin-block: clamp(2em, 3vw, 3em) 0;
}
.pagination a {
  color: #666;
  text-decoration: none;
}
.pagination a:hover {
  color: #000;
}

article.beanbag {
  width: clamp(340px, 85vw, 1200px);
  background: #EEE;
  padding: clamp(10px, 1vw, 1em) clamp(10px, 2vw, 2em);
}
article.beanbag h3 {
  font-family: "Eurostile LT Pro Extended", sans-serif;
  font-size: clamp(1.2em, 4vw, 3em);
  color: #666;
  margin: 0;
  display: flex;
  justify-content: space-between;
}
article.beanbag h3 a {
  color: #666;
  text-decoration: none;
}
article.beanbag h3 a:hover {
  color: #999;
}
article.beanbag h2 {
  font-family: "Eurostile LT Pro Extended", sans-serif;
  font-size: clamp(1.2em, 2vw, 2em);
  color: #333;
  margin: 0;
}
article.beanbag div.lead {
  max-width: 800px;
  margin-inline: auto;
}
article.beanbag div.lead p  {
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(1.2em, 2vw, 2em);
  color: #333;
  margin-bottom: 0.5em;
  text-wrap: pretty;
}
article.beanbag div.lead p strong {
  color: #000;
}
article.beanbag div.lead p a {
  color: #66C;
}
article.beanbag div.fine-print {
  margin-top: 2em;
  max-width: 800px;
  margin-inline: auto;
}
article.beanbag div.fine-print p {
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(0.9em, 1.4vw, 1.4em);
  color: #666;
  margin-block: 0.5em;
  text-wrap: pretty;
}
article.beanbag div.fine-print p a {
  color: #66C;
}
article.beanbag div.fine-print p strong {
  color: #000;
}
blockquote {
  text-align: right;
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(1.2em, 2vw, 2em);
  color: #666;
}
blockquote p {
  line-height: 1.3;
  margin: 0;
}
blockquote p::before {
  content: "“";
  font-family: FreeFontSerif;
  font-size: clamp(1.5em, 3vw, 3em);
  color: #999;
}
blockquote cite {
  color: #999;
  font-size: 80%;
}
blockquote cite::before {
  content: " —\00A0";
}
article.beanbag img {
  text-align: center;
  max-width: 100%;
  height: auto;
  margin-block: 1em;
}
article.beanbag .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-block: 1em;
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(0.9em, 1.4vw, 1.4em);
}
article.beanbag .tags a {
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  color: white;
  background: #99F;
  text-decoration: none;
}
article.beanbag .tags a:hover {
  color: #FFF;
  background: #66C;
}

.chart svg.horizontal {
  display: none;
  width: 100%;
}
.chart svg.vertical {
  display: block;
  width: 300px;
}
@media (min-width: 800px) {
  .chart svg.horizontal {
    display: block;
  }
  .chart svg.vertical {
    display: none;
  }
}
.chart svg text {
  font-family: "DIN Next Pro", sans-serif;
  font-size: 12px;
  fill: #333;
}
.chart svg line {
  stroke: #333;
  stroke-width: 0.5px;
}
.chart svg rect.chapter {
  fill: #CCC;
}
.chart svg rect.section-space {
  fill: #669;
}
.chart svg rect.section-earth {
  fill: #696;
}

.converter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5em;
  margin-top: 2em;
  justify-content: center;
}
.converter input {
  padding: 4px 8px;
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(1.1em, 2.5vw, 2.5em);
  text-align: right;
  width: 11ch;
}
.converter input#eridian-number {
  text-align: left;
  font-family: FreeFontSerif;
}
.converter .arrows {
  padding-block: 4px;
  font-family: FreeFontSerif;
  font-size: clamp(1em, 2.5vw, 2.5em);
}
.converter label {
  color: #666;
  font-family: "DIN Next Pro", sans-serif;
  font-size: clamp(0.8em, 1.5vw, 1.5em);
}
.converter label.decimal-number {
  text-align: right;
}
.converter .buttons {
  margin-top: 0.5em;
  text-align: left;
  gap: 0.2em;
  display: flex;
  flex-wrap: wrap;
}
.converter .buttons > * {
  display: flex;
  gap: 0.2em;
}
.converter .buttons button {
  width: 1.3em;
  text-align: center;
  font-family: FreeFontSerif;
  font-size: clamp(1em, 2vw, 2em);
  background: #DDD;
  border: 1px solid #999;
  color: #000;
}
.converter button.erase {
  font-size: clamp(1em, 2vw, 2em);
  color: #C33;
  border: none;
  background: transparent;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}
.converter button.erase:hover {
  color: #F33;
}
