:root {
  --bg: #eee;
  --ink: #181c1f;
  --muted: #66716b;
  --card: #ffffff;
  --line: #ddd;
  --teal: #222;
  --rose: #777;
  --amber: #999;
  --shadow: 0 18px 45px rgba(24, 28, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

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

.page {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 1040px;
  min-height: 100vh;
  padding: 56px 22px 32px;
}

.intro {
  align-items: center;
  display: flex;
  gap: 22px;
}

.avatar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: block;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.avatar.is-rounded {
  border-radius: 50%;
}

.avatar.is-rotated {
  transition: transform 1s ease-out;
}

.avatar.is-rotated:hover {
  transform: rotateZ(360deg);
}

.eyebrow {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1 {
  font-size: 4.8rem;
  line-height: 0.95;
  margin: 0;
}

.tagline {
  color: var(--muted);
  font-size: 1rem;
  margin: 16px 0 0;
  max-width: 34rem;
}

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

.link-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 28, 31, 0.055);
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 22px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(34, 34, 34, 0.45);
  box-shadow: 0 18px 40px rgba(24, 28, 31, 0.1);
  transform: translateY(-2px);
}

.link-card:focus-visible {
  outline: 3px solid rgba(34, 34, 34, 0.16);
  outline-offset: 3px;
}

.link-card.primary {
  grid-column: span 2;
}

.card-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-icon {
  color: var(--teal);
  font-size: 1.35rem;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.card-copy {
  align-self: end;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 8px 16px;
  justify-content: space-between;
}

.footer a {
  border-bottom: 1px dotted rgba(102, 113, 107, 0.55);
}

.footer a:hover,
.footer a:focus-visible {
  border-bottom-color: currentColor;
  color: var(--ink);
}

.item-icon {
  margin-right: .35em;
}

@media (max-width: 820px) {
  .page {
    padding-top: 32px;
  }

  h1 {
    font-size: 3.6rem;
  }

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

@media (max-width: 560px) {
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .avatar {
    border-radius: 18px;
    height: 78px;
    width: 78px;
  }

  h1 {
    font-size: 2.7rem;
  }

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

  .link-card,
  .link-card.primary {
    grid-column: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #222;
    --ink: #f1f4ef;
    --muted: #a7b0aa;
    --card: #2b2b2b;
    --line: #3a3a3a;
    --teal: #f1f4ef;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
  }
}
