body[a="dark"] {
  filter: invert(1); }
  body[a="dark"] img {
    filter: invert(1); }
    body[a="dark"] img.ioda {
      filter: invert(0); }
  body[a="dark"] .emoji {
    filter: invert(1); }
  body[a="dark"] iframe {
    filter: invert(1); }


  body[a="dark"] a {
    filter: invert(1); }

@media (prefers-color-scheme: dark) {
  body[a="auto"] {
    filter: invert(1); }
    body[a="auto"] img {
      filter: invert(1); }
      body[a="auto"] img.ioda {
        filter: invert(0); }
    body[a="auto"] .emoji {
      filter: invert(1); }
    body[a="auto"] iframe {
      filter: invert(1); } }
    html, body {
      background: white; }

html {
  height: 100%;
  scroll-behavior: smooth; }

body {
  color: black;
  font-family: monospace;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  min-height: 100%;
  overflow-wrap: break-word;}

.post-meta {
  text-align: right; }
}

h2, h3, h4, h5, h6 {
  margin-top: 3rem; }

hr {
  margin: 2rem 0; }

p {
  margin: 1rem 0; }

li {
  margin: 0.4rem 0; }

*:target {
  background: yellow; }

.w {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem; }

hr {
  text-align: center;
  border: 0; }
  hr:before {
    content: "/////"; }
  hr:after {
    content: attr(data-content) "/////"; }

table {
  width: 100%; }

table, th, td {
  border: thin solid black;
  border-collapse: collapse;
  padding: 0.4rem; }

code {
  color: white;
  background: black; }

div.highlighter-rouge code {
  display: block;
  overflow-x: auto;
  white-space: pre-wrap;
  padding: 1rem; }

blockquote {
  font-style: italic;
  border: thin solid black;
  padding: 1rem; }
  blockquote p {
    margin: 0; }

img {
  max-width: 100%;
  display: block;
  margin: 0 auto; }

a {
  color: #1976D2;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:visited {
  color: #A94DC8; /* also passes on white + black */
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Caffeine Calculator */
.caf-wrap { max-width: 460px; }

.caf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.caf-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.caf-field { margin-bottom: 1rem; }

.caf-input {
  width: 100%;
  border: thin solid black;
  padding: 0.4rem 0.5rem;
  font-family: monospace;
  font-size: 1rem;
  background: white;
  color: black;
  appearance: none;
  -webkit-appearance: none;
}

.caf-row   { display: grid; grid-template-columns: 1fr 1fr;     gap: 0.5rem; }
.caf-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }

.caf-btn {
  width: 100%;
  border: thin solid black;
  background: black;
  color: white;
  font-family: monospace;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-bottom: 0.4rem;
  display: block;
}
.caf-btn:hover { background: white; color: black; }

.caf-btn-outline { background: white; color: black; }
.caf-btn-outline:hover { background: black; color: white; }

.caf-btn-sm {
  border: thin solid black;
  background: white;
  color: black;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
}
.caf-btn-sm:hover { background: black; color: white; }

.caf-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: thin solid black;
  margin-bottom: 1rem;
}
.caf-mode-btn {
  border: none;
  border-right: thin solid black;
  background: white;
  color: black;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 0.4rem;
  cursor: pointer;
}
.caf-mode-btn:last-child { border-right: none; }
.caf-mode-btn.active { background: black; color: white; }

.caf-half-row { display: flex; align-items: center; gap: 0.75rem; }
.caf-range { flex: 1; accent-color: black; cursor: pointer; }
.caf-half-val { font-weight: bold; min-width: 2.5rem; text-align: right; }

.caf-dose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: thin solid black;
  padding: 0.35rem 0.6rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.caf-dose small { display: block; font-size: 0.75rem; opacity: 0.6; }
.caf-dose-rm {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-family: monospace;
  padding: 0 0.2rem;
  line-height: 1;
}
.caf-dose-rm:hover { color: red; }

.caf-result {
  border: thin solid black;
  padding: 1rem 1.25rem;
  text-align: center;
  margin-top: 0.5rem;
  display: none;
}
.caf-result.visible { display: block; }

.caf-result-mg { font-size: 2.5rem; font-weight: bold; line-height: 1; }
.caf-result-mg small { font-size: 1rem; font-weight: normal; }
.caf-result-meta { font-size: 0.82rem; margin-top: 0.4rem; opacity: 0.7; }

.caf-bar-wrap { margin-top: 0.75rem; border: thin solid black; height: 8px; }
.caf-bar { height: 100%; background: black; transition: width 0.4s ease; }

.caf-hidden { display: none; }

.caf-note { font-size: 0.75rem; margin-top: 1rem; opacity: 0.5; }

/*# sourceMappingURL=main.css.map */
