:root {
  --white: rgb(255, 255, 255);
  --black: rgb(0, 0, 0);

  --gray-50: #f8f9f9;
  --gray-100: #dfe3e2;
  --gray-200: #c6cdcb;
  --gray-300: #aeb6b5;
  --gray-400: #95a09e;
  --gray-500: #7c8988;
  --gray-600: #667171;
  --gray-700: #505959;
  --gray-800: #3a4141;
  --gray-900: #252829;
  --gray-950: #0f1011;

  --accent-50: #f2fbf9;
  --accent-100: #c3ece1;
  --accent-200: #95dccb;
  --accent-300: #68cbb8;
  --accent-400: #3db9a5;
  --accent-500: #12a594;
  --accent-600: #0d8a80;
  --accent-700: #096e6a;
  --accent-800: #065151;
  --accent-900: #033133;
  --accent-950: #011315;

  --font-size-1: 0.75rem;
  --font-size-2: 0.875rem;
  --font-size-3: 1rem;
  --font-size-4: 1.125rem;
  --font-size-5: 1.25rem;
  --font-size-6: 1.5rem;
  --font-size-7: 1.75rem;
  --font-size-8: 2rem;

  --font-weight-normal: 400;
  --font-weight-bold: 700;

  --avatar-size-3xl: 240px;

  --background: var(--gray-50);
  --foreground: var(--gray-950);
  --link-color: var(--accent-700);
  --muted-color: var(--gray-600);
}

@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #0f1011;
    --gray-100: #252829;
    --gray-200: #3a4141;
    --gray-300: #505959;
    --gray-400: #667171;
    --gray-500: #7c8988;
    --gray-600: #95a09e;
    --gray-700: #aeb6b5;
    --gray-800: #c6cdcb;
    --gray-900: #dfe3e2;
    --gray-950: #f8f9f9;

    --accent-50: #011315;
    --accent-100: #033133;
    --accent-200: #065151;
    --accent-300: #096e6a;
    --accent-400: #0d8a80;
    --accent-500: #12a594;
    --accent-600: #3db9a5;
    --accent-700: #68cbb8;
    --accent-800: #95dccb;
    --accent-900: #c3ece1;
    --accent-950: #f2fbf9;
  }
}

html {
  background-color: var(--background);
  color: var(--foreground);
  font-family: sans-serif;
}

.site-main {
  padding-block: 2rem;
  padding-inline: 1rem;
  overflow-wrap: anywhere;
}
.site-main:where([data-layout="centered"]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-block-size: 100svh;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile__pronunciation {
  color: var(--muted-color);
}

.profile__avatar {
  margin-block: 1.5rem;
}

.heading {
  font-weight: var(--font-weight-bold);
}
.heading:where([data-size="large"]) {
  font-size: var(--font-size-7);
}
.heading:where([data-size="medium"]) {
  font-size: var(--font-size-6);
}

.avatar {
  position: relative;
  inline-size: min(100%, var(--avatar-size-3xl));
  overflow: hidden;
  border-radius: 9999px;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.avatar:enabled {
  cursor: pointer;
}

.avatar:focus-visible {
  outline: 2px solid var(--accent-700);
  outline-offset: 3px;
}

.avatar__image {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/avatar-sky.webp") center / cover no-repeat;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.avatar[aria-pressed="true"]::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .avatar::after {
    transition: none;
  }
}

.accounts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.accounts__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.accounts__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link:where([data-color="accent"]) {
  color: var(--link-color);
}
.link:where([data-decoration="underline-hover"]) {
  text-decoration-line: none;
}
.link:where([data-decoration="underline-hover"]):is(
    :hover,
    :focus-visible,
    :active
  ) {
  text-decoration-line: underline;
}
