:root {
  --page-max: 900px;
  --radius: 12px;
}

main {
  padding: clamp(2.5rem, 7vw, 5rem) 0 var(--page-end-space);
}

.hero { max-width: 640px; margin-bottom: 3rem; }
.eyebrow { margin: 0 0 0.55rem; color: var(--theme-accent-strong); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0.9rem; font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.08; letter-spacing: -0.04em; }
h2 { margin-bottom: 0; font-size: 1.2rem; line-height: 1.25; }
.hero-copy { max-width: 520px; margin-bottom: 0; color: var(--theme-text-muted); font-size: 1.05rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--theme-border); }
.section-heading .eyebrow { margin-bottom: 0.3rem; }
.page-count { color: var(--theme-text-subtle); font-size: 0.8rem; white-space: nowrap; }
.page-list { margin: 0; padding: 0; list-style: none; }
.page-list li + li { margin-top: 0.65rem; }

.page-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.page-card:hover { transform: translateY(-2px); background: var(--theme-surface); border-color: var(--theme-border-strong); }
.page-icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; flex: 0 0 auto; background: var(--theme-accent-soft); border-radius: 9px; font-size: 1.35rem; }
.page-details { min-width: 0; flex: 1; }
.page-title, .page-description { display: block; }
.page-title { font-weight: 650; }
.page-description { margin-top: 0.18rem; color: var(--theme-text-muted); font-size: 0.88rem; }
.page-arrow { color: var(--theme-accent-strong); font-size: 1.4rem; }

.add-page-note { display: flex; gap: 0.85rem; align-items: flex-start; margin-top: 2.5rem; padding: 1rem 1.1rem; background: var(--theme-surface); border-radius: var(--radius); }
.add-page-note > span { color: var(--theme-accent-strong); font-size: 1.4rem; line-height: 1; }
.add-page-note h2 { font-size: 0.95rem; }
.add-page-note p { margin: 0.15rem 0 0; color: var(--theme-text-muted); font-size: 0.88rem; }
