/* hub.css — shared branding for Calvin Center hub pages */

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

:root {
  --sky: #2c6e8a;
  --sky-light: #4a9abf;
  --sky-dark: #1a4a60;
  --meadow: #5b8a3c;
  --earth: #8b6340;
  --earth-light: #c4916a;
  --cream: #f7f2ea;
  --cream-dark: #ede5d4;
  --text: #2a2218;
  --text-light: #6b5d4f;
  --white: #ffffff;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* ── SCENIC BACKGROUND ── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.sky-fill { position: absolute; inset: 0; background: linear-gradient(180deg, #d4eaf5 0%, #e8f4fb 35%, var(--cream) 70%); z-index: -1; }
.sun { position: absolute; top: 10%; left: 12%; width: clamp(40px, 6vw, 72px); height: clamp(40px, 6vw, 72px); border-radius: 50%; background: radial-gradient(circle, #ffe98a 0%, #f5c842 60%, transparent 100%); box-shadow: 0 0 40px 10px rgba(245, 200, 66, 0.3); }
.hill { position: absolute; bottom: 0; left: -5%; width: 110%; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.hill-far { height: 38%; background: #c8dab0; bottom: 18%; opacity: 0.55; }
.hill-mid { height: 32%; background: #a8c882; bottom: 8%; opacity: 0.7; }
.hill-near { height: 22%; background: var(--meadow); opacity: 0.85; }

/* ── ANIMATIONS ── */
@keyframes cardin {
  from { transform: translateY(24px); opacity: 0; }
  to { opacity: 1; transform: none; }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── CARD ── */
.card {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: clamp(16px, 4vw, 32px) clamp(20px, 4vw, 36px);
  background: rgba(247, 242, 234, 0.82);
  border: 1.5px solid rgba(196, 176, 148, 0.5);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 0 rgba(139, 99, 64, 0.08), 0 8px 40px rgba(42, 34, 24, 0.10);
  max-width: min(540px, 90vw);
  margin: auto;
  animation: cardin 1s cubic-bezier(.22, .68, 0, 1.2) both;
  animation-delay: 0.3s;
}

.card::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--earth-light);
  margin: 0 auto 14px;
  border-radius: 2px;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 10px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--sky-dark);
  margin-bottom: 4px;
}

.subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-light);
  margin-bottom: 16px;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cream-dark), transparent);
  margin-bottom: 14px;
}

/* ── HUB LINKS ── */
.hub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.hub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(247, 242, 234, 0.6);
  border: 1px solid rgba(196, 176, 148, 0.4);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s, border-color 0.18s;
}

.hub-link:hover {
  background: rgba(74, 154, 191, 0.1);
  border-color: var(--sky-light);
}

.hub-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; }
.hub-text { flex: 1; }
.hub-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--sky-dark);
  display: block;
  line-height: 1.2;
}
.hub-arrow { color: var(--earth-light); font-size: 14px; flex-shrink: 0; }

/* ── BACK LINK ── */
.back-row {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(196, 176, 148, 0.35);
}

.back-link {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--sky); }
