:root {
  color-scheme: light;
  --topbar-height: 72px;
  --ink: #202226;
  --muted: #6f756f;
  --paper: #fbfaf5;
  --soft: #eef4e9;
  --line: #dde4d7;
  --accent: #ff9d1f;
  --accent-deep: #c66d00;
  --blue: #a7c7df;
  --green: #c8d8bf;
  --rose: #e6b4ad;
  --violet: #bbb1d9;
  --shadow: 0 18px 45px rgb(41 45 36 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: var(--topbar-height);
  border-bottom: 1px solid rgb(221 228 215 / 72%);
  background: rgb(251 250 245 / 88%);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: min(1160px, calc(100% - 36px));
  height: 100%;
  margin: 0 auto;
}

.site-logo {
  display: inline-grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgb(41 45 36 / 10%);
}

.site-logo__mark {
  width: 28px;
  aspect-ratio: 1;
  border-radius: 5px;
  background: #b7cbae;
}

.cover {
  width: 100%;
  height: 100svh;
  min-height: 560px;
  background: #d7e3d1;
}

.cover__image {
  width: 100%;
  height: 100%;
  background: #cad8c2;
}

.site-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: calc(var(--topbar-height) + 18px);
}

.section__eyebrow {
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.section h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.section h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.lead,
.section-heading p,
.split-section > div > p,
.contact-section p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: end;
}

.profile-panel,
.notice-card,
.work-card,
.world-grid article,
.oc-detail,
.contact-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.profile-panel {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.profile-panel p,
.notice-card p,
.work-card p,
.world-grid p,
.oc-detail p,
.oc-detail dd {
  margin-bottom: 0;
  color: var(--muted);
}

.placeholder-block {
  display: block;
  background: #c9d6c4;
}

.avatar {
  width: 110px;
  aspect-ratio: 1;
  border-radius: 6px;
}

.section-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-width: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fffdf8;
  color: var(--muted);
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: #f4c067;
  background: #fff1d8;
  color: #7d4a00;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  overflow: hidden;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card__image {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.work-card__body {
  padding: 18px;
}

.work-card__body span,
.detail-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.commission-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  gap: 18px;
}

.notice-card {
  padding: 24px;
}

.notice-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 44px;
  align-items: start;
}

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

.world-grid article {
  padding: 16px;
}

.small-block {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 6px;
}

.oc-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}

.oc-list {
  display: grid;
  gap: 12px;
}

.oc-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.oc-card:hover,
.oc-card.is-active {
  border-color: #f0b04b;
  background: #fff5e3;
}

.oc-card strong,
.oc-card small {
  display: block;
}

.oc-card small {
  margin-top: 4px;
  color: var(--muted);
}

.oc-card__image {
  width: 76px;
  aspect-ratio: 1;
  border-radius: 6px;
}

.oc-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
  padding: 24px;
}

.oc-detail__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
}

.oc-detail dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.oc-detail dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.oc-detail dt {
  color: var(--ink);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 110px;
}

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

.contact-grid a {
  display: grid;
  min-height: 88px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
}

.contact-grid a:hover {
  border-color: #f0b04b;
  background: #fff5e3;
  color: #7d4a00;
}

.tone-mint {
  background: #bcd8c8;
}

.tone-peach {
  background: #e7b59f;
}

.tone-blue,
.tone-sky {
  background: #a8c7df;
}

.tone-yellow {
  background: #f5cf74;
}

.tone-lime {
  background: #d1de8d;
}

.tone-rose {
  background: #e4aaa8;
}

.tone-indigo,
.tone-violet {
  background: #b7aed8;
}

.tone-orange {
  background: #f1a546;
}

@media (max-width: 920px) {
  .intro-grid,
  .commission-layout,
  .split-section,
  .oc-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .work-grid,
  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --topbar-height: 64px;
  }

  .topbar__inner {
    gap: 12px;
    width: min(100% - 24px, 1160px);
  }

  .site-logo {
    width: 40px;
  }

  .cover {
    min-height: 100svh;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 70px 0;
  }

  .profile-panel,
  .oc-card {
    grid-template-columns: 1fr;
  }

  .avatar,
  .oc-card__image {
    width: 100%;
  }

  .work-grid,
  .world-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .oc-detail dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
