/**
 * Hub shell — platform (/) + category hubs (/naming/, …)
 * Same fate tokens as tools; hierarchy differs by page class.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
}

body.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 185, 154, 0.07), transparent 55%),
    var(--bg);
}

.hub-shell {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* Platform home: brand is the hero */
.hub-platform .hub-brand {
  font-size: clamp(2.4rem, 8vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hub-platform .hub-brand span {
  color: var(--accent);
}

/* Today's fortune peek — living subtitle under brand; no fixed slogan */
.hub-peek {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0 auto 2rem;
  padding: 0.85rem 1rem 1.1rem;
  max-width: 22rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    border-color var(--transition),
    background var(--transition);
  animation: hub-rise 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;
}
.hub-peek:hover {
  border-color: rgba(201, 185, 154, 0.28);
  background: rgba(201, 185, 154, 0.04);
}

.hub-peek-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
  color: var(--accent);
}

.hub-peek-glyph {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 185, 154, 0.22);
  background: rgba(201, 185, 154, 0.04);
}
.hub-peek-glyph svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.hub-peek-dot {
  color: var(--text-dim);
  opacity: 0.55;
  font-size: 0.9rem;
}

.hub-peek-line {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hub-peek-go {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.hub-peek:hover .hub-peek-go { opacity: 1; }

/* Category hub: breadcrumb + quieter title */
.hub-crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}
.hub-crumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.hub-crumbs a:hover { color: var(--accent); }
.hub-crumbs .sep { opacity: 0.45; letter-spacing: 0.12em; margin: 0 0.15rem; }
.hub-crumbs .here { opacity: 0.9; }

.hub-category .hub-title {
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.hub-category .hub-tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 34ch;
  margin: 0 auto 2.25rem;
}

/* Shared entry list — interaction rows, not SaaS cards */
.hub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
}

.hub-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px dashed var(--border);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition:
    border-color var(--transition),
    background var(--transition),
    opacity var(--transition);
}

a.hub-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.hub-item.is-soon {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.hub-item .mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(201, 185, 154, 0.28);
  border-radius: 50%;
  background: rgba(201, 185, 154, 0.04);
  transition: border-color var(--transition), background var(--transition);
}
.hub-item .mark img {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}
a.hub-item:hover .mark {
  border-color: rgba(201, 185, 154, 0.55);
  background: var(--accent-glow);
}

.hub-item .body { flex: 1; min-width: 0; }

.hub-item .name {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.hub-item .desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.hub-item .badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201, 185, 154, 0.35);
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
}

.hub-item.is-soon .badge {
  color: var(--text-dim);
  border-color: var(--border);
}

.hub-foot {
  margin-top: 2.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.7;
}
.hub-foot a {
  color: inherit;
  text-decoration: none;
}
.hub-foot a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Presence: soft enter */
@keyframes hub-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hub-shell {
  animation: hub-rise 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hub-list .hub-item {
  animation: hub-rise 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hub-list .hub-item:nth-child(1) { animation-delay: 0.08s; }
.hub-list .hub-item:nth-child(2) { animation-delay: 0.14s; }
.hub-list .hub-item:nth-child(3) { animation-delay: 0.2s; }
.hub-list .hub-item:nth-child(4) { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .hub-shell,
  .hub-list .hub-item { animation: none; }
}
