/* bongo.sh — accessible version */

:root {
  --bg:     #100c10;
  --fg:     #eeddea;
  --accent: #ffb5cf;
  --dim:    #a08890;
  --border: #2e1828;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:     #fef7f9;
    --fg:     #1a0c14;
    --accent: #cc3c68;
    --dim:    #907080;
    --border: #e0ccd4;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Noto Mono','Cascadia Code','JetBrains Mono','Fira Code',
               'Consolas','Menlo','Courier New',monospace;
  line-height: 1.7;
  padding: 0 1.2em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 4em;
}

.site-header { padding-top: 2em; }

.site-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}

.site-brand {
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
}

.site-brand:hover { color: var(--accent); text-decoration: none; }

.site-nav {
  display: flex;
  gap: 1.5em;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.site-nav a { color: var(--dim); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }
.site-nav a[aria-current] { color: var(--fg); }

main { padding-top: 1.8em; }

h1 {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 1.4em;
}

.readme-body { font-size: 0.9rem; line-height: 1.85; }
.readme-body p { margin-bottom: 0.6em; }

.readme-nav {
  margin-top: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-size: 0.88rem;
}

.journal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.journal-item {
  display: grid;
  grid-template-columns: 7em 1fr;
  column-gap: 0.8em;
}

.journal-item.no-date { grid-template-columns: 1fr; }

.journal-item time {
  color: var(--dim);
  font-size: 0.75rem;
  padding-top: 0.12em;
}

.journal-item a {
  color: var(--fg);
  font-weight: bold;
  font-size: 0.9rem;
}

.journal-item a:hover { color: var(--accent); text-decoration: none; }

.journal-summary {
  grid-column: 2;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 0.2em;
}

.feed-meta {
  color: var(--dim);
  font-size: 0.68rem;
  margin-top: 1.4em;
}

.feed-meta a { color: var(--dim); }
.feed-meta a:hover { color: var(--accent); }

.entry-byline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 0.2em;
}

.entry-byline time { color: var(--dim); font-size: 0.78rem; }

.byline-actions { display: flex; align-items: baseline; gap: 0.8em; }
.back-link { font-size: 0.78rem; color: var(--dim); }
.back-link:hover { color: var(--accent); text-decoration: none; }
.permalink-link { font-size: 0.78rem; color: var(--dim); }
.permalink-link:hover { color: var(--accent); text-decoration: none; }

.entry-content {
  font-size: 0.88rem;
  line-height: 1.85;
}

.entry-content h1,.entry-content h2,
.entry-content h3,.entry-content h4 {
  font-weight: bold;
  margin: 1.2em 0 0.4em;
}
.entry-content h1::before { content: '# ';    color: var(--dim); font-weight: normal; }
.entry-content h2::before { content: '## ';   color: var(--dim); font-weight: normal; }
.entry-content h3::before { content: '### ';  color: var(--dim); font-weight: normal; }
.entry-content h4::before { content: '#### '; color: var(--dim); font-weight: normal; }

.entry-content p { margin-bottom: 0.8em; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content a          { color: var(--accent); }
.entry-content a:hover    { background: rgba(204, 60, 104, 0.12); border-radius: 2px; padding: 0 0.1em; text-decoration: none; }
.entry-content strong     { color: var(--accent); }
.entry-content em         { color: var(--dim); font-style: italic; }

.entry-content img {
  max-width: 100%;
  display: block;
  margin: 1em 0;
}

.entry-content code {
  font-size: 0.9em;
  background: rgba(128,128,128,0.1);
  padding: 0.05em 0.3em;
  border-radius: 2px;
}

.entry-content pre {
  background: rgba(128,128,128,0.06);
  border: 1px solid var(--border);
  padding: 0.8em 1em;
  overflow-x: auto;
  margin: 0.8em 0;
}

.entry-content pre code { background: none; padding: 0; }
.entry-content ul,.entry-content ol { margin: 0.4em 0 0.8em 1.5em; }
.entry-content li { margin-bottom: 0.2em; }
.entry-content li ul,.entry-content li ol { margin-top: 0.2em; margin-bottom: 0; }

.entry-content blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1em;
  color: var(--dim);
  margin: 0.8em 0;
  font-style: italic;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.2em 0;
}

.entry-content mark {
  background: rgba(204, 60, 104, 0.15);
  color: inherit;
  border-radius: 2px;
  padding: 0 0.1em;
}

.entry-content del {
  color: var(--dim);
  text-decoration: line-through;
}

.entry-content .footnotes { margin-top: 2em; }
.fn-list { list-style: decimal; padding-left: 1.5em; font-size: 0.82rem; color: var(--dim); }
.fn-list li { margin-bottom: 0.35em; }
.fn-ref  { color: var(--accent); font-size: 0.72em; vertical-align: super; line-height: 0; text-decoration: none; }
.fn-ref:hover { text-decoration: underline; }
.fn-back { color: var(--dim); text-decoration: none; margin-left: 0.25em; }
.fn-back:hover { color: var(--accent); }

.page-body { font-size: 0.9rem; line-height: 1.85; }
.page-body p { margin-bottom: 0.7em; }

.rss-line { font-size: 0.72rem; color: var(--dim); margin-bottom: 1.2em; }
.rss-line a { color: var(--dim); }
.rss-line a:hover { color: var(--accent); }

@media (max-width: 520px) {
  html { font-size: 15px; }
  .site-nav { gap: 1em; }
  .journal-item { grid-template-columns: 1fr; }
  .journal-summary { grid-column: 1; }
}
