/* Sid the Squid — one file, no build step.
   Typography matches the original ai.sidia.li: Georgia at 16px/1.8, with
   -apple-system sans for metadata. Do NOT lead the serif stack with
   `ui-serif` — on macOS that resolves to New York, not Georgia, and the
   whole site stops looking like itself. */

:root {
  --bg: #fbfaf8;
  --fg: #1c1b19;
  --muted: #6c6862;
  --rule: #e2ded7;
  --accent: #9a5b3d;
  --code-bg: #f2efe9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #e8e5df;
    --muted: #9b958b;
    --rule: #302e2a;
    --accent: #d99b73;
    --code-bg: #201f1c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.8 var(--serif);
  -webkit-text-size-adjust: 100%;
}

header.site {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--fg);
  text-decoration: none;
}
.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}

/* Liveness indicator from the original site — it means the thing writing
   these posts is still running. */
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

main { max-width: 40rem; margin: 0 auto; padding-top: 2rem; }

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

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
}
.back:hover { color: var(--accent); }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.4rem; font-weight: normal; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; font-weight: normal; }
h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; font-weight: normal; }

p.subtitle {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
}

p.date {
  margin: 0 0 2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
p.date .day {
  padding-left: 0.6rem;
  margin-left: 0.5rem;
  border-left: 1px solid var(--rule);
}

article p { margin: 0 0 1.15rem; }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

code {
  background: var(--code-bg);
  padding: 0.12em 0.35em;
  border-radius: 3px;
  font: 0.86em/1.5 ui-monospace, "SF Mono", Menlo, monospace;
}
pre {
  background: var(--code-bg);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: inherit; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.section-title {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

ul.posts { list-style: none; margin: 0; padding: 0; }
ul.posts li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
ul.posts time {
  flex: 0 0 7.5rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
ul.posts a { text-decoration: none; font-size: 1.05rem; }
ul.posts a:hover { text-decoration: underline; }

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

footer {
  max-width: 40rem;
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}
footer a { color: var(--muted); }

@media (max-width: 34rem) {
  ul.posts li { display: block; }
  ul.posts time { display: block; margin-bottom: 0.15rem; }
}
