@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg: #0a0e14;
  --bg2: #0f1923;
  --bg3: #151f2e;
  --green: #00ff88;
  --green-dim: #00ff8820;
  --green-dark: #00cc6a;
  --blue: #00aaff;
  --blue-dim: #00aaff18;
  --text: #d0dce8;
  --text-dim: #506880;
  --text-bright: #eaf1f8;
  --border: #1c3048;
  --border-bright: #2c5070;
}

html.light {
  --bg: #e8ecf0;
  --bg2: #dce2e8;
  --bg3: #d0d8e0;
  --text: #1a2332;
  --text-dim: #506080;
  --text-bright: #0d1420;
  --border: #b0bcc8;
  --border-bright: #90a0b4;
  --green: #008844;
  --green-dim: #00884418;
  --green-dark: #006633;
  --blue: #0066aa;
  --blue-dim: #0066aa18;
}

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

/* ~150% browser zoom: all rem-based UI scales together */
html {
  font-size: 150%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Share Tech Mono', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.015) 1px, transparent 1px);
  background-size: 3.125rem 3.125rem;
  pointer-events: none;
  z-index: 0;
}

html.light body::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.hub {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.25rem 3rem;
  max-width: 32rem;
  margin: 0 auto;
}

.hub-top {
  align-self: flex-end;
  margin-bottom: 0.5rem;
}

.theme-toggle {
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

.theme-toggle:focus-visible {
  outline: 0.125rem solid var(--blue);
  outline-offset: 0.125rem;
}

.avatar-wrap {
  margin-bottom: 1.25rem;
}

.avatar {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--green);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.45);
  background: var(--bg2);
  border: 2px solid var(--border);
  box-shadow: 0 0 0 1px var(--green-dim), 0 0.5rem 2rem rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hub-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: var(--green);
  text-shadow: 0 0 25px rgba(0, 255, 136, 0.45);
  margin: 0 0 0.5rem;
  text-align: center;
}

.hub-tagline {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  max-width: 28rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.25);
}

.link-card:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
  box-shadow: 0 0 0 1px var(--green-dim), 0 0.5rem 1.75rem rgba(0, 0, 0, 0.3);
}

.link-card:focus-visible {
  outline: 0.125rem solid var(--blue);
  outline-offset: 0.125rem;
}

.link-card-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
}

.link-card:hover .link-card-icon {
  color: var(--green);
}

.link-card-label {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.link-card-chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  opacity: 0.7;
}

.link-card:hover .link-card-chevron {
  color: var(--green);
}

.hub-footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.hub-footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.hub-footer a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.hub-error {
  padding: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border-bright);
  border-radius: 0.375rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}
