:root {
  color-scheme: light;
  --ink: #282633;
  --muted: #777281;
  --accent: #62527d;
  --accent-dark: #493a63;
  --line: rgb(67 56 78 / 18%);
  --panel: rgb(255 255 255 / 83%);
  --shadow: 0 18px 60px rgb(25 20 36 / 12%);
  --text-shadow: 0 1px 56px rgb(24 18 32 / 25%)
  font-family: "Hiragino Kaku Gothic ProN", source-han-sans-japanese, "Yu Gothic", "YuGothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: #dcd7e4;
  background-image:
    linear-gradient(rgb(71 121 219 / 64%), rgb(71 121 219 / 8%)),
    url("./images/background-photo01.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.85;
}

a {
  color: inherit;
  text-decoration-color: rgb(98 82 125 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgb(98 82 125 / 30%);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 32px, 680px);
  margin-inline: auto;
  padding-block: 72px 36px;
}

.profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
  padding-inline: 8px;
  color: white;
  text-shadow: var(--text-shadow);
}

.profile-icon {
  width: 92px;
  height: 92px;
  border: 3px solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  background: #817296;
  box-shadow: 0 12px 35px rgb(24 18 32 / 25%);
  object-fit: cover;
}

.eyebrow,
.section-number {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow {
  color: rgb(255 255 255 / 72%);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 2px 0 0;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.profile-copy {
  grid-column: 1 / -1;
  max-width: 35rem;
  margin: 4px 0 0;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

main {
  display: grid;
  gap: 28px;
}

.panel {
  padding: 32px 24px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-heading {
  margin-bottom: 30px;
}

.section-number {
  color: var(--accent);
}

h2 {
  margin: 3px 0 0;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.channel {
  text-align: left;
}

.channel h3,
.work-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.channel h3 a,
.work-card h3 a {
  font-weight: 700;
}

.account-id {
  display: block;
  width: fit-content;
  margin-top: 0.55em;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-decoration: none;
}

.channel p,
.work-card p {
  margin: 0.75em 0 0;
  color: #4d4954;
  font-size: 0.9rem;
  line-height: 1.9;
  letter-spacing: 0.075em;
}

.channel + .channel::before {
  display: block;
  width: 19%;
  height: 1px;
  margin: 30px auto;
  background: var(--line);
  content: "";
}

.work-card {
  display: grid;
  gap: 20px;
}

.text-link {
  width: fit-content;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.social-links {
  /* display: grid; */
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  letter-spacing: 0.075em;
}

.social-links a {
  /* display: flex; */
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

footer {
  padding: 30px 8px 0;
  color: rgb(255 255 255 / 78%);
  text-align: center;
  text-shadow: var(--text-shadow);
}

@media (min-width: 640px) {
  .page-shell {
    padding-block: 100px 48px;
  }

  .profile-header {
    grid-template-columns: 112px 1fr;
    gap: 24px 28px;
    margin-bottom: 64px;
  }

  .profile-icon {
    width: 112px;
    height: 112px;
  }

  .profile-copy {
    padding-left: 140px;
  }

  .panel {
    padding: 42px 48px;
  }

  main {
    gap: 34px;
  }

  .work-card {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

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

  a {
    transition: none;
  }
}
