:root {
  --bg: #fdfdfb;
  --fg: #1c1b19;
  --muted: #6b6862;
  --accent: #3a6f53;
  --rule: #e6e3dc;
  --code-bg: #f1efe9;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151a;
    --fg: #e9e7e2;
    --muted: #9a958c;
    --accent: #7fc59c;
    --rule: #2c2a30;
    --code-bg: #232128;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
}

nav a:hover {
  color: var(--accent);
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
  min-height: 60vh;
}

a {
  color: var(--accent);
}

h1 {
  line-height: 1.2;
  margin-top: 0;
}

.tagline {
  color: var(--muted);
  font-style: italic;
  margin-top: -0.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.note-list,
.link-list {
  list-style: none;
  padding: 0;
}

.note-list li,
.link-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.note-link {
  font-size: 1.15rem;
  text-decoration: none;
}

.note-link:hover {
  text-decoration: underline;
}

.note-date {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.note-summary {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.note-perma {
  font-size: 0.82rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.tags {
  margin-top: 2rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
}

.tag {
  color: var(--muted);
  margin-right: 0.4rem;
}

code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.88em;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.sky-now {
  margin-bottom: 0.4rem;
}

.sky-now-val {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.sky-now-val::after {
  content: var(--sky-label, "—");
}

body,
a,
.site-header,
.site-footer,
.note-list li,
.link-list li,
code,
pre,
blockquote {
  transition:
    background-color 1.2s ease,
    color 1.2s ease,
    border-color 1.2s ease;
}
