@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;

  --background: #111111;
  --text: #dddddd;
  --muted: #999999;
  --link: #dddddd;
  --link-hover: #ffffff;
  --selection: #444444;
  --border: #555555;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  max-width: 700px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1rem;

  background: var(--background);
  color: var(--text);

  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

main {
  width: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

h1 {
  font-size: 1.2rem;
}

h2 {
  font-size: 1rem;
}

h3 {
  font-size: 0.95rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  margin-top: 2rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

article {
  margin: 2rem 0;
}

section {
  margin: 2rem 0;
}

small,
.entry-date {
  color: var(--muted);
  font-size: 0.8rem;
}

label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

input,
textarea,
select,
button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.65rem;

  background: var(--background);
  color: var(--text);

  font: inherit;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

button {
  width: auto;
  margin-top: 1rem;
  cursor: pointer;
}

button:hover {
  background: #333333;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.image-entry {
  margin: 2rem 0 3rem;
}

.image-entry img {
  margin-top: 0;
}

.image-description {
  margin-top: 0.75rem;
  color: var(--muted);
}

.journal-entry {
  margin: 2rem 0 3rem;
}

.journal-entry h2 {
  margin-bottom: 0.25rem;
}

.entry-body {
  white-space: normal;
}

.admin-item {
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333333;
}

.admin-item p {
  margin-bottom: 0.25rem;
}

.admin-item small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-item button {
  margin-top: 0.75rem;
  color: #ff9999;
}

::selection {
  background: var(--selection);
  color: #ffffff;
}

@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem;
    font-size: 14px;
  }
}
