:root {
  --bg: #ffffff;
  --text: #2b2b2b;
  --muted: #8a8a8a;
  --link: #1b3fd1;
  --max-width: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #d8d8d6;
    --muted: #6f6f6f;
    --link: #6f8bff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Centered column, vertically + horizontally centered in the viewport.
   margin:auto inside a flex body keeps tall content scrollable. */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  padding: 4rem 1.5rem;
}

/* Header: name + tabs on one inline row */
header {
  margin-bottom: 2.25rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.25rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--text);
}

nav a.site-name {
  color: var(--text);
  font-weight: 700;
}

nav a.active {
  color: var(--text);
}

/* Body content */
main h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

main h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.25rem 0 0.5rem;
}

main p {
  margin: 0 0 1.4rem;
}

main a {
  color: var(--link);
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.muted {
  color: var(--muted);
}

/* Monospace social / meta row */
.social {
  margin-top: 2rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.social a {
  color: var(--muted);
  text-decoration: none;
}

.social a:hover {
  color: var(--text);
}

.social .sep {
  margin: 0 0.5rem;
  color: var(--muted);
}

/* Hero image */
.hero {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
}

/* Lists of links (writing, projects, contact) */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}

.entry-list .title {
  display: block;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.entry-list .title:hover {
  color: var(--link);
}

.entry-list .meta {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}
