:root {
  --bg: #0b0b0b;
  --fg: #f2f2f2;
  --muted: color-mix(in srgb, var(--fg) 55%, transparent);
  --rule: color-mix(in srgb, var(--fg) 18%, transparent);
  --measure: 42rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --muted: color-mix(in srgb, var(--fg) 52%, transparent);
    --rule: color-mix(in srgb, var(--fg) 14%, transparent);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* Publication chrome (article pages) */
.site-header {
  margin: 0 0 2.5rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.site-name:hover {
  opacity: 0.7;
}

/* Home: about */
.about {
  margin: 0 0 2.75rem;
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
  line-height: 1.75;
}

.about h1 {
  margin: 0 0 1rem;
  line-height: 1.15;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.about p {
  margin: 0 0 1.15em;
}

.about p:last-of-type {
  margin-bottom: 0;
}

.about a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.about a:hover {
  opacity: 0.75;
}

.about-contact-label {
  margin: 1.75em 0 0.55em !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.about-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 1.05rem;
}

.about-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.about-links a:hover {
  opacity: 0.75;
}

.about-poem {
  margin: 2.25rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
}

.about-poem-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.about-poem-title a {
  text-decoration: none;
}

.about-poem-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  opacity: 1;
}

.about-poem-subtitle {
  margin: 0 0 1.25rem !important;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.about-poem-body {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.about-poem-body p {
  margin: 0 0 1.1em;
}

.about-poem-body p:last-child {
  margin-bottom: 0;
}

/* Index list */
.post-list {
  display: block;
}

.post-item {
  margin: 0 0 2.25rem;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--rule);
}

.post-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-item-cover {
  display: block;
  margin: 0 0 0.9rem;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--rule);
  line-height: 0;
}

.post-item-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.post-item h2 {
  margin: 0 0 0.4rem;
  line-height: 1.25;
  font-size: 1.45rem;
  font-weight: 700;
}

.post-item h2 a:hover {
  opacity: 0.75;
}

.post-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Shared byline */
.meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Article */
.post {
  display: block;
}

.essay-header {
  margin: 0 0 2rem;
}

.title-image {
  margin: 0 0 1.35rem;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--rule);
  line-height: 0;
}

.title-image img {
  display: block;
  width: 100%;
  height: auto;
}

.essay-header h1 {
  margin: 0 0 0.55rem;
  line-height: 1.15;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.essay-header .subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.82;
}

.essay-content {
  margin-top: 0;
  font-size: 1.125rem;
  line-height: 1.75;
}

.essay-content h1,
.essay-content h2,
.essay-content h3,
.essay-content h4,
.essay-content h5,
.essay-content h6 {
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.65em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.essay-content h1 {
  font-size: 1.4rem;
}

.essay-content h2 {
  font-size: 1.3rem;
}

.essay-content h3 {
  font-size: 1.15rem;
}

.essay-content p,
.essay-content ul,
.essay-content ol,
.essay-content blockquote,
.essay-content .body-figure {
  margin-top: 0;
  margin-bottom: 1.15em;
}

.essay-content .body-figure {
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--rule);
  line-height: 0;
}

.essay-content .body-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.essay-content ul,
.essay-content ol {
  padding-left: 1.35em;
}

.essay-content li {
  margin-bottom: 0.35em;
}

.essay-content hr {
  display: block;
  height: 0;
  padding: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.essay-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.15em 0 0.15em 1em;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

.essay-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.28em;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.essay-content a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.essay-content a:hover {
  opacity: 0.75;
}

/* Footer nav */
.post-nav {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-link {
  max-width: 100%;
}

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