/* Home (Linktree-style) and the Articles / Resources hubs. Uses tokens.css; site.css is untouched. KAN-11. */
.hub { width: min(480px, 100%); margin: 0 auto; padding: 0 22px 56px; }

/* Home */
.hero { height: 132px; background: var(--accent); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); right: -80px; top: -150px; }
.hero::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.35); left: -60px; top: -40px; }
.avatar { display: block; width: 116px; height: 116px; margin: -58px auto 0; border-radius: 50%; border: 5px solid var(--bg); position: relative; box-shadow: 0 6px 18px rgba(31,29,26,.18); }
.hub .name { margin: 14px 0 2px; text-align: center; font-weight: 700; font-size: 26px; letter-spacing: -.6px; line-height: 1.2; }
.hub .role { margin: 0 0 18px; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.hub .bio { margin: 0 0 12px; font-size: 17px; line-height: 1.55; }
.hub .bio b { font-weight: 700; }

.socials { display: flex; gap: 10px; justify-content: center; margin: 22px 0 24px; }
.soc { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.soc:hover { background: var(--accent); }
.soc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.big { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(31,29,26,.05); }
.big:hover .t { color: var(--accent); }
.big .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--on-ink); display: flex; align-items: center; justify-content: center; }
.big .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.big .t { display: block; font-weight: 700; font-size: 18px; letter-spacing: -.2px; line-height: 1.25; }
.big .s { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.big .ar { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 20px; }

/* Hubs */
.top { display: flex; align-items: center; gap: 10px; padding: 24px 0 6px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .5px; }
.top a.back { color: var(--accent); text-decoration: none; }
.top img { width: 30px; height: 30px; margin-left: auto; border-radius: 50%; }
.hub h1 { margin: 12px 0 8px; font-weight: 700; font-size: 34px; letter-spacing: -1px; line-height: 1.1; }
.hub .lede { margin: 0 0 20px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

.card { display: block; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 26px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(31,29,26,.05); }
.card:hover .tt { color: var(--accent); }
.thumb { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 14px; overflow: hidden; color: var(--on-ink); }
.thumb::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); right: -40px; top: -60px; }
.thumb.a { background: linear-gradient(135deg, #C96442, #A84B2C); }
.thumb.b { background: linear-gradient(135deg, #2A2723, #4A4137); }
.thumb.c { background: linear-gradient(135deg, #D98B6E, #C96442); }
.thumb .tag { position: absolute; top: 12px; left: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.thumb .tl { position: relative; max-width: 260px; font-weight: 700; font-size: 22px; letter-spacing: -.5px; line-height: 1.1; }
.cb { padding: 14px 16px 16px; }
.cb .m { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); }
.cb .tt { display: block; margin: 4px 0; font-weight: 700; font-size: 18px; letter-spacing: -.2px; line-height: 1.3; }
.cb .d { display: block; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.soon { display: flex; align-items: center; justify-content: center; padding: 22px; border: 1.5px dashed var(--hairline); border-radius: 26px; text-align: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: .5px; color: var(--ink-soft); }
.pill { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; padding: 14px 22px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.pill span { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: rgba(244,241,234,.65); }
.hub .site-foot { text-align: center; }

/* Card lists: one column on phones, a grid from tablet up */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cards .card, .cards .soon { margin: 0; }

/* Tablet and up: the page uses the width. Phones keep the single column above. */
@media (min-width: 768px) {
  .hub { width: min(920px, 100%); padding: 0 32px 72px; }
  .hero { height: 168px; }
  .hub .top { padding-top: 32px; }
  .hub h1 { font-size: 46px; letter-spacing: -1.4px; }
  .hub .lede { max-width: 620px; font-size: 19px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pill { display: inline-flex; gap: 28px; margin: 0 0 28px; }
  .hub.home { width: min(640px, 100%); }
}
@media (min-width: 1100px) {
  .hub { width: min(1120px, 100%); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  /* Home: profile on the left, links on the right */
  .hub.home { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .hub.home .profile { padding-top: 0; }
  .hub.home .avatar { width: 160px; height: 160px; margin: -80px 0 0; }
  .hub.home .name { text-align: left; font-size: 38px; letter-spacing: -1px; margin-top: 18px; }
  .hub.home .role { text-align: left; margin-bottom: 22px; }
  .hub.home .bio { font-size: 19px; }
  .hub.home .links { padding-top: 48px; }
  .hub.home .socials { justify-content: flex-start; margin: 0 0 28px; }
  .hub.home .big { padding: 18px 20px; }
  .hub.home .site-foot { grid-column: 1 / -1; }
}
