:root {
  --ink: #0a0a0a;
  --paper: #fff;
  --soft: #f1f1f1;
  --placeholder: #c8c8c8;
  --muted: #686868;
  --japanese-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
  --din-font: "DIN Alternate", "DIN Condensed", Bahnschrift, Arial,
    "Helvetica Neue", var(--japanese-font);
  --page-width: 1080px;
  --side-space: clamp(22px, 6vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--japanese-font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.wordmark,
.site-tagline,
.site-nav,
h1,
h2,
h3,
h4,
.site-footer {
  font-family: var(--din-font);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.site-header,
.sub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: clamp(72px, 13vw, 126px) var(--side-space) 34px;
}

.sub-header {
  gap: 32px;
  padding-top: clamp(36px, 7vw, 70px);
  border-bottom: 1px solid #ececec;
}

.site-header {
  gap: clamp(40px, 6vw, 64px);
  padding: clamp(26px, 5vw, 46px) 0 34px;
}

.wordmark {
  display: inline-flex;
  max-width: 100%;
  padding-inline: 16px;
  font-size: clamp(1.35rem, 6.1vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-identity {
  display: grid;
  justify-items: center;
  width: 100%;
  gap: clamp(24px, 5vw, 48px);
}

.site-tagline {
  margin: 0;
  width: 100%;
  padding: 18px 16px 0;
  border-top: 1px solid #a7a7a7;
  color: var(--ink);
  font-size: clamp(0.85rem, 2.4vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.wordmark--small {
  font-size: 1.45rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

.section-inner {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--side-space);
}

.manga-section {
  padding-block: clamp(58px, 9vw, 100px);
  background: var(--soft);
}

.manga-section h1,
.about-page > .section-inner > h2 {
  margin-bottom: clamp(28px, 5vw, 48px);
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.1;
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 64px);
  max-width: 800px;
}

.manga-card h2 {
  margin: 14px 0 0;
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
}

.manga-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.manga-card--link:hover h2,
.manga-card--link:focus-visible h2 {
  text-decoration: underline;
}

.manga-card--soon {
  color: #202020;
}

.placeholder {
  background: var(--placeholder);
}

.manga-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 12%;
}

.text-link {
  display: inline-block;
  font-weight: 700;
}

.site-footer {
  padding: 40px var(--side-space);
  border-top: 1px solid #ececec;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.footer-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  letter-spacing: 0.035em;
}

.about-page {
  padding-block: clamp(52px, 9vw, 100px);
}

.about-page--home {
  scroll-margin-top: 24px;
}

.project-statement {
  max-width: 720px;
  margin: 0 0 clamp(64px, 10vw, 108px);
  color: var(--muted);
  font-size: 0.95rem;
}

.project-statement p {
  margin-bottom: 0;
  line-height: 1.8;
}

.creator {
  padding-bottom: clamp(52px, 8vw, 82px);
}

.profile--creator {
  flex-direction: column;
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 36px);
}

.profile-copy {
  min-width: 0;
}

.profile-copy h3,
.profile-copy h4 {
  margin-bottom: 12px;
  font-size: clamp(1.08rem, 3.3vw, 1.4rem);
  line-height: 1.4;
}

.profile-copy h3 span,
.profile-copy h4 span {
  font-weight: inherit;
}

.profile-copy .name-alt {
  font-weight: 400;
}

.profile-copy .name-japanese-font {
  font-family: var(--japanese-font);
}

.profile-copy p {
  margin-bottom: 0;
  line-height: 1.5;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
  width: 44px;
  height: 44px;
}

.profile-social-link img {
  display: block;
  width: 22px;
  height: auto;
}

.about-body-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.profile-copy .service-credit {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
}

.muted {
  color: var(--muted);
}

.avatar {
  flex: 0 0 auto;
  width: clamp(92px, 25vw, 138px);
  aspect-ratio: 1 / 1;
}

.avatar--photo {
  display: block;
  height: auto;
  object-fit: cover;
}

.avatar--round {
  border-radius: 50%;
}

.avatar--large {
  width: clamp(116px, 31vw, 180px);
}

.assistants > h3 {
  margin-bottom: 30px;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.assistant-grid {
  display: grid;
  gap: 38px;
}

.ai-readers {
  margin-top: clamp(72px, 11vw, 120px);
  padding-top: clamp(38px, 6vw, 58px);
  border-top: 1px solid #ececec;
}

.ai-readers h3 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.ai-readers > p {
  max-width: 38rem;
  margin-bottom: 22px;
}

.ai-reader-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.ai-reader-list li:not(:last-child)::after {
  content: " / ";
  white-space: pre;
}

.production-note {
  max-width: 760px;
  margin-top: clamp(64px, 10vw, 104px);
  padding-top: 24px;
  border-top: 1px solid #ececec;
  color: var(--muted);
  font-size: 0.76rem;
}

.production-note p {
  margin-bottom: 0.7em;
  line-height: 1.75;
}

.production-note p:last-child {
  margin-bottom: 0;
}

.profile--assistant {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.back-link {
  margin: clamp(52px, 8vw, 86px) 0 0;
}

@media (min-width: 760px) {
  .sub-header {
    flex-direction: row;
    justify-content: space-between;
    width: min(100%, calc(var(--page-width) + var(--side-space) * 2));
    margin-inline: auto;
  }

  .assistant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
  }

  .profile--creator {
    flex-direction: row;
  }

  .profile--assistant {
    display: flex;
    flex-direction: column;
  }

  .profile--assistant .avatar {
    width: min(100%, 150px);
  }
}

@media (max-width: 380px) {
  .manga-grid {
    grid-template-columns: 1fr;
  }

  .profile,
  .profile--assistant {
    display: flex;
    flex-direction: column;
  }
}

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