/*
 * home.css — editorial home page.
 */

.home {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2rem) var(--sp-9);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.home-hero {
  margin-bottom: var(--sp-9);
}

.home-hero__kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--sp-5);
}

.home-hero__name {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 60;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--fg);
  margin: 0 0 var(--sp-6);
}

.home-hero__bio {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--fg);
  max-width: 56ch;
  margin: 0 0 var(--sp-6);
}

.home-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__links a {
  color: var(--fg-2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.home-hero__links a:hover,
.home-hero__links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Section block ─────────────────────────────────────────────────────── */
.home-block {
  margin-bottom: var(--sp-8);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-6);
}

.home-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.home-block__head h2 {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0;
}

.home-block__more {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.home-block__more:hover,
.home-block__more:focus-visible { color: var(--accent); }

/* ── List ─────────────────────────────────────────────────────────────── */
.home-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--rule);
}
.home-list__item:last-child { border-bottom: none; }

.home-list__item--rich {
  align-items: flex-start;
  padding: var(--sp-4) 0;
}

.home-list__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  flex: 1;
}

.home-list__link {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.4;
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.home-list__sigil {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  flex-shrink: 0;
}

.home-list__link:hover,
.home-list__link:focus-visible { color: var(--accent); }

.home-list__sub {
  font-size: var(--text-sm);
  color: var(--fg-2);
  line-height: 1.5;
}

.home-list__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-3);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
  letter-spacing: 0.02em;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.home-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-9);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.home-foot nav { display: flex; gap: var(--sp-5); }

.home-foot a {
  color: var(--fg-3);
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.home-foot a:hover,
.home-foot a:focus-visible { color: var(--accent); }

/* ── Hide serene's default chrome on home ─────────────────────────────── */
body.page-home .serene-header,
body.page-home header.site-header { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .home-list__item--rich {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .home-list__meta { padding-top: 0; }
}
