@font-face {
  font-family: "Oswald";
  src: url("/assets/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-soft: #f5f5f2;
  --ink: #101010;
  --muted: #6b6b66;
  --line: rgba(16, 16, 16, 0.18);
  --line-soft: rgba(16, 16, 16, 0.085);
  --signal: #1826ff;
  --font-body: "Helvetica Neue", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Oswald", "Arial Narrow", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page-max: 1520px;
  --pad-x: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #ffffff;
  background: var(--signal);
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, var(--page-max));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  min-height: 96px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}

.brand-bird {
  width: 34px;
  height: 23px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-meta {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.13em;
}

.header-edition {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.header-edition span + span::before {
  margin-right: 10px;
  content: "·";
}

.top-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 34px);
  align-items: center;
  justify-self: end;
}

.top-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--signal);
}

.top-nav a[aria-current="page"] {
  color: var(--signal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
  padding: clamp(58px, 7vw, 96px) 0 clamp(52px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 46px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-index {
  display: inline-grid;
  width: 27px;
  height: 20px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  font-size: 9px;
  letter-spacing: 0;
}

.eyebrow-slash {
  color: var(--line);
}

.eyebrow-en {
  color: var(--ink);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(94px, 11.4vw, 176px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.hero-dot {
  color: var(--signal);
}

.hero-statement {
  max-width: 10.6em;
  margin-top: clamp(26px, 3.2vw, 42px);
  font-family: var(--font-display);
  font-size: clamp(31px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.055em;
}

.hero-statement em {
  font-style: normal;
  box-shadow: inset 0 -0.12em 0 var(--signal);
}

.lede {
  max-width: 630px;
  margin-top: clamp(26px, 3.2vw, 40px);
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.9;
}

.lede a {
  color: var(--ink);
}

.lede a:hover {
  color: var(--signal);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 17px 0 19px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button--primary {
  color: #ffffff;
  background: var(--ink);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--signal);
  border-color: var(--signal);
}

.button--ghost {
  color: var(--ink);
  background: transparent;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  color: #ffffff;
  background: var(--ink);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 690px;
  margin-top: clamp(34px, 4.2vw, 52px);
  padding-top: 17px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.hero-meta div {
  min-width: 0;
  padding-right: 18px;
}

.hero-meta div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-meta dt {
  margin-bottom: 5px;
  color: var(--muted);
}

.hero-meta dd {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-plate {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--paper-soft);
}

.plate-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 2px 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.13em;
}

.plate-window {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  padding: clamp(34px, 4vw, 56px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ink);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
}

.plate-window::before {
  position: absolute;
  inset: 11px;
  border: 1px solid var(--line);
  content: "";
  pointer-events: none;
}

.plate-window::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  content: "";
  transform: translate(-50%, -50%);
}

.hero-bird {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(80%, 390px);
  max-height: 78%;
  object-fit: contain;
  transition: transform 700ms var(--ease);
}

.hero-plate:hover .hero-bird {
  transform: translateY(-4px);
}

.plate-corner {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.plate-corner--tl {
  top: 11px;
  left: 11px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.plate-corner--tr {
  top: 11px;
  right: 11px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.plate-corner--bl {
  bottom: 11px;
  left: 11px;
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.plate-corner--br {
  right: 11px;
  bottom: 11px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.plate-axis {
  position: absolute;
  z-index: 0;
  background: var(--line-soft);
  pointer-events: none;
}

.plate-axis--x {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.plate-axis--y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.plate-side-label {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 2;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

.plate-caption {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 2px 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.1em;
}

.plate-caption b {
  font-size: 10px;
  font-weight: 500;
}

.plate-caption-right {
  color: var(--muted);
  text-align: right;
}

.index-strip {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.index-strip i {
  width: 3px;
  height: 3px;
  flex: none;
  background: var(--signal);
  border-radius: 50%;
}

.directory {
  padding: clamp(54px, 6.5vw, 88px) 0 clamp(64px, 7vw, 96px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.9fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 24px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.section-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.7vw, 82px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.section-intro {
  max-width: 31em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.section-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.entry {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 2.7vw, 36px);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

.entry--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.68fr);
  gap: 18px;
  align-items: stretch;
  grid-column: span 6;
}

.entry--narrow {
  display: flex;
  flex-direction: column;
  grid-column: span 3;
}

.entry--blog,
.entry--research,
.entry--reference {
  min-height: 430px;
}

.entry--games,
.entry--contact {
  min-height: 330px;
}

.entry-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.entry-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 26px;
}

.entry-number,
.entry-en,
.entry-link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

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

.entry-status {
  padding: 3px 7px;
  border: 1px solid currentColor;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.entry-en {
  margin-bottom: 9px;
  color: var(--muted);
}

.entry-title {
  margin-bottom: 17px;
  font-family: var(--font-display);
  font-size: clamp(37px, 4vw, 57px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.entry--narrow .entry-title {
  font-size: clamp(34px, 3.2vw, 44px);
}

.entry-desc {
  max-width: 33em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  transition: color 220ms ease;
}

.entry-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
}

.entry-art {
  display: grid;
  min-width: 0;
  place-items: center;
  pointer-events: none;
}

.entry-art img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: contain;
  filter: contrast(1.08);
  transition:
    filter 220ms ease,
    transform 600ms var(--ease);
}

.entry--narrow .entry-art {
  flex: 1;
  width: 100%;
  min-height: 170px;
  padding-top: 16px;
}

.entry--narrow .entry-art img {
  max-height: 190px;
}

.entry:hover,
.entry:focus-visible {
  color: #ffffff;
  background: var(--ink);
  outline: none;
}

.entry:hover .entry-number,
.entry:hover .entry-en,
.entry:hover .entry-desc,
.entry:focus-visible .entry-number,
.entry:focus-visible .entry-en,
.entry:focus-visible .entry-desc {
  color: rgba(255, 255, 255, 0.62);
}

.entry:hover .entry-status,
.entry:focus-visible .entry-status {
  color: rgba(255, 255, 255, 0.8);
}

.entry:hover .entry-art img,
.entry:focus-visible .entry-art img {
  filter: invert(1) contrast(1.08);
  transform: translateY(-3px);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(140px, 0.55fr) minmax(260px, 0.8fr);
  gap: 38px;
  align-items: start;
  padding: 48px 0 36px;
  border-top: 1px solid var(--ink);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.footer-brand p {
  max-width: 28em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}

.footer-links a,
.footer-legal a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--signal);
  text-decoration: underline;
}

.footer-legal {
  align-items: flex-end;
  text-align: right;
}

.footer-legal p {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.brand:focus-visible,
.top-nav a:focus-visible,
.button:focus-visible,
.section-link:focus-visible,
.footer-links a:focus-visible,
.footer-legal a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1.07fr) minmax(320px, 0.7fr);
    gap: 42px;
  }

  .entry--blog,
  .entry--research,
  .entry--reference {
    min-height: 400px;
  }

  .entry--wide {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.58fr);
  }

  .entry--wide .entry-art img {
    max-height: 230px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-edition {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-plate {
    width: min(100%, 560px);
    justify-self: end;
  }

  .section-head {
    grid-template-columns: 1fr auto;
  }

  .section-intro {
    display: none;
  }

  .directory-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .entry--wide {
    grid-column: span 6;
  }

  .entry--narrow {
    grid-column: span 3;
  }

  .entry--blog,
  .entry--research,
  .entry--reference {
    min-height: 360px;
  }

  .entry--narrow {
    min-height: 360px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
}

@media (max-width: 720px) {
  .brand-meta {
    display: none;
  }

  .hero-name {
    font-size: clamp(88px, 19vw, 132px);
  }

  .hero-statement {
    font-size: clamp(30px, 7vw, 40px);
  }

  .entry--wide {
    display: flex;
    flex-direction: column;
  }

  .entry--wide .entry-art {
    flex: none;
    min-height: 150px;
    padding-top: 22px;
  }

  .entry--wide .entry-art img {
    max-height: 180px;
  }

  .entry--narrow {
    grid-column: span 6;
    min-height: 0;
  }

  .entry--narrow .entry-art {
    min-height: 150px;
  }

  .entry--narrow .entry-art img {
    max-height: 165px;
  }

  .entry--blog,
  .entry--research,
  .entry--reference,
  .entry--games,
  .entry--contact {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    border: 0;
  }

  .site-header {
    gap: 14px;
    min-height: 80px;
  }

  .brand {
    gap: 8px;
  }

  .brand-bird {
    width: 29px;
    height: 20px;
  }

  .brand-name {
    font-size: 19px;
  }

  .top-nav {
    gap: 14px;
  }

  .top-nav a {
    font-size: 10px;
  }

  .hero {
    gap: 38px;
    padding-top: 44px;
  }

  .hero-title {
    gap: 0;
  }

  .hero-name {
    font-size: clamp(80px, 24vw, 112px);
  }

  .hero-statement {
    margin-top: 24px;
    font-size: clamp(27px, 7.4vw, 34px);
  }

  .lede {
    font-size: 14px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-meta div,
  .hero-meta div + div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
  }

  .hero-meta dt {
    margin-bottom: 0;
  }

  .hero-plate {
    width: 100%;
    box-shadow: 8px 8px 0 var(--paper-soft);
  }

  .plate-window {
    aspect-ratio: 5 / 5.2;
    padding: 36px 46px 36px 32px;
  }

  .hero-bird {
    max-width: min(92%, 330px);
  }

  .index-strip {
    justify-content: flex-start;
    gap: 16px;
  }

  .index-strip span:nth-of-type(n + 5),
  .index-strip i:nth-of-type(n + 4) {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .section-heading h2 {
    font-size: 56px;
  }

  .entry {
    padding: 24px 22px;
  }

  .entry-topline {
    margin-bottom: 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 38px;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px 22px;
  }

  .footer-legal {
    grid-column: auto;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
