:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --ink: #171714;
  --muted: #67645d;
  --line: #bbb5a9;
  --signal: #b33a2f;
  --focus: #185fc6;
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(23, 23, 20, 0.055) 1px) 0 0 / 25% 100%,
    var(--paper);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header,
.archive,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 32px;
  min-height: 68vh;
  padding: 36px 0 64px;
  border-bottom: 2px solid var(--ink);
}

.header-mark {
  align-self: start;
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.header-copy {
  align-self: end;
}

.eyebrow,
.section-index,
.collection-heading > p,
.card-status,
.site-footer {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.7rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.78;
}

.creator-prefix {
  display: block;
  margin-bottom: 0.18em;
  color: var(--signal);
  font-size: 0.34em;
  letter-spacing: -0.02em;
  line-height: 1;
}

.manifesto {
  margin: 48px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.manifesto strong {
  color: var(--signal);
  font-weight: 800;
}

.archive {
  padding: 42px 0 112px;
}

.catalog-status {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-status[hidden] {
  display: none;
}

.catalog-status.is-error {
  max-width: 680px;
  padding: 18px 20px;
  color: var(--paper);
  background: var(--signal);
  font-weight: 700;
}

.collection + .collection {
  margin-top: 88px;
}

.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.collection-heading > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-index,
.collection-heading > p {
  margin: 0;
  color: var(--muted);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

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

.game-card {
  position: relative;
  min-height: 290px;
  padding: 26px 28px 30px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.game-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.game-card:hover,
.game-card:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.game-card:focus-visible {
  box-shadow: inset 0 0 0 4px var(--focus);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-number {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-status {
  color: var(--signal);
}

.game-card:hover .card-status,
.game-card:focus-visible .card-status {
  color: #f19b8f;
}

.game-card h3 {
  margin: 58px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.card-summary {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.game-card:hover .card-summary,
.game-card:focus-visible .card-summary {
  color: #d9d4ca;
}

.card-action {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font-size: 1.3rem;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 38px 0 40px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 38px;
  border-top: 2px solid var(--ink);
}

.site-footer p {
  margin: 0;
}

.noscript-message {
  width: min(1180px, calc(100% - 48px));
  margin: -82px auto 48px;
  padding: 18px;
  color: var(--paper);
  background: var(--signal);
}

@media (max-width: 820px) {
  body {
    background: var(--paper);
  }

  .site-header {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: auto;
    padding-bottom: 54px;
  }

  .header-mark {
    width: 52px;
  }

  .header-copy {
    align-self: start;
  }

  h1 {
    margin-top: 64px;
    font-size: clamp(3.9rem, 14vw, 7rem);
  }

  .manifesto {
    margin-top: 36px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .archive,
  .site-footer,
  .noscript-message {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 18px;
  }

  .header-mark {
    display: none;
  }

  h1 {
    margin-top: 44px;
    line-height: 0.86;
  }

  .archive {
    padding-top: 30px;
  }

  .collection + .collection {
    margin-top: 64px;
  }

  .collection-heading {
    align-items: center;
  }

  .collection-heading > div {
    display: block;
  }

  .section-index {
    margin-bottom: 8px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 270px;
    padding-inline: 4px;
  }

  .game-card:nth-child(odd) {
    border-right: 0;
  }

  .game-card:focus-visible {
    padding-inline: 12px;
  }

  .card-action {
    right: 4px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
    color: var(--muted);
  }
}

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

  .game-card,
  .skip-link {
    transition: none;
  }
}
