/* h2o.css */
/* Created by Emre */
/* Distilled version of the water.css classless css library */
/* Also inspired by many blog posts, check https://emre.ca/devlog/120-bytes-of-css */

:root {
  color-scheme: light dark;
  font-family: system-ui;
  max-width: 72ch;
  padding: 2ch;
  margin: auto;
}

img {
  max-width: 100%;
}

a {
  color: #6161ff;
}

pre,
button,
table,
details {
  border-radius: 1ch;
}

summary,
button {
  cursor: pointer;
}

aside {
  display: flex;
  flex-wrap: wrap;
  gap: 1ch;
}

pre {
  white-space: pre-wrap;
  padding: 2ch;
}

figure,
blockquote,
details {
  margin: 1ch 0;
}

details {
  flex-direction: column;
  align-items: flex-start;
  background: ButtonFace;
  color: ButtonText;
  padding: 1ch 1ch 0;
  overflow: hidden;
}

details:hover {
  text-decoration: none;
}

details[open] summary,
table {
  margin-bottom: 1ch;
}

details[open] summary {
  border-bottom: Canvas 2px solid;
}

details > :last-child {
  margin-bottom: 0;
}

details[open],
summary {
  padding: 1ch;
}

button {
  border: none;
}

summary {
  margin: -1ch -1ch 0;
  background: ButtonFace;
}

table {
  border: 2px solid ButtonFace;
  width: 100%;
  table-layout: fixed;
}

button,
table {
  padding: 1ch;
}

details a {
  color: #000;
}
