:root {
  color-scheme: dark;
  --bg: #211719;
  --ink: #fff7f0;
  --muted: #d8c5c2;
  --rose: #f4b4a5;
  --line: #644648;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #523538, transparent 42rem), var(--bg);
  color: var(--ink);
  font: 1rem/1.55 system-ui, sans-serif;
}
main { width: min(100% - 32px, 460px); margin-inline: auto; padding: 20px 0 48px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.photo { position: relative; }
.frame { aspect-ratio: 4 / 4.15; border-radius: 20px; overflow: hidden; background: #493436; touch-action: pan-y; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; user-select: none; }
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #211719ad;
  color: white;
  font-size: 1.65rem;
  line-height: 1;
}
.arrow:hover { background: #211719; }
#previous { left: 10px; }
#next { right: 10px; }
.gallery-bar, .dots { display: flex; justify-content: center; }
.gallery-bar { position: relative; }
#gallery-playback {
  position: absolute;
  inset: 0 0 0 auto;
  border: 0;
  padding: 0 8px;
  color: var(--muted);
  background: none;
  font-size: .875rem;
}
.dots button { display: grid; place-items: center; width: 32px; height: 36px; background: none; border: 0; padding: 0; }
.dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #b99da0; }
.dots button[aria-current=true]::before { background: var(--rose); transform: scale(1.35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.identity, .about { text-align: center; }
h1 { margin: 0; font: 400 clamp(2.5rem, 8vw, 3.75rem)/.95 Georgia, serif; letter-spacing: -.07em; }
.identity { margin-top: 16px; }
.identity p { margin: 8px 0 0; color: var(--muted); }
.about { margin: 20px auto; max-width: 35ch; color: var(--muted); }
.identity .welcome { margin: 16px auto 0; max-width: 36ch; }
.about h2 { margin: 0; color: var(--ink); font: 400 1.8rem Georgia, serif; }
.about p { margin: 10px 0 0; }
.private-link { margin-top: 20px; text-align: center; }
.button { display: block; width: 100%; border-radius: 16px; padding: 13px 16px; text-align: center; font-weight: 650; }
.button { border: 0; background: var(--rose); color: var(--bg); text-decoration: none; }
.button:hover { background: #ffcabd; }
.verified-portfolio-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.verified-portfolio-button svg { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .portfolio-button { animation: portfolio-bump 1s ease-out infinite; }
  .frame img[data-direction]:not([hidden]) { animation: gallery-slide .38s ease-out both; }
  .frame img[data-direction="forward"] { --slide-offset: 18%; }
  .frame img[data-direction="backward"] { --slide-offset: -18%; }
}
@keyframes portfolio-bump {
  0%, 50%, 100% { transform: scale(1); }
  20% { transform: scale(1.035); }
  36% { transform: scale(.995); }
}
@keyframes gallery-slide {
  from { transform: translateX(var(--slide-offset)); opacity: .45; }
  to { transform: translateX(0); opacity: 1; }
}
.contact { border: 1px solid var(--line); border-radius: 16px; background: #2d1d20; }
.contact h2 { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 1rem; }
form { display: grid; gap: 14px; padding: 16px; }
label { display: grid; gap: 6px; color: var(--muted); }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); color: var(--ink); }
textarea { resize: vertical; }
.status { margin: 0; color: var(--muted); font-size: .9rem; }
.status:empty, #contact-challenge:empty, #profile-challenge:empty { display: none; }
#profile-challenge:not(:empty) { margin-top: 12px; }
@media (max-width: 480px) { main { padding-top: 12px; } }


.languages { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.languages a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.languages a[aria-current="page"] { border-color: var(--rose); color: var(--ink); }
