/*
 * Placeholder stylesheet: neutral, token-driven, meant to be replaced by the real design.
 * Templates rely only on the class names used here; restyle freely.
 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --rule: #e4e4e7;
  --accent: #2f5bd3;
  --code-bg: #f4f4f5;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 42rem;
  --space: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --fg: #e7e7ea;
    --muted: #9a9aa2;
    --rule: #2a2a30;
    --accent: #8aa8ff;
    --code-bg: #1d1d22;
  }
}

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

body {
  margin: 0 auto;
  max-width: var(--measure);
  padding: calc(var(--space) * 2) var(--space);
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 var(--font-body);
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space);
  margin-bottom: calc(var(--space) * 3);
}

.site-title {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.site-header ul,
.tags,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space);
  margin: 0;
  padding: 0;
  list-style: none;
}

[aria-current="page"] {
  color: var(--fg);
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

.meta,
time,
.count,
.status,
.empty {
  color: var(--muted);
  font-size: 0.9375rem;
}

.post-list,
.project-list,
.tag-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li,
.project-list li {
  margin-bottom: calc(var(--space) * 1.25);
}

.post-list time,
.project-list .status {
  display: block;
}

.post-list p,
.project-list p {
  margin: 0.25rem 0 0;
}

.prose img {
  max-width: 100%;
  height: auto;
}

pre,
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: var(--space);
  background: var(--code-bg);
  border-radius: 4px;
}

.site-footer {
  margin-top: calc(var(--space) * 4);
  padding-top: var(--space);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
