/* Default colors */
:root {
  --text-color: #000000;
  --bkg-color: #ffffff;
  /*cursor: url('/resources/images/cursor/20px/black-cursor.svg'), url('/resources/images/cursor/20px/black-cursor.png'), crosshair;*/
  cursor: none;
}

/* Dark theme colors */
.dark-theme {
  --text-color: #ffffff;
  --bkg-color: #000000;
  /*cursor: url('/resources/images/cursor/20px/white-cursor.svg'), url('/resources/images/cursor/20px/white-cursor.png'), crosshair;*/
}

* {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available; /* Mobile viewport iOS bug fix #1 */
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bkg-color);
  color: var(--text-color);
  line-height: 1.2;
  pointer-events: all;
}

html {
  height: -webkit-fill-available; /* Mobile viewport iOS bug fix #2 */
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
}

.cursor {
  position: absolute;
  top: -1rem;
  left: -1rem;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
}

p {
  margin: 0;
}

span {
  font-weight: inherit;
}

a {
  /*cursor: cell;*/
  cursor: none;
}

a.heading-link {
  color: var(--text-color);
  text-decoration: none;
}

a.heading-link:hover {
  font-style: italic;
}

a.inline-link {
  color: var(--text-color);
  font-weight: 600;
}

a.inline-link:hover {
  text-decoration: none;
  font-style: italic;
}

.link-button:hover {
  font-style: italic;
}

button {
  align-items: normal;
  background: var(--bkg-color);
  border-style: none;
  box-sizing: content-box;
  display: inline;
  font: inherit;
  color: var(--text-color);
  height: auto;
  min-height: 1.2em;
  padding: 0;
  padding-right: 0.2em;
  perspective-origin: 0 0;
  text-align: start;
  transform-origin: 0 0;
  width: auto;
  -webkit-logical-height: 1em; /* Chrome ignores auto, so this sets correct height  */
  -webkit-logical-width: auto; /* Chrome ignores auto, but here for completeness */
  cursor: inherit;
}

button:hover {
  font-style: italic;
}

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

.dotted::before {
  transform: translateX(-50%);
  border-radius: 100%;
  position: absolute;
  background: var(--text-color);
  top: 1.2rem;
  height: 0.25rem;
  width: 0.25rem;
  content: '';
  left: 50%;
}

/* Mozilla uses a pseudo-element to show focus on buttons, but anchors are highlighted via the focus pseudo-class.*/
@supports (-moz-appearance:none) { /* Mozilla-only */
  button::-moz-focus-inner { /* reset any predefined properties */
    border: none;
    padding: 0;
  }
  button:focus { /* add outline to focus pseudo-class */
    outline-style: dotted;
    outline-width: 1px;
  }
}

.container {
  margin: 0.6em;
  padding: 0.2em 0.4em;
}

.container.header {
  margin-bottom: 0;
}

.columns {
  column-count: 2;
}

.container.column {
  break-inside: avoid-column;
}

.column.break {
  break-before: column;
}

.text {
  font-weight: 600;
}

@media only screen and (max-width: 720px) {
  .columns {
    column-count: 1;
  }
}

@media only screen and (max-width: 320px) {
  * {
    font-size: 16px;
  }
  button {
    font-size: 16px;
  }
}

@media only screen and (min-width: 1200px) {
  * {
    font-size: 22px;
  }
  button {
    font-size: 22px;
  }
}

@media only screen and (min-width: 1600px) {
  * {
    font-size: 24px;
  }
  button {
    font-size: 24px;
  }
}

@media only screen and (min-width: 2400px) {
  * {
    font-size: 28px;
  }
  button {
    font-size: 28px;
  }
}

@media only screen and (min-width: 3000px) {
  * {
    font-size: 32px;
  }
  button {
    font-size: 32px;
  }
}

::selection { /* WebKit & Blink Browsers */
  background: var(--text-color);
  color: var(--bkg-color);
}

::-moz-selection { /* Legacy, Gecko Browsers */
  background: var(--text-color);
  color: var(--bkg-color);
}
