:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --text: #090909;
  --muted: #686868;
  --line: #d9d9d4;
  --panel: #ffffff;
  --inverse: #0a0a0a;
  --inverse-text: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(9, 9, 9, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 9, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 0 48px;
}

.avatar-wrap {
  width: clamp(116px, 18vw, 172px);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.eyebrow {
  margin: 28px 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0;
}

.tagline {
  max-width: 640px;
  margin: 24px 0 0;
  color: #2c2c2c;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}

.category-card {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  color: var(--inverse-text);
  border-color: var(--inverse);
  background: var(--inverse);
  transform: translateY(-4px);
  outline: none;
}

.card-index {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.category-card:hover .card-index,
.category-card:focus-visible .card-index,
.category-card:hover .card-copy,
.category-card:focus-visible .card-copy {
  color: rgba(255, 255, 255, 0.72);
}

.card-title {
  display: block;
  margin-top: auto;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
}

.card-copy {
  display: block;
  min-height: 54px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 28px, 680px);
    padding: 42px 0 48px;
  }

  .hero {
    padding-bottom: 34px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 420px);
  }

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

  .category-card {
    min-height: 166px;
  }
}
