:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --ink: #111111;
  --charcoal: #363636;
  --gray: #a0a0a0;
  --white: #ffffff;
  --rule: #c4c2ba;
  --sans: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --japanese: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", var(--serif);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(100% - 7rem, 84rem); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 3;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 5.15rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; width: max-content; text-decoration: none; line-height: 1; }
.wordmark b { font: 900 1.75rem/1 var(--japanese); }
.wordmark span { margin-top: .4rem; font-size: .69rem; font-weight: 900; letter-spacing: .2em; }
nav { display: flex; gap: clamp(1rem, 3vw, 3.5rem); }
nav a { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1.3; }
nav strong { font-size: .9rem; font-weight: 900; letter-spacing: .07em; }
nav span { margin-top: .25rem; color: var(--charcoal); font-size: .81rem; }
nav a:is(:hover, [aria-current]) strong { text-decoration: underline; text-underline-offset: .22em; }

.masthead { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-block: 2.4rem 1.65rem; }
.masthead h1 { font: 900 clamp(4.3rem, 10vw, 9rem)/.98 var(--japanese); letter-spacing: -.075em; }
.masthead-aside { display: grid; gap: .3rem; text-align: right; padding-bottom: .25rem; }
.masthead-aside strong { font: 900 clamp(1.25rem, 3.4vw, 3.3rem)/1 var(--sans); letter-spacing: -.065em; }
.masthead-aside span { font-size: .875rem; letter-spacing: .12em; }

.hero { position: relative; border: 1px solid var(--ink); }
.art { position: relative; min-width: 0; display: grid; background: #e9e7df; overflow: hidden; }
.art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.art--hero { aspect-ratio: 2.65; min-height: 15rem; background: #202124; }
.art--cover { aspect-ratio: 1.73; }
.art--portrait { aspect-ratio: 3 / 4; }
.art-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: clamp(.9rem, 2.3vw, 2rem);
  isolation: isolate;
  overflow: hidden;
}
.art-placeholder::before {
  content: "";
  position: absolute;
  inset: 13% 10%;
  z-index: -1;
  border: 1px solid currentColor;
  opacity: .22;
}
.plate-label { align-self: end; justify-self: start; font-size: .8rem; letter-spacing: .12em; padding: .12rem .38rem; background: var(--paper); color: var(--ink); }
.plate-name { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; font: 900 clamp(1.4rem, 4vw, 4.5rem)/1.12 var(--serif); letter-spacing: .02em; pointer-events: none; }
.plate-mark {
  position: absolute;
  top: 13%;
  right: 10%;
  width: 1.65rem;
  aspect-ratio: 1;
  transform: translate(50%, -50%);
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .5;
}
.art--hero .art-placeholder, .theme-human .art--cover .art-placeholder { color: #e6e6e4; background: #202124; }
.art--hero .art-placeholder::before {
  inset: 12% 5%;
  border-color: #b7b9bb;
}
.plate-grid {
  position: absolute;
  inset: 12% 5%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  color: #b7b9bb;
  opacity: .18;
  pointer-events: none;
}
.plate-grid span + span { border-left: 1px solid currentColor; }
.theme-fault .plate-grid { display: none; }
.art--hero .plate-mark { top: 12%; right: 5%; }
.art--hero .plate-name {
  color: #deded9;
  font: 900 clamp(2.8rem, 10vw, 10rem)/1 var(--serif);
  letter-spacing: .13em;
  padding-inline-start: calc(1.5rem + .13em);
}
.art--hero .plate-label, .theme-human .art--cover .plate-label { background: #202124; color: #eeeee8; }
.theme-fault .art-placeholder { background: #d8d5ca; color: #28251e; }
.theme-fault .art-placeholder::before {
  inset: 9% 15%;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 64% 0, 52% 40%, 67% 48%, 46% 100%, 30% 100%, 47% 51%, 33% 42%, 50% 1%, 0 1%);
}
.theme-fault .plate-name { font-family: var(--sans); letter-spacing: -.055em; }
.art--portrait .art-placeholder::before { inset: 9%; border-style: solid; }
.art--portrait .plate-name { writing-mode: vertical-rl; font-size: clamp(2.25rem, 5vw, 5rem); color: #716e63; letter-spacing: .12em; }
.art--portrait .plate-mark { top: 9%; right: 9%; }

.hero-caption { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.25rem clamp(1rem, 3vw, 2.1rem) 1.45rem; }
.hero-caption h1, .hero-caption h2 { font: 900 clamp(2.6rem, 5.5vw, 5rem)/1.12 var(--serif); margin-top: .35rem; letter-spacing: -.05em; }
.hero-subtitle { margin-top: .5rem; font-size: 1.125rem; font-weight: 900; letter-spacing: .12em; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .13em; color: var(--charcoal); }
.solid-link { flex-shrink: 0; background: var(--ink); color: var(--white); border: 1px solid var(--ink); text-decoration: none; font-weight: 700; padding: .68rem 1.2rem; }
.solid-link:focus-visible { outline-color: var(--ink); }
.solid-link:hover { background: var(--paper); color: var(--ink); }
.text-link { text-decoration-thickness: 1px; text-underline-offset: .26em; }
.text-link:hover { text-decoration-thickness: 2px; }
.crumb { display: flex; flex-wrap: wrap; gap: .75rem; padding-block: 1.6rem; font-size: .9rem; }

.editorial-section { margin-top: clamp(3.25rem, 7vw, 7rem); scroll-margin-top: 1rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.section-heading :is(h1,h2) { font: 900 clamp(1.8rem, 4vw, 3.4rem)/1.13 var(--serif); letter-spacing: -.055em; }
.section-heading .eyebrow { text-align: right; }
.work-grid, .character-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.75rem); }
.card-link { display: block; text-decoration: none; }
.card-caption { display: flex; justify-content: space-between; align-items: end; gap: .65rem; padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.card-caption h3, .character-caption h3 { font: 900 clamp(1.5rem, 3vw, 2.6rem)/1.18 var(--serif); }
.card-caption p { margin-top: .35rem; font-size: .875rem; color: var(--charcoal); }
.card-action { text-decoration: underline; text-underline-offset: .27em; font-size: .875rem; }
.card-link:hover .card-action { text-decoration-thickness: 2px; }
.card-link:hover .art { outline: 1px solid var(--ink); outline-offset: -1px; }
.character-card .card-link { display: grid; grid-template-columns: 2fr 2.5fr; border: 1px solid var(--rule); }
.character-caption { align-self: center; padding: clamp(.75rem, 2vw, 1.65rem); }
.character-caption h3 { margin-block: .4rem .8rem; }
.work-overview { display: grid; grid-template-columns: minmax(0, 25rem) 1fr; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.work-overview .art--cover { aspect-ratio: 3 / 4; }
.author { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; }
.author-name { font: 900 clamp(2rem, 5vw, 4rem)/1 var(--japanese); }
.author .eyebrow { display: inline-block; margin-top: .5rem; }
.author .text-link { display: inline-block; margin-right: 1rem; }
.quiet { color: var(--charcoal); }
.prose { max-width: 42rem; }
.prose p + p { margin-top: .8rem; }
.updates { margin: 0; padding: 0; list-style: none; }
.updates li { display: grid; grid-template-columns: 8rem 1fr; gap: .6rem 1rem; border-bottom: 1px solid var(--rule); padding-block: .8rem; }
.updates time { font-variant-numeric: tabular-nums; }

.character-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.4rem, 6vw, 6rem); align-items: start; }
.character-profile { padding-top: clamp(1.15rem, 5vw, 4.4rem); }
.character-profile h1 { font: 900 clamp(2.75rem, 7vw, 6rem)/1.1 var(--serif); margin-block: .7rem 1.35rem; letter-spacing: -.065em; }
.facts > div { display: grid; grid-template-columns: minmax(5rem, 1fr) 2.1fr; gap: .5rem 1rem; border-top: 1px solid var(--rule); padding: .7rem 0; overflow-wrap: anywhere; }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--charcoal); font-weight: 700; }
.character-intro { margin-top: 2.1rem; }
.character-intro h2 { margin-bottom: .5rem; font-size: 1.125rem; }
.design-group + .design-group { margin-top: 2rem; }
.design-group h3 { margin-bottom: .85rem; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; }
.design-tile { display: grid; align-content: start; gap: .5rem; width: 100%; border: 1px solid var(--rule); background: var(--paper); text-align: left; padding: .65rem; cursor: zoom-in; }
.design-tile:hover { border-color: var(--ink); }
.design-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #e9e7df; }
.viewer { width: min(68rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; background: var(--paper); border: 1px solid var(--ink); }
.viewer::backdrop { background: rgb(17 17 17 / 84%); }
.viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 1rem; border-bottom: 1px solid var(--rule); }
.viewer-top button { flex-shrink: 0; background: var(--paper); border: 1px solid var(--ink); min-height: 2.75rem; padding-inline: .9rem; cursor: pointer; }
.viewer-stage { display: grid; place-items: center; padding: 1rem; }
.viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; }
.site-footer { margin-top: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 4rem); }
  .character-grid { grid-template-columns: minmax(0, 32rem); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { display: grid; gap: .9rem; padding-block: .85rem .7rem; }
  nav { display: flex; flex-wrap: wrap; gap: .6rem clamp(.65rem, 2.8vw, 1rem); }
  nav a { padding-block: .2rem; }
  nav strong { font-size: .7rem; letter-spacing: .015em; }
  nav span { font-size: .74rem; }
  .masthead { padding-block: 1.6rem 1.1rem; }
  .masthead h1 { font-size: clamp(3.65rem, 13vw, 6rem); }
  .masthead-aside span { font-size: .74rem; letter-spacing: .04em; }
  .art--hero { aspect-ratio: 1.55; min-height: 0; }
  .hero-caption { padding-block: .85rem 1rem; align-items: end; }
  .hero-caption h1, .hero-caption h2 { font-size: clamp(1.9rem, 8vw, 3.4rem); }
  .solid-link { padding: .52rem .7rem; font-size: .875rem; }
  .work-grid { grid-template-columns: 1fr; gap: 1.45rem; }
  .work-overview, .character-feature { grid-template-columns: 1fr; }
  .work-overview .art--cover { max-width: 22rem; }
  .character-feature > .art { max-height: min(36rem, 127vw); }
  .character-profile { padding-top: 0; }
  .updates li { grid-template-columns: 1fr; }
}

body.work-fault .hero-caption { background: #dedacf; }
body.work-fault .section-heading .eyebrow { letter-spacing: .2em; }
