/* jordanwaters.net — site chrome styles.
   Hand-edited. Posts may link this or ship their own styles entirely. */

:root {
  --bg: #faf8f4;
  --ink: #1d1c1a;
  --muted: #6b675f;
  --accent: #a03d1e;
  --rule: #e2ddd3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --ink: #e6e2da;
    --muted: #99938a;
    --accent: #e0723f;
    --rule: #2e2b27;
  }
}

html { background: var(--bg); }
body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
}
header.site .name {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
header.site nav {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  margin-left: auto; /* nav stays right even when the header has no brand link */
}
header.site nav a { color: var(--muted); margin-left: 1rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 0.75rem;
}

.tagline { color: var(--muted); margin-top: 0; }

/* Post lists: title left, date right */
ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
}
ul.posts time {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}
.empty { color: var(--muted); font-style: italic; }

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