/* Jacob Reinhold — minimal site styles */

:root {
  --text: #1a1a1a;
  --bg: #ffffff;
  --muted: #6b6b6b;
  --link: #1456b8;
  --border: #e3e3e3;
  --code-bg: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e2e2e2;
    --bg: #17191c;
    --muted: #9a9a9a;
    --link: #8ab4f8;
    --border: #33373d;
    --code-bg: #23262b;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ---- header / nav ---- */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header nav {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.site-title {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}
.nav-links a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--link);
}

/* ---- typography ---- */
h1,
h2,
h3,
h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.3;
  margin: 1.8em 0 0.6em;
}
article h1 {
  font-size: 1.75rem;
  margin-top: 0.5em;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.15rem;
}
h4 {
  font-size: 1rem;
}

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

.post-meta {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  margin-top: -0.4em;
}

/* ---- home page ---- */
.intro {
  text-align: center;
  margin: 2.5rem 0 3rem;
}
.intro h1 {
  margin: 0.4em 0 0.1em;
}
.profile {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
}
.tagline {
  color: var(--muted);
  margin: 0;
}

.post-list {
  list-style: none;
  padding: 0;
}
.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child {
  border-bottom: none;
}
.post-list a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.post-list a:hover {
  text-decoration: underline;
}
.post-date {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.post-excerpt {
  margin: 0.3em 0 0;
  font-size: 0.95rem;
}

/* ---- article elements ---- */
article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
figure {
  margin: 2em 0;
}
figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.6em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

.update-note {
  background: var(--code-bg);
  border-left: 3px solid var(--muted);
  border-radius: 0 6px 6px 0;
  padding: 0.25em 1em;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
pre {
  background: var(--code-bg);
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
  line-height: 1.45;
}
pre code {
  background: none;
  padding: 0;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  padding: 1.5rem 1rem;
}
.site-footer a {
  color: var(--muted);
}
