/* hub.digitaldon.net — every official link on one page.
   The website's glass surface (website/index.html "glass topping"): ink on
   paper, emphasis by opacity, the pool ground with its two blooms behind the
   glass (the third written colour exception in CLAUDE.md). Night is the
   default, like the website. Every class is prefixed hub-. */

:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --ink: #0a0a0a;
  --mute: rgba(10,10,10,0.6);
  --soft: rgba(10,10,10,0.42);
  --hair: rgba(10,10,10,0.10);
  --btn-ink: #fbfbfa;
  --card: rgba(255,255,255,0.40);
  --line: rgba(255,255,255,0.75);
  --glass-inner: rgba(255,255,255,1);
  --glass-rim: rgba(10,10,10,0.08);
  --glass-sheen: linear-gradient(120deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 38%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.25) 100%);
  --shadow: 0 40px 90px -36px rgba(10,10,10,0.30), 0 10px 30px -14px rgba(10,10,10,0.10);
  --pool-rgb: 40,44,58; --pool-gain: 84;
  --bloom-cool: rgba(159,183,255,0.42); --bloom-warm: rgba(255,210,161,0.30);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0d10;
  --ink: #ededec;
  --mute: rgba(237,237,236,0.62);
  --soft: rgba(237,237,236,0.4);
  --hair: rgba(237,237,236,0.12);
  --btn-ink: #0c0d10;
  --card: rgba(30,33,42,0.30);
  --line: rgba(255,255,255,0.16);
  --glass-inner: rgba(255,255,255,0.30);
  --glass-rim: rgba(0,0,0,0.35);
  --glass-sheen: linear-gradient(120deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 38%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.08) 100%);
  --shadow: 0 40px 90px -36px rgba(0,0,0,0.8), 0 10px 30px -14px rgba(0,0,0,0.55);
  --pool-rgb: 223,233,255; --pool-gain: 160;
  --bloom-cool: rgba(159,183,255,0.32); --bloom-warm: rgba(255,210,161,0.14);
}

* { box-sizing: border-box; }
html { background: var(--bg); transition: background-color .4s ease; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--ink); color: var(--btn-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── the ground: the website's water, fixed behind the page ── */
.hub-pool { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.hub-pool canvas { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); display: block; filter: blur(1.2px); }
.hub-pool i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hub-pool__a { left: -10vmax; top: -12vmax; width: 80vmax; height: 44vmax; background: radial-gradient(closest-side, var(--bloom-cool), transparent); animation: hub-pool1 40s ease-in-out infinite alternate; }
.hub-pool__b { right: -24vmax; bottom: -20vmax; width: 70vmax; height: 40vmax; background: radial-gradient(closest-side, var(--bloom-warm), transparent); animation: hub-pool2 48s ease-in-out infinite alternate; }
.hub-pool__grain { position: absolute; inset: 0; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes hub-pool1 { to { transform: translate(18vmax, 12vmax) rotate(18deg); } }
@keyframes hub-pool2 { to { transform: translate(-22vmax, -10vmax) rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .hub-pool i { animation: none; } }

/* ── glass ── */
.hub-glass {
  background-color: var(--card); background-image: var(--glass-sheen);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 -1px 0 var(--glass-rim), 0 0 0 1px var(--glass-rim), var(--shadow);
  -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(170%) brightness(1.04);
}
.hub-label {
  margin: 0; font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.hub-mute { color: var(--mute); }
.hub-ic { flex: none; }

/* ── top bar ── */
.hub-top, .hub, .hub-foot { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; }
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 0; }
.hub-top__brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.hub-top__mark { width: 16px; height: auto; }
.hub-top__end { display: flex; align-items: center; gap: 8px; }
.hub-top__site {
  height: 36px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; white-space: nowrap;
  transition: transform .2s ease;
}
.hub-top__site:hover { transform: translateY(-1px); }
.hub-theme { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .25s ease; }
.hub-theme:hover { transform: rotate(-8deg); }
.hub-theme__sun { display: none; }
:root:not([data-theme="dark"]) .hub-theme__sun { display: block; }
:root:not([data-theme="dark"]) .hub-theme__moon { display: none; }

/* ── layout: profile and DiDo on the left, the links on the right; one column on a phone ── */
.hub { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; padding-top: 40px; }
.hub-side { flex: 1 1 320px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hub-groups {
  flex: 999 1 460px; min-width: 0; display: grid; gap: 26px 20px; align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

/* ── profile ── */
.hub-me { display: flex; align-items: center; gap: 14px; }
.hub-me__ava { width: 64px; height: 64px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hub-me__mark { width: 27px; height: auto; }
.hub-me__id { display: flex; flex-direction: column; min-width: 0; }
.hub-me__name { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.hub-me__handle { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.hub-bio { margin: 0; font-size: 15px; line-height: 1.55; }
.hub-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-soc__a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.hub-soc__a:hover { transform: translateY(-2px); }

/* ── DiDo, the featured card ── */
.hub-dido { display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 14px; border-radius: 24px; }
.hub-dido__shot { display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--hair); }
.hub-dido__shot img { width: 100%; height: auto; aspect-ratio: 1280 / 644; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hub-dido__shot:hover img { transform: scale(1.025); }
.hub-dido__body { display: flex; flex-direction: column; gap: 3px; padding: 0 6px; }
.hub-dido__body .hub-label { font-size: 9px; }
.hub-dido__name { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.hub-dido__line { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.hub-dido__sub { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.hub-dido__cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 6px 0; }
.hub-btn {
  height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: transform .2s ease;
}
.hub-btn:hover { transform: translateY(-1px); }
.hub-btn:active { transform: scale(.97); }
.hub-btn--ink { background: var(--ink); color: var(--btn-ink); }

/* ── digitaldon.net ── */
.hub-site { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 20px; transition: transform .2s ease; }
.hub-site:hover { transform: translateY(-1px); }
.hub-site__img { width: 96px; height: auto; flex: none; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; }
.hub-site__txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.hub-site__t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hub-site__s { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── link groups ── */
.hub-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hub-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.hub-label--note { font-size: 9px; color: var(--soft); white-space: nowrap; }
.hub-list { border-radius: 22px; overflow: hidden; }
.hub-row {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 0; border-bottom: 1px solid var(--hair); background: transparent; text-align: left; cursor: pointer;
  transition: background-color .2s ease;
}
.hub-row:last-child { border-bottom: 0; }
.hub-row:hover { background-color: var(--hair); }
.hub-row__ic { width: 38px; height: 38px; flex: none; border-radius: 11px; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; }
.hub-row__txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.hub-row__t { font-size: 15px; font-weight: 500; }
.hub-row__s { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-row__go { flex: none; color: var(--soft); transition: transform .2s ease, color .2s ease; }
.hub-row:hover .hub-row__go, .hub-site:hover .hub-row__go { transform: translate(2px, -2px); color: var(--ink); }
.hub-row__ca { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--mute); word-break: break-all; }
.hub-row__copy { flex: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

/* ── footer ── */
.hub-foot {
  margin-top: auto; padding: 40px 0 max(24px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft);
}
.hub-foot a { display: flex; align-items: center; gap: 7px; }
.hub-foot__mark { width: 11px; height: auto; }

@media (min-width: 900px) {
  body { padding: 0 40px; }
  .hub-top { padding-top: 24px; }
  .hub { padding-top: 56px; }
}

/* the copy fallback's textarea, out of sight (no inline style under this CSP) */
.hub-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
