:root {
  --serif: "Lora", Georgia, serif;
  --mono: "JetBrains Mono", monospace;
  --bg: #0f0f13;
  --text: #dedad4;
  --soft: #a8a8a8;
  --muted: #777782;
  --border: #2a2a30;
  --accent: #c9a961;
  --transition: 150ms ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--serif);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgb(15 15 19 / 95%);
  backdrop-filter: blur(4px);
}

.site-name, .header-sep, .breadcrumb, .breadcrumb-link,
.text-meta, .article-brand, .article-row time, footer {
  font-family: var(--mono);
}

.site-name {
  color: var(--text);
  font-size: .75rem;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-sep { margin: 0 .5rem; color: var(--muted); }
.breadcrumb, .breadcrumb-link { color: var(--soft); font-size: .8rem; }
.breadcrumb-link { text-decoration: none; }
.breadcrumb-link:hover, .publication-links a:hover, .external-link:hover { color: var(--accent); }

main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.page-text { max-width: 720px; margin: 0 auto; }

.text-meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.text-meta a { color: var(--muted); text-decoration: none; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.text-title {
  margin: .55rem 0 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.2rem;
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: .64rem;
  text-transform: uppercase;
}

.publication-links a, .external-link {
  color: var(--soft);
  text-decoration: none;
  transition: color var(--transition);
}

.publication-separator { padding: 0 .35rem; color: var(--muted); }

.publication-description {
  margin: -.8rem 0 1.5rem;
  color: var(--soft);
  font-size: .9rem;
}

.publication-description .external-link { margin-left: .6rem; font-family: var(--mono); font-size: .65rem; }

.article-list { border-top: 1px solid var(--border); }

.article-row {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  align-items: baseline;
  gap: .8rem;
  padding: 1rem .2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.article-row:hover { color: var(--accent); }
.article-brand, .article-row time { color: var(--muted); font-size: .58rem; }
.article-brand { text-transform: uppercase; }
.article-title { font-size: 1rem; }
.article-row time { white-space: nowrap; }
.article-row-simple { grid-template-columns: 1fr auto; }

.empty-state { padding: 1rem 0; color: var(--muted); }

.prose { font-size: 1rem; }
.prose p { margin: 0 0 1.25rem; }
.prose h2, .prose h3 { margin: 2.2rem 0 .75rem; font-weight: 400; line-height: 1.3; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose a { color: var(--accent); text-underline-offset: .2em; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--soft); }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin: .3rem 0; }
.prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--border); }
.prose img { max-width: 100%; height: auto; }
.prose .footnotes { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--soft); font-size: .85rem; }

.article-deck { margin: -.8rem 0 2rem; color: var(--soft); font-size: 1.05rem; }

.article-source {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
}

.article-source p { margin-bottom: .4rem; }
.article-source a { color: var(--accent); font-family: var(--mono); font-size: .65rem; text-decoration: none; text-transform: uppercase; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

@media (max-width: 600px) {
  header { padding: 1rem; }
  main { padding: 1.5rem 1rem; }
  .article-row { grid-template-columns: 1fr auto; gap: .25rem .8rem; }
  .article-brand { grid-column: 1 / -1; }
  .article-title { font-size: .95rem; }
  footer { padding: 1rem; }
}
