* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --background: #080808;
  --surface: #111111;
  --surface-hover: #171717;
  --border: #292929;
  --border-hover: #454545;
  --text: #f5f5f5;
  --muted: #929292;
  --disabled: #666666;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.055), transparent 42%),
    var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100% - 40px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0 24px;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 34px;
}

.portrait-frame {
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid #353535;
  border-radius: 50%;
  background: linear-gradient(145deg, #242424, #0d0d0d);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a1a1a1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 38px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.button-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-button {
  --accent: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.015);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

a.tool-button {
  cursor: pointer;
}

.button-arrow {
  margin-left: 16px;
  color: #888888;
  font-size: 12px;
  transition: transform 0.25s ease, color 0.25s ease;
}

a.tool-button:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

a.tool-button:hover .button-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

a.tool-button:active {
  transform: translateY(-1px);
}

@media (hover: none) {
  a.tool-button:active {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
  }
}

.tool-button:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 4px;
}

.placeholder-button {
  color: var(--disabled);
  cursor: not-allowed;
  background: #0d0d0d;
  border-color: #202020;
}

.placeholder-button .button-arrow {
  color: #4d4d4d;
}

.page-footer {
  margin-top: auto;
  padding-top: 42px;
  text-align: center;
}

.copyright {
  margin: 0;
  color: #626262;
  font-size: 11px;
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 32px, 520px);
    padding-top: 42px;
  }

  .portrait-frame {
    width: 100px;
    height: 100px;
  }

  .tool-button {
    min-height: 58px;
    padding: 0 17px;
  }

  .page-footer {
    padding-top: 34px;
  }
}

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