@font-face {
  font-family: Rubik;
  src: url("/brand/rubik.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --paper: #f8f5ec;
  --ink: #232820;
  --muted: #565e52;
  --rule: #d6d4c5;
  --rust: #99421d;
  --dark: #0c1422;
  --space: #091220;
  --starlight: #f3f5fb;
  --moonlight: #c6d1df;
  --space-line: #344252;
  --origin-yellow: #ffda45;
  --pad: clamp(22px, 5vw, 82px);
  font-family: Rubik, system-ui, sans-serif;
  color: var(--ink);
  background: var(--space);
  scroll-behavior: smooth;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #aa5029;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 800;
}
.wrap {
  width: min(calc(100% - 2 * var(--pad)), 1240px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  background: white;
  padding: 12px;
  z-index: 10;
  transform: translateY(-130%);
}
.skip:focus {
  transform: none;
}
.header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--starlight);
  border-bottom: 1px solid var(--space-line);
}
.homelink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.6px;
}
.homelink:hover {
  text-decoration: none;
}
.eye-mark {
  background: #f4c842;
  border: 2px solid var(--ink);
  width: 35px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 52% 48%;
  transform: rotate(-13deg);
}
.eye-mark i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
}
.eye-mark i:before {
  content: "";
  border-radius: 50%;
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  font-size: 14px;
  font-weight: 600;
}
.outbound {
  border: 1px solid #67778c;
  border-radius: 50px;
  padding: 9px 15px;
}
.outbound span,
.watch span,
.text-link span,
footer a span {
  margin-left: 4px;
}
.hero-sky {
  color: var(--starlight);
  background-color: #060d18;
  background-image: linear-gradient(90deg, #040b16f5, #040b16c4 27%, #040b1655 48%, transparent 68%), url("/hero/lunar-field.webp");
  background-size: cover;
  background-position: center;
}
.hero-sky a:focus-visible, .header a:focus-visible, footer a:focus-visible {
  outline-color: var(--origin-yellow);
}
.hero {
  min-height: clamp(470px, 40vw, 580px);
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 58px 0;
}
.hero h1 {
  font-size: clamp(76px, 9.5vw, 147px);
  line-height: 0.86;
  letter-spacing: -0.062em;
}
.byline {
  display: block;
  font-size: clamp(23px, 2.12vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.22;
  font-weight: 400;
  margin-top: 19px;
}
.byline a {
  font-weight: 600;
}
.text-link span {
  color: var(--rust);
}
.byline a span, .hero .text-link span {
  color: var(--origin-yellow);
}
.hero-copy > p {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.53;
  max-width: 35ch;
  margin-top: 24px;
  color: var(--moonlight);
}
.hero-actions {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-top: 30px;
}
.hero-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  border-radius: 100px;
  padding: 15px 21px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.12;
}
.button:hover {
  text-decoration: none;
}
.primary {
  background: var(--origin-yellow);
  color: #191a15;
  border: 1px solid var(--origin-yellow);
}
.primary:hover {
  background: #ffe779;
}
.primary span {
  font-size: 20px;
  line-height: 0.8;
}
.text-link {
  font-size: 15px;
  font-weight: 600;
}
.hero-art {
  align-self: stretch;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
}
.hero-art #origin-stage {
  position: absolute;
  inset: 1% 1% 2%;
  width: auto;
  height: auto;
  min-height: 0;
  container-type: size;
}
#origin-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 89%;
  width: 30cqh;
  height: 4cqh;
  background: radial-gradient(ellipse, #070912bd 0%, #10101785 34%, transparent 70%);
  transform: translate(-60%, -46%) rotate(-3deg);
  pointer-events: none;
}
.hero-art #origin-stage img, .hero-art #origin-stage canvas { position: relative; }
.hero-art #origin-stage img,
.hero-art #origin-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-art figcaption {
  position: absolute;
  bottom: 19px;
  left: 4%;
  right: 0;
  color: white;
  text-shadow: 0 1px 6px #000;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.specimen {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.specimen i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e9b635;
  border: 1px solid #aa872b;
}
.specimen em {
  font-style: normal;
  font-weight: 400;
  color: var(--starlight);
  padding-left: 8px;
  border-left: 1px solid #c1c3b2;
}
.gaze-hint {
  color: var(--starlight);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.pointer-icon {
  font-size: 20px;
}
.touch-hint {
  display: none;
}
.planet-section {
  background: var(--dark);
  color: #faf7e9;
  padding: clamp(32px, 3.6vw, 53px) 0 clamp(30px, 3.4vw, 51px);
  scroll-margin: 10px;
}
.planet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
  margin-bottom: 22px;
}
.planet-head h2,
.directory h2 {
  font-size: clamp(37px, 4.1vw, 65px);
  letter-spacing: -0.047em;
  line-height: 1.04;
}
.watch {
  font-weight: 600;
  font-size: 15px;
}
.watch span {
  color: #f09f55;
}
.stat-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.stat-label i {
  width: 8px;
  height: 8px;
  border: 1px solid #eafacc;
  background: #b9d49b;
  border-radius: 50%;
}
.population-number {
  font-variant-numeric: tabular-nums;
  font-size: clamp(43px, 5.6vw, 85px);
  font-weight: 800;
  letter-spacing: -0.078em;
  line-height: 0.94;
}
.episode-stat {
  font-size: 14px;
}
.directory {
  color: var(--starlight);
  padding: clamp(49px, 6vw, 95px) 0 63px;
  scroll-margin: 2px;
}
.directory-head p {
  max-width: 59ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--moonlight);
  margin-top: 15px;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  margin-top: 31px;
  border-top: 1px solid var(--space-line);
  padding-top: 21px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tabs button {
  border: 1px solid transparent;
  background: none;
  min-height: 41px;
  padding: 8px 13px;
  border-radius: 30px;
  color: var(--moonlight);
  font-weight: 600;
  font-size: 14px;
}
.tabs button:hover {
  border-color: #c3c6b8;
}
.tabs button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--starlight);
}
.search {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c4c6b6;
  background: #fcf9f2;
  border-radius: 24px;
  padding: 9px 14px;
  min-height: 42px;
}
.search i {
  width: 14px;
  height: 14px;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.search i:after {
  content: "";
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  background: var(--muted);
  position: absolute;
  right: -4px;
  bottom: -2px;
}
.search input {
  width: 174px;
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 14px;
  min-width: 0;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.result-count {
  margin: 16px 0 13px;
  color: var(--moonlight);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.resident {
  color: var(--ink);
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  border: 1px solid #d1d1c0;
  background: #fcf9f1;
  border-radius: 15px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.resident:hover {
  border-color: #7d8872;
}
.card-art,
.detail-art {
  display: grid;
  place-items: center;
  background: radial-gradient(
    ellipse at center,
    var(--art-mid, #f1e9d0),
    var(--art-bg, #e7dec6)
  );
  overflow: hidden;
}
.card-art {
  width: 100%;
  aspect-ratio: 1.82;
}
.card-art img,
.detail-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 100%;
  min-height: 0;
  transition: transform 0.23s ease;
}
.resident:hover .card-art img {
  transform: scale(1.045);
}
.card-copy {
  position: relative;
  padding: 16px 40px 17px 18px;
  width: 100%;
}
.card-copy strong {
  display: block;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -0.044em;
}
.card-copy small {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.card-copy:after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: 17px;
  color: var(--rust);
  font-size: 19px;
}
.more-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.outline {
  background: transparent;
  border: 1px solid #9ba18f;
}
.outline:hover {
  color: var(--ink);
  background: #ebeadd;
}
.missing-art {
  font-size: 15px;
  font-weight: 600;
  color: #52584b;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  border-top: 1px solid var(--space-line);
  padding: 21px 0 30px;
  font-size: 14px;
  color: var(--moonlight);
}
.studio-link {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 600;
  color: var(--starlight);
}
.studio-link img {
  object-fit: contain;
}
dialog {
  margin: auto;
  border: 1px solid #bbbba8;
  border-radius: 18px;
  width: min(660px, calc(100vw - 34px));
  max-height: 90dvh;
  overflow: auto;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #0c1211a6;
}
.dialog-inner {
  position: relative;
}
.detail-art {
  height: clamp(130px, 30vh, 280px);
}
.detail-copy {
  padding: 26px;
}
.detail-copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.detail-copy > p:not(.detail-label) {
  margin-top: 12px;
  max-width: 55ch;
  line-height: 1.55;
}
.detail-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
}
.detail-copy > .text-link {
  display: inline-block;
  margin-top: 22px;
}
.close {
  position: absolute;
  right: 13px;
  top: 13px;
  border: 1px solid #c9c9b9;
  border-radius: 50%;
  background: var(--paper);
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  z-index: 1;
}
.credit {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  line-height: 1.4;
}
.credit a {
  font-weight: 600;
  color: var(--rust);
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero-sky {
    background-position: center, 78% center;
  }
  .hero {
    grid-template-columns: 47% 53%;
    min-height: 440px;
  }
  .hero-copy {
    padding: 45px 0;
  }
  .cards {
    gap: 12px;
  }
  .hero-art figcaption {
    left: 0;
    bottom: 17px;
  }
  .hero-actions {
    gap: 13px;
  }
  .hero-actions .text-link {
    font-size: 14px;
  }
}
@media (max-width: 680px) {
  .header {
    height: 62px;
  }
  .homelink {
    font-size: 23px;
    gap: 6px;
  }
  .eye-mark {
    width: 30px;
    height: 24px;
  }
  .header nav {
    gap: 15px;
  }
  .outbound {
    padding: 0;
    border: 0;
  }
  .header nav > a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 36px 0 6px;
  }
  .hero h1 {
    font-size: clamp(76px, 18vw, 114px);
  }
  .byline {
    font-size: 24px;
    margin-top: 10px;
  }
  .hero-copy > p {
    margin-top: 17px;
    max-width: 41ch;
  }
  .hero-actions {
    margin-top: 19px;
    gap: 18px;
  }
  .button {
    padding: 13px 18px;
  }
  .hero-art {
    width: 100%;
    height: clamp(290px, 73vw, 408px);
  }
  .hero-art #origin-stage {
    inset: 0 0 8%;
  }
  .hero-art figcaption {
    bottom: 11px;
  }
  .hero-sky {
    background: #060d18;
    overflow: hidden;
  }
  .hero-art {
    overflow: visible;
  }
  .hero-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -6px calc(-1 * var(--pad)) 0;
    background: linear-gradient(to bottom, #060d18, transparent 16%), url("/hero/lunar-field.webp") 99% bottom / cover;
    pointer-events: none;
  }
  .planet-section {
    padding: 30px 0 24px;
  }
  .planet-head {
    margin-bottom: 16px;
    align-items: start;
    gap: 10px;
    flex-direction: column;
  }
  .planet-head h2,
  .directory h2 {
    font-size: 39px;
  }
  .watch {
    font-size: 14px;
  }
  .stat-label,
  .episode-stat {
    font-size: 14px;
  }
  .population-number {
    font-size: 42px;
  }
  .directory {
    padding: 44px 0 35px;
  }
  .directory-head p {
    font-size: 16px;
  }
  .filter-bar {
    margin-top: 22px;
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 12px;
  }
  .search input {
    flex: 1;
    width: 100%;
    font-size: 16px;
  }
  .tabs {
    gap: 1px;
  }
  .tabs button {
    padding: 8px 10px;
  }
  .result-count {
    margin: 10px 0;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-art {
    aspect-ratio: 1.32;
  }
  .card-copy {
    padding: 10px 11px 12px;
  }
  .card-copy strong {
    font-size: 18px;
  }
  .card-copy small {
    font-size: 14px;
  }
  .card-copy:after {
    display: none;
  }
  .detail-copy {
    padding: 20px;
  }
}
@media (max-width: 370px) {
  :root {
    --pad: 15px;
  }
  .header nav {
    gap: 9px;
  }
  .hero-actions {
    gap: 12px;
  }
  .tabs button {
    padding-inline: 8px;
  }
}
@media (pointer: coarse) {
  .wide-hint {
    display: none;
  }
  .touch-hint {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 680px) {
  .stat-label {
    font-size: 14px;
  }
}

.card-request {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
