:root {
  --paper: #fffaf2;
  --ink: #182018;
  --pink: #e96f7e;
  --header-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 68px);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid rgba(24, 32, 24, .1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand span {
  font-size: clamp(22px, 2.1vw, 34px);
}

.brand small {
  font-size: 11px;
  letter-spacing: .14em;
}

.global-nav {
  display: flex;
  gap: clamp(24px, 3.5vw, 58px);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.global-nav a {
  position: relative;
  padding: 10px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .25s;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

.section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.profile-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 650px);
  align-items: center;
  justify-content: center;
  gap: clamp(50px, 8vw, 130px);
  padding: calc(var(--header-h) + 48px) clamp(24px, 7vw, 120px) 48px;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.profile-copy h1 {
  margin: 2px 0 4px;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -.065em;
}

.profile-copy {
  position: relative;
}

.name-reading {
  margin: 14px 0 0;
  padding-left: .12em;
  font: 500 11px "Noto Sans JP", sans-serif;
  letter-spacing: .3em;
}

.role {
  margin: 0 0 clamp(30px, 5vh, 50px);
  color: rgba(24, 32, 24, .58);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.bio-copy {
  padding-top: 24px;
  border-top: 1px solid rgba(24, 32, 24, .22);
}

.bio-copy>p:not(.placeholder-note) {
  margin: 0 0 1.2em;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.9;
  text-align: justify;
}

.placeholder-note {
  margin: 20px 0 0;
  color: rgba(24, 32, 24, .45);
  font-size: 10px;
  line-height: 1.7;
}

.profile-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.profile-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  transition: color .2s, transform .2s;
}

.profile-socials a:hover {
  color: var(--pink);
  transform: translateY(-2px);
}

.profile-socials a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.social-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.social-icon--youtube {
  --icon: url("../img/yt_icon_almostblack_digital.png");
  width: 30px;
  height: 26px;
}

.social-icon--niconico {
  --icon: url("../img/niconico.png");
  width: 30px;
  height: 30px;
}

.social-icon--x {
  --icon: url("../img/x.svg");
  width: 16px;
  height: 16px;
}

.social-icon--instagram {
  --icon: url("../img/instagram.svg");
  width: 19px;
  height: 19px;
}

.social-icon--mail {
  --icon: url("../img/mail.svg");
  width: 21px;
  height: 21px;
}

.profile-kit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: min(100%, 360px);
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  margin: 0;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
  transition: transform .2s, box-shadow .2s;
}

.profile-kit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 32, 24, .16);
}

.profile-kit-button span {
  font-weight: 700;
  letter-spacing: .02em;
}

.profile-kit-button small {
  font-size: 10px;
  letter-spacing: .06em;
}

.profile-details {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
  gap: clamp(50px, 10vw, 160px);
  max-width: 1280px;
  margin: auto;
  padding: clamp(90px, 10vw, 140px) clamp(24px, 7vw, 100px);
  border-top: 1px solid rgba(24, 32, 24, .1);
}

.details-heading h2 {
  margin: 12px 0 0;
  font: 700 clamp(32px, 4vw, 56px) "Noto Sans JP", sans-serif;
  letter-spacing: -.05em;
}

.details-list {
  margin: 0;
  border-top: 1px solid rgba(24, 32, 24, .25);
}

.details-list div {
  display: grid;
  grid-template-columns: minmax(100px, .45fr) 1fr;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(24, 32, 24, .25);
}

.details-list dt {
  color: rgba(24, 32, 24, .55);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}

.details-list dd {
  margin: 0;
  font: 500 clamp(15px, 1.4vw, 18px) "Noto Sans JP", sans-serif;
}

.profile-links {
  max-width: 1280px;
  margin: auto;
  padding: clamp(90px, 10vw, 140px) clamp(24px, 7vw, 100px);
  border-top: 1px solid rgba(24, 32, 24, .1);
}

.profile-links h2 {
  margin: 12px 0 50px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
}

.link-list {
  border-top: 1px solid rgba(24, 32, 24, .25);
}

.link-list a {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid rgba(24, 32, 24, .25);
  transition: color .2s;
}

.link-list a:hover {
  color: var(--pink);
}

.link-list span {
  font-size: clamp(20px, 2.4vw, 32px);
}

.link-list small {
  font-size: 11px;
  letter-spacing: .08em;
}

.link-list b {
  font-size: 20px;
  font-weight: 400;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 44px clamp(24px, 4vw, 68px);
  border-top: 1px solid rgba(24, 32, 24, .1);
}

footer p {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (max-width: 800px) {
  :root {
    --header-h: 70px;
  }

  .brand small {
    display: none;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    padding: 10px 4px;
    border: 0;
    background: none;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transition: transform .25s, opacity .25s;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    z-index: -1;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px 30px;
    background: var(--paper);
    transform: translateY(-120%);
    transition: transform .3s;
  }

  .global-nav.is-open {
    transform: none;
  }

  .global-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(24, 32, 24, .15);
  }

  .profile-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: calc(var(--header-h) + 32px) 24px 80px;
  }

  .portrait {
    width: min(72vw, 320px);
    margin-inline: auto;
  }

  .profile-copy h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .role {
    margin-bottom: 28px;
    font-size: 10px;
  }

  .bio-copy>p:not(.placeholder-note) {
    font-size: 13px;
    line-height: 1.85;
  }

  .profile-kit-button {
    position: static;
    width: 100%;
    gap: 14px;
    margin: 0 0 28px;
  }

  .profile-details {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .details-list div {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }

  .profile-links {
    padding-top: 80px;
  }

  .link-list a {
    grid-template-columns: 1fr auto;
  }

  .link-list small {
    display: none;
  }

  footer {
    align-items: center;
  }
}

@media (max-height: 760px) and (min-width: 801px) {
  .profile-hero {
    grid-template-columns: minmax(260px, 390px) minmax(0, 620px);
    gap: clamp(40px, 6vw, 90px);
  }

  .profile-copy h1 {
    font-size: clamp(48px, 5.5vw, 78px);
  }

  .role {
    margin-bottom: 24px;
  }

  .bio-copy {
    padding-top: 18px;
  }

  .bio-copy>p:not(.placeholder-note) {
    font-size: 13px;
    line-height: 1.7;
  }

  .placeholder-note {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
