:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --surface: #fffefa;
  --ink: #171715;
  --muted: #68675f;
  --line: #c9c6bb;
  --accent: #ec573d;
  --aqua: #16796f;
  --preview: #10100e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.topbar {
  min-height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  font-size: 17px;
}

.edition {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
}

main {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

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

.kicker,
.catalog-note,
.work-meta,
footer {
  letter-spacing: 0;
}

.kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.14;
  letter-spacing: 0;
}

.catalog-note {
  max-width: 300px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 20px;
}

.work-card {
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(240px, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.work-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgb(23 23 21 / 10%);
}

.work-card:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.work-preview {
  position: relative;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  background: var(--preview);
}

.work-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 280ms ease;
}

.work-card:hover .work-preview img {
  transform: scale(1.025);
}

.work-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  color: #fff;
  background: rgb(16 16 14 / 72%);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.work-content {
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  color: var(--aqua);
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.work-content h2 {
  margin: auto 0 16px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.work-content p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.launch {
  min-height: 42px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.launch span {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

.work-card:hover .launch span {
  transform: translateX(4px);
}

footer {
  min-height: 64px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 720px) {
  .topbar,
  footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  main {
    width: calc(100% - 40px);
    padding: 38px 0 48px;
  }

  .catalog-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .catalog-note {
    text-align: left;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-preview {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

  .work-content {
    min-height: 270px;
    padding: 22px;
  }

  footer {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
