:root {
  --bg: #12141a;
  --bg-soft: #181b23;
  --fg: #e6e3da;
  --fg-muted: #9b978c;
  --fg-dim: #6a675e;
  --accent: #b0bacb;
  --rule: #2a2d35;
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --maxw: 620px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1;
}

.wrap {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Nav */
nav {
  padding: 44px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 17px;
}

nav .brand {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}

nav .links {
  display: flex;
  gap: 24px;
}

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

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

/* LANDING */
main.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 48px 0 64px;
  max-width: 560px;
}

.landing h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}

.landing .prose p {
  font-size: 21px;
  line-height: 1.55;
  margin-bottom: 18px;
  color: var(--fg);
}

.landing .prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--fg-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.landing .prose a:hover {
  text-decoration-color: var(--accent);
}

.summary-label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-muted);
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 36px;
}

.portrait-lg {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(0.18) contrast(1.02);
  display: block;
  margin-bottom: 36
}

/* CONTENT PAGES */
main.page {
  padding: 72px 0 48px;
  max-width: 560px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.portrait-sm {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(0.18) contrast(1.02);
  flex-shrink: 0;
}

h1.page-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
}

/* Prose */
.prose p {
  margin-bottom: 22px;
  color: var(--fg);
}

.prose p.muted {
  color: var(--fg-muted);
  font-size: 19px;
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

em, i { font-style: italic; }

h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--fg-muted);
  margin-top: 52px;
  margin-bottom: 22px;
}

h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--fg);
}

/* Link lists */
.linklist {
  list-style: none;
}

.linklist li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.linklist li:last-child { border-bottom: none; }

.linklist .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.linklist .title {
  color: var(--fg);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
}

.linklist .author {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.linklist .note {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Footer */
footer {
  padding: 56px 0 44px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--fg-dim);
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 19px; }
  .landing h1 { font-size: 28px; }
  h1.page-title { font-size: 26px; }
  .landing .prose p { font-size: 19px; }
  .portrait-lg { width: 120px; height: 120px; margin-bottom: 28px; }
  .portrait-sm { width: 56px; height: 56px; }
  main.landing { padding: 40px 0; }
  main.page { padding: 52px 0 40px; }
  nav { padding-top: 32px; font-size: 16px; }
  .page-header { gap: 16px; margin-bottom: 40px; }
}

/* Fade */
main > *, main .prose > * {
  animation: fade 0.7s ease-out both;
}
main > *:nth-child(2) { animation-delay: 0.08s; }
main > *:nth-child(3) { animation-delay: 0.16s; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

main.landing .prose p.spacer-top {
  margin-top: 28px;
}

.platform-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.platform-row-top {
  margin-top: 8px;
  margin-bottom: 28px;
}

.platform-row a,
.linklist .links-inline a {
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.platform-row a:hover,
.linklist .links-inline a:hover {
  color: var(--fg);
}

.platform-row svg {
  width: 16px;
  height: 16px;
}

.linklist .links-inline {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.linklist .links-inline svg {
  width: 16px;
  height: 16px;
}

.linklist li.article-entry .row {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.linklist li.article-entry .author {
  white-space: normal;
  margin-top: 2px;
}

