:root {
  color-scheme: dark;
  background: #242424;
  color: #f5f5f2;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  background: #242424;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.site-nav {
  display: flex;
  justify-content: center;
}

.statement {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(24px, 5vh, 54px);
  width: min(100%, 1100px);
  padding: clamp(28px, 7vh, 80px) 0 clamp(48px, 9vh, 100px);
  text-align: center;
}

.brand {
  display: block;
  width: clamp(72px, 11vw, 132px);
  height: auto;
  color: #f5f5f2;
}

.brand--claude-code {
  width: clamp(80px, 11vw, 132px);
}

h1 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-family:
    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3rem, 5.6vw, 5.25rem);
  font-style: italic;
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 6px 18px 6px 6px;
  border: 1px solid #484848;
  border-radius: 999px;
  color: #f5f5f2;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.profile:hover {
  border-color: #777;
  background: #2d2d2d;
  transform: translateY(-2px);
}

.profile:focus-visible {
  outline: 3px solid #f5f5f2;
  outline-offset: 4px;
}

.profile img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.profile > span {
  display: grid;
  gap: 1px;
  text-align: left;
}

.profile__label {
  color: #ababab;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile__handle {
  font-size: 1rem;
  font-weight: 650;
}

.apps-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #8f8f8f;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.apps-link:hover {
  color: #d8d8d4;
  background: #2d2d2d;
}

.apps-link:focus-visible {
  outline: 3px solid #f5f5f2;
  outline-offset: 3px;
}

.apps-link__mark {
  width: 4px;
  height: 4px;
  margin: -6px 6px 0 0;
  border-radius: 1px;
  background: currentColor;
  box-shadow:
    6px 0 currentColor,
    0 6px currentColor,
    6px 6px currentColor;
}

.apps-link__arrow {
  margin-left: -2px;
  font-size: 0.8rem;
  line-height: 1;
}

@media (max-height: 620px) and (min-width: 600px) {
  .statement {
    grid-template-columns: auto 1fr auto;
    gap: clamp(18px, 4vw, 36px);
    padding: 20px 0 28px;
  }

  h1 {
    font-size: clamp(2rem, 5.2vw, 3.75rem);
  }

  .brand,
  .brand--claude-code {
    width: clamp(56px, 9vw, 90px);
  }
}

@media (max-width: 520px) {
  body {
    padding-inline: max(16px, env(safe-area-inset-left));
  }

  .statement {
    gap: clamp(22px, 4.5vh, 38px);
    padding-bottom: clamp(36px, 7vh, 68px);
  }

  h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.1rem);
    line-height: 0.98;
    white-space: normal;
  }

  h1 span {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile,
  .apps-link {
    transition: none;
  }
}
