:root {
  --paper: #fffaf0;
  --ink: #151515;
  --blue: #1689d4;
  --yellow: #ffe35b;
  --green: #44b75a;
  --red: #ef4b37;
  --pink: #e85aa4;
  --shadow: 7px 7px 0 #151515;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, .05) 1px, transparent 1px),
    linear-gradient(rgba(21, 21, 21, .05) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 950;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.brand img {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiet-link {
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  background: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 28px;
  align-items: stretch;
  min-height: min(680px, calc(100vh - 118px));
  padding-bottom: 34px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-copy::after {
  content: "";
  width: 190px;
  height: 72px;
  position: absolute;
  right: 10%;
  bottom: 7%;
  background: repeating-linear-gradient(-12deg, transparent 0 10px, rgba(68, 183, 90, .8) 11px 16px);
  border-radius: 50%;
  transform: rotate(-7deg);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--red);
}

h1,
h2 {
  margin: 0;
  line-height: .98;
  letter-spacing: 0;
}

h1 {
  max-width: 750px;
  font-size: clamp(3.3rem, 9vw, 7.8rem);
}

h2 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}

.button:hover:not(:disabled) {
  transform: translate(2px, 2px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.primary {
  background: var(--yellow);
}

.secondary {
  background: white;
}

.ink {
  background: var(--ink);
  color: white;
  box-shadow: 4px 4px 0 var(--blue);
}

.hero-board,
.feature-strip,
.tool,
.gallery article {
  border: 5px solid var(--ink);
  background: white;
  box-shadow: var(--shadow);
}

.hero-board {
  align-self: center;
  display: grid;
  gap: 18px;
  padding: 18px;
  transform: rotate(1.5deg);
}

.logo-card {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

dt {
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #626262;
}

dd {
  margin: 4px 0 0;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 950;
}

.feature-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 34px;
  padding: 16px;
}

.feature-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-strip strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(.94rem, 2.5vw, 1.35rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 40px;
}

.gallery article {
  margin: 0;
  padding: 12px;
}

.gallery article:nth-child(1) {
  transform: rotate(-1deg);
}

.gallery article:nth-child(2) {
  transform: rotate(1deg);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
}

.gallery p {
  margin: 10px 4px 2px;
  font-size: 1.2rem;
  font-weight: 950;
}

.tool {
  padding: clamp(16px, 4vw, 28px);
}

.tool-heading {
  margin-bottom: 20px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.upload-panel,
.canvas-panel {
  min-width: 0;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 22px;
  border: 4px dashed var(--ink);
  border-radius: 8px;
  background: #fff6cf;
  text-align: center;
  cursor: pointer;
}

.drop-zone.dragging {
  background: #dbf5de;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.drop-title,
.drop-subtitle {
  display: block;
}

.drop-title {
  font-size: 1.45rem;
  font-weight: 950;
}

.drop-subtitle {
  margin-top: 8px;
  color: #5d5d5d;
  line-height: 1.4;
}

.controls {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.controls label {
  display: grid;
  gap: 8px;
  font-weight: 950;
}

input[type="range"] {
  accent-color: var(--blue);
}

.canvas-panel {
  display: grid;
  gap: 14px;
}

canvas {
  display: block;
  width: 100%;
  max-height: 720px;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.canvas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 0;
  font-weight: 900;
}

footer a {
  color: var(--blue);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 120px);
  transition: transform .2s ease;
  z-index: 10;
}

.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-board {
    transform: none;
  }

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

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
  }

  .topbar,
  .feature-strip,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
  }

  .quiet-link {
    flex: 1;
    text-align: center;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
