:root {
  --bg: #1f1e1d;
  --fg: #f0eee6;
  --muted: #a8a49a;
  --sun: #f2b05e;
  --mtn: #a99bc4;
  --cactus: #8fb58a;
  --ground: #c9825a;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f0eee6;
  --fg: #1f1e1d;
  --muted: #6b675f;
  --sun: #c27a12;
  --mtn: #7a64a3;
  --cactus: #4f7d4a;
  --ground: #a65a32;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f0eee6;
    --fg: #1f1e1d;
    --muted: #6b675f;
    --sun: #c27a12;
    --mtn: #7a64a3;
    --cactus: #4f7d4a;
    --ground: #a65a32;
    color-scheme: light;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 19px/1.6 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 29rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

h1 { margin: 0; font-size: 1.45rem; font-weight: 600; }
h2 { margin: 2rem 0 0.5rem; font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
a:hover { color: var(--muted); }

ul { margin: 0; padding-left: 1rem; }
li { margin: 0.4rem 0; }
li::marker { color: var(--muted); }

/* light/dark switch, modeled on a small pill toggle */
.toggle {
  position: relative;
  width: 30px;
  height: 16px;
  padding: 0;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  cursor: pointer;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 1.5px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  box-sizing: border-box;
}
:root[data-theme="light"] .toggle { background: transparent; }
:root[data-theme="light"] .toggle::after { right: auto; left: 2px; border-color: var(--fg); }
.toggle:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }

/* ascii tucson */
.art {
  margin: 0 0 1.75rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: min(14px, calc((100vw - 2rem) / 31.5));
  line-height: 1.25;
  overflow: hidden;
}
.art .s { color: var(--sun); font-weight: 700; }
.art .st { color: var(--muted); animation: twinkle 4s ease-in-out infinite alternate; }
.art .m { color: var(--mtn); }
.art .c { color: var(--cactus); font-weight: 700; }
.art .g { color: var(--ground); }
.art .l { color: var(--muted); }

@keyframes twinkle { from { opacity: 0.3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .art .st { animation: none; } }

.when { color: var(--muted); white-space: nowrap; }
.exp { padding-left: 0; list-style: none; }
.exp li { display: flex; justify-content: space-between; gap: 1rem; }

/* mekat launch banner: a small ascii meerkat beside the news */
.mekat {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.75rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--muted);
  border-radius: 10px;
}
.mekat h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.mekat p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.mekat .dl { margin: 0; font-weight: 600; }
.art.meerkat { flex: none; margin: 0; font-size: 13px; line-height: 1.2; }
.art .f { color: var(--ground); font-weight: 700; }
.art .e { color: var(--fg); font-weight: 700; }
@media (max-width: 26rem) { .art.meerkat { font-size: 11px; } }
