:root {
  --bg: #f4f4f4;
  --bg-accent: #e6e6e6;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #111111;
  --muted: #4f4f4f;
  --border: rgba(17, 17, 17, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
  --accent: #1a1a1a;
  --accent-strong: #000000;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.08), transparent 32%),
    radial-gradient(circle at right 12% bottom 18%, rgba(0, 0, 0, 0.05), transparent 24%),
    linear-gradient(145deg, var(--bg) 0%, #f8f6f1 45%, var(--bg-accent) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 4rem;
  right: 6vw;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(27, 24, 22, 0.08);
  border-radius: 32px;
  transform: rotate(18deg);
}

body::after {
  left: -4rem;
  bottom: 8rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.hero {
  padding: 1.75rem 0 2.25rem;
  animation: rise-in 700ms ease-out both;
}

.eyebrow,
.panel-kicker,
.link-card span {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.intro {
  width: min(42rem, 100%);
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.intro .intro-handle {
  color: var(--accent-strong);
  font-weight: 700;
}

.intro .intro-surname {
  color: #2e2e2e;
  font-style: italic;
  font-weight: 500;
}

.intro .intro-given {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9em;
}

.intro .intro-callsign {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  color: #1f1f1f;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 0.35rem;
  padding: 0.05rem 0.35rem;
}

.intro .intro-others {
  font-style: italic;
  color: #6b6b6b;
}

main {
  display: grid;
  gap: 1.25rem;
}

.panel {
  backdrop-filter: blur(12px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  animation: rise-in 700ms ease-out both;
}

.panel-primary {
  background: linear-gradient(160deg, var(--surface-strong), rgba(235, 235, 235, 0.82));
}

.panel + .panel {
  animation-delay: 120ms;
}

.panel-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.link-card {
  display: grid;
  gap: 0.45rem;
  min-height: 128px;
  padding: 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: inherit;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.96);
}

.link-card strong {
  font-size: 1.08rem;
}

.link-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-all;
}

.link-card span a {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
}

.link-card span a:hover,
.link-card span a:focus-visible {
  color: var(--accent-strong);
}

.link-card.featured {
  background: linear-gradient(160deg, rgba(10, 10, 10, 0.96), rgba(35, 35, 35, 0.96));
  color: #fafafa;
}

.link-card.featured span {
  color: rgba(250, 250, 250, 0.76);
}

.site-footer {
  padding: 1rem 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  animation: rise-in 700ms ease-out 220ms both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .panel,
  .site-footer,
  .link-card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 1.25rem, 1100px);
    padding-top: 0.75rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}