/* Color Bank */
/* Blue #1E1CD8 Red #E91C23 Yellow #EAA206 Crimson #ac0611 */
/* Light Blue #cdedee Mint Blue #ade4ee Sand #e5d5cc */
/* Blue #4592af Light Purple #f4e6f0 Grassy Green #afa75f */
/* BV Green #009D48 BV Orange #F25B1D */

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow_italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow_bolditalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

:root {
  --text-color: #1e1cd8;
  --background-color: #f3f3f3;
}

html {
  font-size: clamp(14px, 1.5vw, 24px);
}

/* GENERAL STYLES */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  color: var(--text-color);
  font-family: "Arial Narrow", sans-serif;
}

::selection {
  color: var(--background-color);
  background: var(--text-color);
}

a,
.link-button {
  display: inline-block;
  text-decoration: underline;
  -webkit-text-decoration: underline;
  text-decoration-thickness: 1px;
  -webkit-text-decoration-thickness: 1px;
  text-underline-offset: 0.15rem;
  -webkit-text-underline-offset: 0.15rem;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
  font: inherit;
}

a:not(:last-of-type),
.link-button:not(:last-of-type) {
  margin-right: 0.5rem;
}

@media (hover: hover) {
  a:hover,
  .link-button:hover {
    text-decoration: none;
  }
}

button {
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 1.5rem 0;
}

html,
body {
  height: 100svh;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: var(--text-color);
}

main {
  width: 100%;
  height: 100svh;
  overflow: hidden;
  position: relative;
}

section:not(:first-of-type) {
  margin-top: 2rem;
}

/* DETAILS SUMMARY STYLES */

.details-group {
  margin: 0.5rem 0;
  border-top: 1px solid var(--text-color);
}

details {
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--text-color);
}

details .details-description {
  margin: 0.2rem 0;
}

details summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
  outline: none;
  gap: 0.2rem;
}

details summary > :last-child {
  flex-shrink: 0;
}

@media (hover: hover) {
  details summary:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15rem;
  }
}

details summary::-webkit-details-marker {
  display: none;
}

/* MARKDOWN STYLES */

blockquote {
  border-left: 0.3rem solid var(--text-color);
  padding: 0 0.6rem;
  margin: 1.2rem;
}

sup {
  vertical-align: top;
  font-size: 0.9rem;
}

sup a.footnote-ref {
  pointer-events: none;
  font-size: 0.9rem;
  margin-left: 0.12rem;
}

.footnotes {
  font-size: 0.8rem;
}

.footnotes hr {
  border: none;
}

.footnotes ol {
  padding-left: 1.2rem;
}

.footnotes ol li p {
  margin-bottom: 0;
}

.footnotes a {
  padding-left: 0.3rem;
}

article h1 {
  margin: 0.5rem 0 1rem 0;
}

article .navigation {
  width: 100%;
  display: flex;
}

article .navigation div:first-child {
  flex-basis: 100px;
  flex-grow: 0;
  flex-shrink: 0;
}

article .content {
  line-height: 1.3;
}

article .content a {
  display: inline;
}

article .content img {
  max-width: 100%;
  height: auto;
}

article .options {
  display: flex;
  gap: 0.5rem;
}

/* FUNCTIONAL STYLES */

::-webkit-scrollbar {
  display: none;
}

.bold {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.title {
  font-size: 4rem;
  letter-spacing: -0.2rem;
  line-height: 0.9;
  font-weight: 500;
}

.subtitle {
  font-size: 2.5rem;
  letter-spacing: -0.1rem;
  line-height: 0.9;
}

.subsubtitle {
  font-size: 1.5rem;
  letter-spacing: -0.01rem;
}

.pill {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--text-color);
  border-radius: 0;
  width: fit-content;
  font-size: 1rem;
  text-decoration: none;
}

.pill > * {
  text-decoration: none;
}

@media (hover: hover) {
  .pill:hover,
  .pill:hover * {
    color: var(--background-color);
    background-color: var(--text-color);
  }

  .pill:hover path {
    fill: var(--background-color) !important;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropdown-header {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  min-width: 6rem;
  justify-content: space-between;
  gap: 0.6rem;
}

.dropdown .dropdown-options {
  z-index: 1000;
  display: none;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0.3rem 0 0 0;
  position: absolute;
  border: 1px solid var(--text-color);
  background-color: var(--background-color);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.dropdown .dropdown-options li {
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-bottom: 1px solid var(--text-color);
}

.dropdown .dropdown-options li:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .dropdown .dropdown-options li:hover {
    background-color: var(--text-color);
    color: var(--background-color);
  }
}

.dropdown.is-open .dropdown-options {
  display: block;
}

/* LAYOUT STYLES */

.background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
}

.canvas-container {
  width: 100%;
  height: 100%;
  background: var(--background-color);
  pointer-events: none;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.page-content {
  position: relative;
  max-width: 700px;
  height: calc(100vh - 4rem);
  height: calc(100dvh - 4rem);
  margin: 2rem auto 2rem;
  padding: 0.5rem;
  background: var(--background-color);
  border: 1px solid var(--text-color);
  overflow-y: auto;
  z-index: 50;
}

@media (max-width: 700px) {
  .page-content {
    border-left: none;
    border-right: none;
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.bottom-nav .bottom-greeting {
  font-size: 0.75rem;
}

.ambient-content {
  position: absolute;
  max-width: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

/* INTEREST MAP STYLES */

.interest-map {
  position: relative;
  width: 100%;
  min-height: 400px;
  margin: 0 auto;
}

.interest-map__axis-y {
  position: absolute;
  top: 3rem;
  bottom: 3rem;
  border-left: 1px solid var(--text-color);
}

.interest-map__axis-x {
  position: absolute;
  left: 2rem;
  right: 2rem;
  border-top: 1px solid var(--text-color);
}

.interest-map__label {
  position: absolute;
  font-weight: bold;
  cursor: default;
}

.interest-map__label--top {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.interest-map__label--bottom {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.interest-map__label--left {
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-lr;
}

.interest-map__label--right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-lr;
}

.interest-map__point {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: min(1rem, 20px);
  white-space: nowrap;
  cursor: default;
}

.interest-map__point[href] {
  cursor: pointer;
}
