@font-face {
  font-family: JustListenMontserrat;
  src: url('montserrat-original-regular.woff2') format('woff2');
  font-display: swap;
}
:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: linear-gradient(135deg, #100720, #25103f 65%, #100720);
  color: #f4edf8;
  font: 1rem/1.8 'Noto Sans JP', system-ui, sans-serif;
}
a { color: #ecd58d; }
:focus-visible { outline: 2px solid #ead48c; outline-offset: 4px; }
[lang="en"] { font-family: JustListenMontserrat, Arial, sans-serif; }
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 0 5%;
  border-bottom: 1px solid #d4af3744;
  background: #100720;
}
@media (max-width: 1000px) {
  .profile-header { min-height: 74px; padding-inline: 6%; }
  .profile-header .brand-lockup { max-width: min(50vw, 210px); }
}
.profile-header > a:last-child { font-size: .85rem; }
.profile-shell { max-width: 1050px; margin: auto; padding: clamp(30px, 6vw, 78px) 5%; }
.profile-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
  margin-bottom: 40px;
}
.profile-hero h1 { font: 700 clamp(28px, 5vw, 54px)/1.4 'Noto Serif JP', serif; margin: 0; }
.profile-kicker { color: #e3bd54; font-size: .72rem; letter-spacing: .15em; }
.profile-name { font-size: clamp(18px, 3vw, 30px); margin: 7px 0; }
.profile-portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 1px solid #d4af3766; border-radius: 6px; }
.profile-panel, .profile-bio {
  background: #1b102c;
  border: 1px solid #d4af3755;
  border-radius: 8px;
  padding: clamp(16px, 4vw, 35px);
  margin-top: 24px;
}
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; }
.profile-footer { border-top: 1px solid #ffffff26; padding: 20px 5%; text-align: center; font-size: 10px; }
.profile-gallery, .profile-link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.profile-gallery figure { margin: 0; }
.profile-gallery img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; background: #100720; border-radius: 6px; }
.profile-gallery figcaption { overflow-wrap: anywhere; }
.profile-link-card { display: block; border: 1px solid #d4af3766; border-radius: 6px; padding: 12px 16px; text-decoration: none; overflow-wrap: anywhere; }
.profile-link-card small { display: block; color: #ded0e5; }
.profile-actions, .profile-languages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.profile-button, button, .profile-admin input, .profile-admin textarea {
  font: inherit; color: inherit; background: #241738; border: 1px solid #a78cbc;
  border-radius: 6px; padding: 8px 12px; min-height: 44px;
}
.profile-button { display: inline-block; text-decoration: none; }
button { cursor: pointer; }
button[aria-pressed="true"], .profile-primary { color: #170c26; background: #ecd58d; }
.profile-admin label { display: grid; gap: 6px; margin: 12px 0; }
.profile-admin :is(input, textarea) { width: 100%; }
.profile-admin textarea { resize: vertical; }
.profile-edit-row { border-top: 1px solid #ffffff26; padding-block: 12px; }
.profile-edit-row img { display: block; width: 130px; height: auto; max-height: 150px; object-fit: contain; }
@media (max-width: 650px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-portrait { max-width: 340px; }
}
