:root {
  --hub-bg: #fafaf7;
  --hub-surface: #ffffff;
  --hub-ink: #1a1a1a;
  --hub-ink-muted: #555;
  --hub-ink-subtle: #888;
  --hub-line: #e5e1d6;
  --hub-accent: #293b51;
  --hub-accent-soft: #b89b6a;
  --hub-radius: 4px;
}

* { box-sizing: border-box; }

body.wishlist-hub {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--hub-bg);
  color: var(--hub-ink);
  -webkit-font-smoothing: antialiased;
}

.hub-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.hub-masthead {
  border-bottom: 1px solid var(--hub-line);
  padding-bottom: 32px;
  margin-bottom: 56px;
}
.hub-masthead .crumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hub-ink-subtle);
  margin: 0 0 12px;
  font-weight: 500;
}
.hub-masthead .crumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.hub-masthead .crumb a:hover,
.hub-masthead .crumb a:focus-visible {
  border-bottom-color: currentColor;
}
.hub-masthead h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-accent);
  line-height: 1.15;
}
.hub-masthead .lede {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--hub-ink-muted);
  font-size: 17px;
}

.hub-section {
  margin-bottom: 72px;
}
.hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--hub-accent);
  padding-top: 16px;
  margin-bottom: 24px;
}
.hub-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hub-section-head .meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hub-ink-subtle);
  font-weight: 500;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  min-height: 200px;
}
.hub-card:hover,
.hub-card:focus-visible {
  border-color: var(--hub-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px -12px rgba(41, 59, 81, 0.18);
  outline: none;
}
.hub-card:focus-visible {
  outline: 2px solid var(--hub-accent-soft);
  outline-offset: 4px;
}

.hub-card .num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  font-weight: 300;
  color: var(--hub-line);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hub-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hub-ink-subtle);
  margin: 0 0 12px;
  font-weight: 500;
}
.hub-card h3 {
  margin: 0 36px 12px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--hub-accent);
}
.hub-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--hub-ink-muted);
  line-height: 1.55;
}
.hub-card .cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hub-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hub-card .cta .arrow {
  transition: transform 0.15s;
}
.hub-card:hover .cta .arrow,
.hub-card:focus-visible .cta .arrow {
  transform: translateX(3px);
}

.hub-card .badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.hub-card .badge--ready { color: var(--hub-accent-soft); }
.hub-card .badge--stub { color: var(--hub-ink-subtle); }
.hub-card .badge--ref { color: var(--hub-accent); }

.hub-footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--hub-line);
  font-size: 13px;
  color: var(--hub-ink-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.hub-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hub-footer a:hover,
.hub-footer a:focus-visible {
  border-bottom-color: currentColor;
}

@media (max-width: 600px) {
  .hub-shell { padding: 40px 20px 64px; }
  .hub-masthead h1 { font-size: 28px; }
  .hub-masthead .lede { font-size: 15px; }
  .hub-section-head { flex-direction: column; gap: 4px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card,
  .hub-card .cta .arrow {
    transition: none;
  }
  .hub-card:hover {
    transform: none;
  }
}
