:root {
  --ink: #111111;
  --paper: #fff7df;
  --paper-2: #ffffff;
  --sun: #f4ead2;
  --cyan: #12d9ff;
  --pink: #ff3d7f;
  --green: #41d67b;
  --blue: #2f6bff;
  --muted: #5c5c52;
  --line: #151515;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: 28px clamp(18px, 5vw, 72px) 118px;
  background:
    radial-gradient(circle at 78% 20%, rgba(18, 217, 255, 0.25) 0 8%, transparent 8.5%),
    radial-gradient(circle at 73% 18%, rgba(65, 214, 123, 0.18) 0 10%, transparent 10.5%),
    linear-gradient(135deg, var(--sun) 0 58%, var(--paper) 58.2%);
  border-bottom: 4px solid var(--ink);
}

.topbar,
.hero-grid,
.catalog,
.footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--sun);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-small);
}

.nav-links {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 800;
}

.nav-links a {
  padding: 9px 11px;
  border: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--ink);
  background: var(--paper-2);
  outline: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding-top: clamp(42px, 8vw, 94px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  background: var(--cyan);
  border: 3px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: var(--shadow-small);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 730px;
  margin-bottom: 20px;
  font-size: clamp(48px, 10vw, 112px);
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 30px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: #202018;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: var(--shadow-small);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
}

.button-primary {
  background: var(--pink);
  color: var(--paper-2);
}

.button-ghost {
  background: var(--paper-2);
}

.scroll-cue {
  --cue-x: -50%;
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 4vh, 54px);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 8px 16px 8px 10px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow-small);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  translate: var(--cue-x) 0;
  animation: cue-bounce 1.15s ease-in-out infinite;
}

.scroll-cue span {
  font-size: clamp(50px, 7vw, 94px);
  line-height: 1;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  outline: none;
  translate: var(--cue-x) 4px;
}

@keyframes cue-bounce {
  0%,
  100% {
    translate: var(--cue-x) 0;
  }

  50% {
    translate: var(--cue-x) 13px;
  }
}

.preview-stack {
  position: relative;
  min-height: 560px;
}

.preview-stack img {
  position: absolute;
  width: min(62%, 290px);
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: center;
  border: 4px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.preview-stack img:nth-child(1) {
  right: 18px;
  top: 0;
  z-index: 3;
}

.preview-stack img:nth-child(2) {
  left: 0;
  top: 90px;
  z-index: 2;
  transform: rotate(-3deg);
}

.preview-stack img:nth-child(3) {
  right: 92px;
  bottom: 0;
  z-index: 1;
  transform: rotate(3deg);
}

.catalog {
  padding: 48px clamp(18px, 4vw, 0px) 40px;
}

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

.search-wrap {
  width: min(420px, 100%);
}

.search-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow-small);
}

.search-wrap input:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.filter-button {
  min-height: 36px;
  padding: 8px 11px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  background: var(--green);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.workflow-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  min-height: 250px;
  padding: 14px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.cover {
  align-self: stretch;
  min-height: 220px;
  border: 3px solid var(--ink);
  background: var(--sun);
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  padding: 5px 7px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag:nth-child(2n) {
  background: #dff8ff;
}

.workflow-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.12;
  text-transform: uppercase;
}

.workflow-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-actions {
  margin-top: auto;
}

.card-actions .button {
  min-height: 38px;
  padding: 9px 11px;
  font-size: 12px;
}

.empty {
  padding: 26px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding: 24px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  box-shadow: var(--shadow);
}

.sponsor-strip h2 {
  max-width: 760px;
}

.sponsor-strip p:not(.eyebrow) {
  max-width: 780px;
  margin-bottom: 0;
  color: #202018;
  font-size: 16px;
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px) 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .preview-stack {
    min-height: 430px;
  }

  .scroll-cue {
    --cue-x: 0;
    position: static;
    margin-top: 24px;
  }

  .preview-stack img {
    width: min(42%, 230px);
  }

  .workflow-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

@media (max-width: 680px) {
  .topbar,
  .catalog-head,
  .sponsor-strip,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(42px, 15vw, 70px);
  }

  .preview-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
  }

  .preview-stack img {
    position: static;
    width: 100%;
    transform: none !important;
    box-shadow: var(--shadow-small);
  }

  .workflow-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 10px;
    box-shadow: var(--shadow-small);
  }

  .cover {
    min-height: 164px;
  }

  .workflow-card h3 {
    font-size: 16px;
  }

  .workflow-card p {
    font-size: 13px;
  }
}

@media (max-width: 440px) {
  .workflow-card {
    grid-template-columns: 1fr;
  }

  .cover {
    aspect-ratio: 1.45;
    min-height: 0;
  }

  .card-actions .button {
    flex: 1 1 100%;
  }

  .sponsor-strip .button {
    width: 100%;
  }
}
