/* hub.ajinkya.ai — the index page for the family of sites.
   Quiet and neutral on purpose: each child site has a strong look of its own,
   so the parent should not compete with any of them. */

:root {
  --bg:      #f6f5f1;
  --surface: #ffffff;
  --ink:     #1a1b17;
  --muted:   #5f6159;
  --faint:   #93958c;
  --hair:    #e3e1d9;
  --lift: 0 1px 2px rgba(25,25,20,.04), 0 18px 40px -24px rgba(25,25,20,.34);
  --serif: "Iowan Old Style", Charter, Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #12130f; --surface: #1a1b17; --ink: #eceade; --muted: #a0a297;
  --faint: #74766c; --hair: #2b2c26;
  --lift: 0 1px 2px rgba(0,0,0,.5), 0 18px 44px -26px rgba(0,0,0,.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12130f; --surface: #1a1b17; --ink: #eceade; --muted: #a0a297;
    --faint: #74766c; --hair: #2b2c26;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.icon {
  position: fixed; top: 16px; right: 16px; z-index: 5;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--hair); color: var(--ink);
  border-radius: 9px; padding: 6px 10px; font: inherit; cursor: pointer;
  backdrop-filter: blur(10px);
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 54px 20px 40px; }

.top { max-width: 62ch; margin-bottom: 44px; }
.mark { display: block; font-size: 22px; color: var(--faint); margin-bottom: 18px; }
.top h1 {
  font-family: var(--serif); font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 500;
}
.lede { margin: 0; color: var(--muted); line-height: 1.68; font-size: 15.5px; }

.cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 20px 20px 19px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 15px; box-shadow: var(--lift);
  position: relative; overflow: hidden;
  transition: transform .17s ease, border-color .17s ease;
}
/* a hairline of the site's own colour, so each card is recognisable */
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--tint, var(--hair));
}
a.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tint) 45%, var(--hair));
}
.card.soon { opacity: .62; cursor: default; }

.glyph {
  font-size: 21px; line-height: 1; flex: none; margin-top: 2px;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  color: var(--tint);
}
.body { display: flex; flex-direction: column; min-width: 0; }
.body b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.body em {
  font-style: normal; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint); margin: 3px 0 9px;
}
.desc { font-size: 13.6px; line-height: 1.6; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags i {
  font-style: normal; font-size: 11px; color: var(--muted);
  border: 1px solid var(--hair); border-radius: 999px; padding: 3px 9px;
}
.tags i.lock { color: var(--tint); border-color: color-mix(in srgb, var(--tint) 35%, transparent); }
.tags i.wip {
  color: var(--tint);
  border-style: dashed; border-color: color-mix(in srgb, var(--tint) 45%, transparent);
}

.foot {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hair);
  color: var(--faint); font-size: 11.8px; line-height: 1.75; max-width: 70ch;
}
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
