/* ============================================================================
   dlobrai.co home page — page-specific layout only.
   Visual primitives (tokens, base, header, theme toggle) come from theme.css
   (the shared kit). The page is just two large serif entries — Photographs /
   Music — in a hairline-ruled index. The URL is the name.
   ============================================================================ */

/* Only the theme toggle lives in the fixed header — push it right. */
.home .site-header {
  justify-content: flex-end;
}

/* Center the column vertically. */
.home main {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 24px) 28px 40px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page {
  width: 100%;
}

/* ── Editorial index of sections ──
   Each row is a large serif entry with a right-hand arrow cue. A top rule
   opens the list; every row closes with one. */
.index {
  border-top: 1px solid var(--border);
}

.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 0.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.entry-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  transition: color 0.18s ease;
}

/* Right-hand cue: an arrow. */
.entry-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: color 0.18s ease, transform 0.22s ease;
}

.entry-cue svg {
  width: 28px;
  height: 28px;
}

/* Hover/focus: title warms to the accent, the arrow eases right, the rule
   brightens. This is the page's one moving idea. */
.entry[href]:hover,
.entry[href]:focus-visible {
  border-bottom-color: var(--accent);
}

.entry[href]:hover .entry-title,
.entry[href]:focus-visible .entry-title {
  color: var(--accent);
}

.entry[href]:hover .entry-cue,
.entry[href]:focus-visible .entry-cue {
  color: var(--accent);
  transform: translateX(5px);
}

/* ── Entrance: one quiet rise on load. ── */
@media (prefers-reduced-motion: no-preference) {
  .index {
    animation: rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
