:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #111;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 25vh;
}

@media (min-width: 700px) {
  body {
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 0;
  }
}

html {
  overflow: hidden;
}

@media (min-width: 700px) {
  html {
    overflow: visible;
  }
}

.bg {
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-1 {
  left: -25vw;
  right: -50vw;
  bottom: -28vh;
  aspect-ratio: 1536/1024;
}

.bg-2 {
  width: 180vw;
  aspect-ratio: 1536/1024;
  left: -60vw;
  bottom: -22vh;
}

@media (min-width: 1280px) {
  .bg-1 {
    width: min(1109px, 103vh);
    height: min(739px, 68vh);
    right: max(-500px, -46vh);
    bottom: max(-156px, -14.5vh);
    left: auto;
    aspect-ratio: auto;
  }

  .bg-2 {
    width: min(1109px, 103vh);
    height: min(739px, 68vh);
    left: max(-609px, -56vh);
    bottom: max(-175px, -16vh);
    aspect-ratio: auto;
  }
}

main {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 100%;
  max-width: 40em;
  margin: 0 auto;
  text-align: left;
  font-size: 14px;
  line-height: 1.3;
}

@media (min-width: 700px) {
  main {
    padding: 80px 43px;
    font-size: 18px;
    line-height: 1.25;
  }
}

@media (min-width: 1280px) {
  main {
    font-size: 20px;
  }
}

p,
.para {
  margin: 0;
  word-break: break-word;
}

:is(p, .para)+:is(p, .para) {
  margin-top: 0.9em;
}

@media (min-width: 700px) {
  :is(p, .para)+:is(p, .para) {
    margin-top: 1.25em;
  }
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  opacity: 0.7;
}


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

.papers>summary {
  list-style: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  display: inline;
}

.papers>summary::-webkit-details-marker {
  display: none;
}

.papers>summary::marker {
  content: "";
}

.papers[open]>summary {
  opacity: 0.7;
}

.papers-menu {
  position: absolute;
  top: 1.6em;
  left: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.papers-menu a {
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95em;
}

.papers-menu a:hover {
  background: #2a2a2a;
  opacity: 1;
}


.links {
  margin-top: 1.8em;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (min-width: 700px) {
  .links {
    margin-top: 2.2em;
    gap: 22px;
  }
}

h1 {
  font-weight: normal;
  font-size: 1.6em;
  margin: 0 0 0.4em;
}

.nav {
  margin-bottom: 1.5em;
}

.nav a {
  text-decoration: none;
  margin-right: 1.2em;
}

.nav a.on {
  text-decoration: underline;
}

.inspo {
  margin-top: 2.5em;
  font-size: 0.75em;
  opacity: 0.5;
}

@media (min-width: 700px) {
  .inspo {
    margin-top: 1.5em;
  }
}

.webring {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  zoom: 0.45;
  z-index: 2;
  pointer-events: auto;
}

@media (min-width: 1280px) {
  .webring {
    position: fixed;
    left: 50%;
    bottom: 110px;
    margin-top: 0;
    display: block;
    zoom: 1;
    transform: translateX(-50%) scale(0.55);
    transform-origin: bottom center;
  }
}

.muted {
  opacity: 0.5;
}

.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.posts a {
  text-decoration: none;
}

.posts img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  margin-bottom: 0.4em;
}

.album-cover {
  display: inline-block;
  height: 1em;
  width: 1em;
  vertical-align: -0.15em;
  margin-left: 0.4em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  object-fit: cover;
}

.play-btn {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 0.4em;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.play-btn:hover {
  opacity: 0.7;
}
