/* Shared by every page. Page stylesheets only add what differs. */

:root {
  color-scheme: dark;
  --bg: #1e1f20;
  --surface: #272829;
  --border: #333435;
  --border-mid: #444546;
  --text-1: #e2e2e0;
  --text-2: #a0a09e;
  --text-3: #9c9c9a;
}

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

html,
body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text-1);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.avatar-wrap {
  margin-bottom: 20px;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border-mid);
  display: block;
  margin: 0 auto;
  background: var(--border);
}

.name {
  font-family: "DM Mono", monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.role {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

.footer {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

@media (max-width: 540px) {
  .card {
    border-radius: 16px;
  }
  .name {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::after,
  ::before {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  *,
  ::after,
  ::before {
    background: #fff !important;
    color: #000 !important;
  }
  .scroll-btn,
  .home-btn {
    display: none !important;
  }
  .card {
    border: 0;
  }
}
