/* Pattern hub pages — War Path aesthetic */
:root {
  --bg-void: #050507;
  --bg-card: rgba(12, 11, 16, 0.92);
  --primary: #a33b5c;
  --secondary: #7c5cbf;
  --accent: #c9763d;
  --warning: #e74c3c;
  --success: #7d9a8c;
  --text-main: #ece8e1;
  --text-soft: #9a958c;
  --border-glass: rgba(255, 255, 255, 0.06);
  --radius-lg: 20px;
  --radius-sm: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --hub-accent: var(--accent);
  --hub-accent-soft: rgba(201, 118, 61, 0.15);
  --hub-border: rgba(201, 118, 61, 0.28);
}

.hub-theme--ember {
  --hub-accent: #c9763d;
  --hub-accent-soft: rgba(201, 118, 61, 0.14);
  --hub-border: rgba(201, 118, 61, 0.35);
}
.hub-theme--slate {
  --hub-accent: #8b9dc3;
  --hub-accent-soft: rgba(139, 157, 195, 0.14);
  --hub-border: rgba(139, 157, 195, 0.35);
}
.hub-theme--violet {
  --hub-accent: #9b7ed9;
  --hub-accent-soft: rgba(155, 126, 217, 0.14);
  --hub-border: rgba(155, 126, 217, 0.35);
}
.hub-theme--crimson {
  --hub-accent: #e85d5d;
  --hub-accent-soft: rgba(232, 93, 93, 0.12);
  --hub-border: rgba(232, 93, 93, 0.35);
}
.hub-theme--steel {
  --hub-accent: #7a9e9e;
  --hub-accent-soft: rgba(122, 158, 158, 0.14);
  --hub-border: rgba(122, 158, 158, 0.35);
}
.hub-theme--rose {
  --hub-accent: #c97b8f;
  --hub-accent-soft: rgba(201, 123, 143, 0.14);
  --hub-border: rgba(201, 123, 143, 0.35);
}
.hub-theme--magenta {
  --hub-accent: #a33b5c;
  --hub-accent-soft: rgba(163, 59, 92, 0.14);
  --hub-border: rgba(163, 59, 92, 0.35);
}
.hub-theme--amber {
  --hub-accent: #d4a24c;
  --hub-accent-soft: rgba(212, 162, 76, 0.14);
  --hub-border: rgba(212, 162, 76, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.hub-page {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-main);
  line-height: 1.75;
  min-height: 100vh;
}

body.hub-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% -15%, var(--hub-accent-soft) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 90% 70%, rgba(163, 59, 92, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--hub-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.hub-breadcrumb {
  position: relative;
  z-index: 1;
  padding: 100px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.hub-breadcrumb__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.hub-breadcrumb a {
  color: var(--text-soft);
}
.hub-breadcrumb a:hover {
  color: var(--hub-accent);
}

.hub-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px 56px;
  max-width: 820px;
  margin: 0 auto;
}

.hub-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--hub-accent);
  padding: 10px 20px;
  background: var(--hub-accent-soft);
  border: 1px solid var(--hub-border);
  border-radius: 999px;
  margin-bottom: 22px;
}

.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hub-hero .hub-lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.45;
}

.hub-container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.hub-siblings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 48px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.hub-siblings__label {
  grid-column: 1 / -1;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.hub-siblings a {
  display: block;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.hub-siblings a:hover {
  border-color: var(--hub-border);
  background: var(--hub-accent-soft);
  text-decoration: none;
}

.hub-siblings a.is-current {
  border-color: var(--hub-border);
  color: var(--hub-accent);
  pointer-events: none;
}

.hub-prose {
  font-size: 1.02rem;
}

.hub-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-style: italic;
  font-weight: 600;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hub-border);
  color: var(--text-main);
}

.hub-prose h2:first-of-type {
  margin-top: 0;
}

.hub-prose h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hub-accent);
  margin: 28px 0 12px;
}

.hub-prose p {
  color: var(--text-soft);
  margin-bottom: 16px;
}

.hub-prose strong {
  color: var(--text-main);
  font-weight: 600;
}

.hub-prose ul {
  margin: 0 0 20px 22px;
  color: var(--text-soft);
}

.hub-prose li {
  margin-bottom: 10px;
}

.hub-prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin: 36px 0;
}

.hub-actions {
  margin-top: 56px;
  padding: 36px 28px;
  background: linear-gradient(165deg, var(--hub-accent-soft), var(--bg-card));
  border: 1px solid var(--hub-border);
  border-radius: var(--radius-lg);
}

.hub-actions h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.hub-action-row {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-glass);
}

.hub-action-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hub-action-row strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.hub-action-row p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.hub-action-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.hub-action-links a {
  font-size: 0.88rem;
  font-weight: 600;
}

.hub-footer-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hub-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hub-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.hub-btn--primary {
  background: var(--hub-accent);
  color: #fff;
  box-shadow: 0 8px 28px var(--hub-accent-soft);
}

.hub-btn--ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hub-btn--ghost:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.28);
}

.hub-closing {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
}
