@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/manrope-vietnamese-wght-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
#preview {
  --ui-font: "Manrope Variable", "Segoe UI", sans-serif;
  --ink: #203657;
  --ink-secondary: #465a73;
  --ink-muted: #52647b;
  --action: #184782;
  --focus: #245caa;
  --target-min-height: 44px;
  --page-inset: 16px;
  --section-gap: 16px;
  --link-gap: 8px;
  --link-height: 48px;
  --link-size: 1rem;
  --handle-size: 1.375rem;
  --handle-leading: 1.75rem;
  --heading-size: 1.125rem;
  --heading-leading: 1.625rem;
}
@media (min-width: 600px) {
  #preview {
    --page-inset: 20px;
    --section-gap: 20px;
    --link-gap: 12px;
    --link-height: 50px;
    --handle-size: 1.5rem;
    --handle-leading: 1.875rem;
    --heading-size: 1.25rem;
    --heading-leading: 1.75rem;
  }
}
@media (min-width: 1200px) {
  #preview {
    --page-inset: 24px;
    --link-height: 52px;
    --link-size: 1.0625rem;
  }
}
* { box-sizing: border-box; }
:where(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  font-family: var(--ui-font);
  background: radial-gradient(ellipse at 14% 14%, #afcff7, transparent 54%),
              radial-gradient(ellipse at 93% 68%, #f8cfe0, transparent 52%), #fcfbfa;
}
.profile-page {
  width: min(calc(100% - 2 * var(--page-inset)), 548px);
  margin-inline: auto;
  padding-block: var(--page-inset) 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--section-gap);
}
.profile-page > :is(.youtube-card, .contact-form) {
  background: rgb(255 250 251 / 62%);
  border-radius: 16px;
}

.profile-signature {
  position: relative;
  container-type: inline-size;
  width: 100%;
  justify-self: center;
  max-width: 360px;
  text-align: center;
}
.profile-art { position: relative; padding: 8px 0; }
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.profile-wordmark {
  margin: 0;
  color: rgb(56 93 142 / 30%);
  font: 700 min(20.5cqi, 82px)/1.1 var(--ui-font);
  letter-spacing: .18em;
}
.profile-wordmark span {
  display: block;
  width: max-content;
  margin-inline: auto;
  padding-inline-start: .18em;
  white-space: nowrap;
  mask-image: linear-gradient(to right, rgb(0 0 0 / 12%), black 40%, black 60%, rgb(0 0 0 / 12%));
}
.profile-wordmark span + span { margin-top: .03em; }
@media (min-width: 1024px) {
  .profile-wordmark {
    display: grid;
    grid-template-columns: 100%;
    justify-items: center;
    letter-spacing: .24em;
  }
  .profile-wordmark span { margin-inline: 0; padding-inline-start: .24em; }
}
.profile-signature .bear-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(74px, 30cqi, 108px);
  height: auto;
  filter: drop-shadow(0 2px 3px rgb(44 55 80 / 9%));
}
@media (prefers-reduced-motion: no-preference) {
  .profile-page {
    --contact-duration: 280ms;
    --last-contact-delay: 160ms;
    --social-start: calc(var(--last-contact-delay) + var(--contact-duration) + 20ms);
    --social-duration: 260ms;
    --row-step: 90ms;
  }
  .profile-contact a {
    animation: contact-appear var(--contact-duration) ease-out var(--contact-delay, 0s) backwards;
  }
  .profile-contact a:nth-child(2) { --contact-delay: 75ms; }
  .profile-contact a:nth-child(3) { --contact-delay: var(--last-contact-delay); }
  .social-link:nth-child(2) { --row-index: 1; }
  .social-link:nth-child(3) { --row-index: 2; }
  .social-link:nth-child(4) { --row-index: 3; }
  .social-link:nth-child(5) { --row-index: 4; }
  .social-link:nth-child(6) { --row-index: 5; }
  .social-link {
    --entry-delay: calc(var(--social-start) + var(--row-index, 0) * var(--row-step));
    animation: social-arrive var(--social-duration) ease-out var(--entry-delay) backwards;
  }
  .social-link::before {
    transform-origin: top right;
    animation: glass-arrive var(--social-duration) ease-out var(--entry-delay);
  }
}
@keyframes contact-appear {
  from { opacity: .6; transform: translateY(10px) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes social-arrive {
  from { opacity: .68; transform: translateX(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes glass-arrive {
  from { opacity: var(--edge-light, 0); transform: scaleX(.3); }
  48% { opacity: 1; }
  to { opacity: var(--edge-light, 0); transform: scaleX(1); }
}

.profile-contact {
  display: flex;
  justify-self: center;
  width: clamp(160px, calc(135px + 7vw), 232px);
  max-width: 100%;
  gap: 4px;
}
.profile-contact img {
  width: clamp(18px, calc(16px + .6vw), 24px);
  height: auto;
}
.profile-contact a {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: var(--target-min-height);
  border-radius: 7px;
  background: rgb(245 250 255 / 50%);
}
.profile-contact a:first-child { border-radius: 24px 7px 7px 24px; }
.profile-contact a:last-child { border-radius: 7px 24px 24px 7px; }
.profile-contact a:hover { background: rgb(245 250 255 / 72%); }
.profile-contact a:focus-visible { outline-offset: 1px; }

.social-links {
  display: grid;
  gap: var(--link-gap);
}
.social-link {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: var(--link-height);
  padding: 8px 16px;
  border-radius: 16px;
  background: linear-gradient(45deg, rgb(227 240 255 / 26%), rgb(255 246 251 / 38%) 65%, rgb(255 255 255 / 76%));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset -1px 1px 0 rgb(255 255 255 / 88%), inset 1px -1px 0 rgb(255 255 255 / 32%), -2px 2px 5px rgb(50 73 107 / 8%);
  color: var(--action);
  font: 600 var(--link-size)/1.5rem var(--ui-font);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.social-link::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42%, 112px);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(45deg, transparent 46%, rgb(255 255 255 / 85%));
  opacity: var(--edge-light, 0);
}
.social-link::after {
  position: relative;
  content: "";
  width: 16px;
  height: 16px;
  background: #446995;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 8-8M5.5 4h5.75q.75 0 .75.75v5.75'/%3E%3C/svg%3E") center / contain no-repeat;
}
.social-link span { transform: translateY(-1px); }
.social-link[data-channel="TikTok"] span { transform: none; }
.social-link[data-channel="TikTok"] img { transform: translateY(-1px); }
.social-link[data-channel="X"] img { scale: .91; }
@media (hover: hover) {
  .social-link:hover { --edge-light: 1; background-color: rgb(225 240 255 / 42%); }
}
.social-link:focus-visible, .social-link:is(:active, .is-pressed) { --edge-light: 1; }
.social-link:is(:active, .is-pressed) { background-color: rgb(155 192 232 / 48%); }
@media (prefers-reduced-motion: no-preference) {
  .social-link::before { transition: opacity 180ms ease-out; }
  .social-link::after {
    transform: translate(calc(var(--edge-light, 0) * 3px), calc(var(--edge-light, 0) * -3px));
    transition: transform 160ms cubic-bezier(.16, 1, .3, 1);
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .profile-signature { max-width: 240px; }
  .profile-art { padding-block: 4px; }
}
.contact-form {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 16px;
  color: var(--ink);
  font: 500 .875rem/1.25rem var(--ui-font);
}
body::before {
  z-index: -1;
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgb(87 110 151 / 16%) 1px, transparent 1.25px) center / 24px 24px;
  mask-image: linear-gradient(to right, black, transparent 36%, transparent 64%, black);
}
.contact-form h2 { margin: 0; font: 650 var(--heading-size)/var(--heading-leading) var(--ui-font); }
.contact-form label { display: grid; gap: 4px; color: var(--ink-secondary); }
.contact-form label small {
  color: var(--ink-muted);
  font: 400 .8125rem/1.25rem var(--ui-font);
}
.contact-form :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px #808a9b;
  color: var(--ink);
  font: 400 1rem/1.5rem var(--ui-font);
  min-height: var(--target-min-height);
}
.contact-form :is(input, textarea)::placeholder { color: var(--ink-muted); }
.contact-form textarea { resize: vertical; }
.mail-handoff, #x-help {
  margin: 0;
  color: var(--ink-secondary);
  text-align: center;
  overflow-wrap: anywhere;
}
#x-help { font: 500 .875rem/1.25rem var(--ui-font); }
.contact-form button {
  justify-self: center;
  -webkit-tap-highlight-color: transparent;
  margin-top: 4px;
  min-height: 48px;
  padding: 8px 36px;
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 100px;
  background: linear-gradient(115deg, rgb(163 204 249 / 76%), rgb(224 225 248 / 78%) 55%, rgb(249 192 215 / 76%));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 64%), 0 3px 8px rgb(56 72 110 / 10%);
  color: var(--ink);
  font: 650 .9375rem/1.25rem var(--ui-font);
  cursor: pointer;
}
.contact-form button:hover { background-color: #e3d7ea; }
.contact-form button:active { box-shadow: inset 0 1px 3px rgb(53 71 110 / 18%); }
.contact-form :is(input, textarea):focus-visible { outline: none; box-shadow: inset 0 -2px var(--focus); }
@media (forced-colors: active) {
  .contact-form :is(input, textarea) { border-bottom: 1px solid FieldText; }
  .contact-form :is(input, textarea):focus-visible { outline: 2px solid Highlight; }
}

.youtube-card {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  color: var(--ink);
  font-family: var(--ui-font);
}
.youtube-cover, .youtube-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  overflow: hidden;
}
.youtube-cover { position: relative; cursor: pointer; }
.youtube-cover img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.youtube-cover span {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(44px, 10vw, 52px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(25 47 79 / 94%);
  color: white;
  font-size: 20px;
}
.youtube-channel { display: grid; grid-template-columns: minmax(0,1fr); justify-items: center; gap: 4px; padding-top: 12px; text-align: center; }
.youtube-channel a { display: inline-grid; place-items: center; color: inherit; text-decoration: none; }
.youtube-channel a:first-child { min-height: var(--target-min-height); max-width: 100%; overflow-wrap: anywhere; font-size: var(--handle-size); line-height: var(--handle-leading); font-weight: 700; letter-spacing: -.02em; }
.youtube-channel p { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--ink-secondary); font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.youtube-channel .youtube-subscribe {
  justify-self: stretch;
  min-height: var(--target-min-height);
  margin-top: 4px;
  border-radius: 24px;
  background: #e6eaf4;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.25rem;
  font-weight: 650;
}
.youtube-channel .youtube-subscribe:hover { background: #d9e1f0; }
@media (hover: hover) {
  .youtube-cover:hover span { background: var(--action); }
  .youtube-channel a:first-child:hover { text-decoration: underline; text-underline-offset: .14em; }
}
.youtube-cover:active span { background: var(--action); }

.profile-footer {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 var(--page-inset) 16px;
  font: 500 .8125rem/1.25rem var(--ui-font);
}
.profile-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min-height);
  color: var(--ink-muted);
  text-decoration: none;
}
.profile-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }


