:root {
  --bg: #bae4ff;
  --mute: #009dff;
  --post-bg: #aadeff;
  --b1: #0044ff;
  --b2: #0044ff;
  --b3: #0044ff;
  --b4: #000000;
  --fg: #000000;
  --button: #aadeff;
  --g1: #078d4f;
  --g2: #1aa755;
  --s1: #eef3ff;
  --s2: #008cff;
  --bf: #fce0ff;
  --link-focus: #0044ff;
}

[data-theme="dark"] {
  --bg: #020f24;
  --b1: #5cc3ff;
  --b2: #5cc3ff;
  --b3: #5cc3ff;
  --b4: #5cc3ff;
  --fg: #5cc3ff;
  --mute: #00466e;
  --button: #0D1733;
  --g1: #0085a7;
  --g2: #003b6b;
  --s1: #0073a8;
  --s2: #001938;
  --bf: #74ffca;
  --post-bg: #03142e;
  --link-focus: #cbffe7;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Fira Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a, a:focus, a:active, a:visited {
  color: var(--link-focus);
  outline: none;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.weeeeeee {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3/1;
  height: 200px;
  margin: 40px auto 17px auto;
  display: flex;
  background:
    radial-gradient(ellipse 137% 77% at -3% 137%, var(--g2) 77%, var(--g1) 97%, transparent 100%),
    linear-gradient(11deg, var(--s1) 0%, var(--s2) 77%);
  background-size: 100% 100%;
}

.weeeeeee-butterfly {
  width: 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.weeeeeee-butterfly pre {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-size: 3px;
  font-weight: bold;
  color: var(--bf);
  text-align: left;
  overflow: hidden;
  white-space: pre;
}

.woof {
  width: 100%;
  max-width: 600px;
  margin: auto auto 17px auto;
  text-align: left;
  color: var(--b1);
}

.poop {
  font-size: 17px;
  font-family: "Kaisei HarunoUmi", serif;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 7px auto;
  text-align: left;
  color: var(--b1);
  font-weight: bold;
}

.post {
  width: 100%;
  max-width: 600px;
  margin: 17px auto auto auto;
  text-align: left;
  border-top: 1px solid var(--mute);
  padding: 7px 0;
  background-color: var(--post-bg);
}

.post > * {
  padding-left: 7px;
  padding-right: 7px;
}

.post-date {
  color: var(--b4);
}

.post ul {
  list-style: none;
  padding-left: 10;
 }

.post ul li {
  position: relative;
  padding-left: 0px;
}

.post ul li::before {
  content: ">";
  /* position: absolute; */
  left: 0;
  color: var(--fg);
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 7px 0;
}

.image-grid-item img {
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  width: 100%;
}

.sort-dropdown {
  width: 100%;
  max-width: 600px;
  margin: auto auto 37px auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sort-button, .theme-toggle {
  background: var(--button);
  color: var(--b2);
  border: 1px solid var(--b3);
  font-size: 14px;
  padding: 7px;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 23px;
}

.sort-button svg, .theme-toggle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.sort-button.asc svg {
  transform: rotate(180deg);
}

@media (max-width: 700px) {
  body {
    padding: 17px;
  }
  .post, .woof, .sort-dropdown, .weeeeeee {
    max-width: 100vw;
  }
  .weeeeeee {
    height: 17vw;
    margin: 7px auto;
  }
  .weeeeeee-butterfly pre {
    font-size: .3vw;
  }
  .image-grid {
    grid-template-columns: 1fr 1fr;
  }
  .image-grid-item img {
    max-width: 100%;
  }
}

