:root {
  --bg: #fbfaf7;
  --text: #1f1f1d;
  --muted: #6b6a66;
  --faint: #e6e3dc;
  --accent: #8a4b2a;
  --card: #ffffff;
  --serif: Spectral, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --text: #e8e6e1;
    --muted: #9a978f;
    --faint: #2c2b29;
    --accent: #d9956b;
    --card: #1d1d1b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}

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

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 8px 24px;
  padding: 40px 0 24px;
  font-family: var(--sans); font-size: 15px;
}
header.site .name { font-weight: 600; text-decoration: none; }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--text); }

section { padding: 40px 0; border-top: 1px solid var(--faint); }
section:first-of-type { border-top: 0; }
h2 {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 0 0 20px;
}

h1 { font-size: 30px; line-height: 1.2; margin: 4px 0 12px; font-weight: 500; }
.intro p { margin: 0 0 12px; }

/* Bio: portrait above the text, shrinking to fit narrow screens */
.bio { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.bio p:first-child { margin-top: 0; }
.avatar {
  flex: none; width: min(288px, 100%); height: auto; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  background: var(--faint);
}

/* Stream */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-family: var(--sans); }
.filters button {
  font: inherit; font-size: 13px; cursor: pointer;
  background: none; color: var(--muted);
  border: 1px solid var(--faint); border-radius: 999px; padding: 4px 12px;
}
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--text); }

.post { padding: 24px 0; border-bottom: 1px solid var(--faint); }
.post:last-child { border-bottom: 0; }
.post .meta {
  font-family: var(--sans); font-size: 13px; color: var(--muted);
  display: flex; gap: 10px; align-items: center; margin-bottom: 6px;
}
.post .meta a { color: var(--muted); text-decoration: none; }
.post .meta a:hover { color: var(--accent); }
.kind::before { content: "·"; margin-right: 10px; }
.post p { margin: 0 0 10px; }
.post p:last-child { margin-bottom: 0; }
.post blockquote {
  margin: 10px 0; padding-left: 16px; border-left: 2px solid var(--faint);
  color: var(--muted); font-style: italic;
}

.linkcard {
  display: block; text-decoration: none; margin-top: 10px;
  background: var(--card); border: 1px solid var(--faint); border-radius: 8px;
  padding: 12px 14px; font-family: var(--sans);
}
.linkcard:hover { border-color: var(--accent); color: inherit; }
.linkcard .title { display: block; font-size: 15px; font-weight: 600; }
.linkcard .domain { display: block; font-size: 13px; color: var(--muted); }

/* Contact */
.elsewhere { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--sans); font-size: 15px; }

footer {
  border-top: 1px solid var(--faint);
  padding: 24px 0 48px; font-family: var(--sans); font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
footer a { color: var(--muted); }
