:root {
  --ink: #17121f;
  --muted: #645b70;
  --paper: #fffaf5;
  --panel: #ffffff;
  --line: #eadfd6;
  --pink: #ff4f8b;
  --red: #ff5b4f;
  --yellow: #ffd95a;
  --blue: #45b7ff;
  --green: #49d39b;
  --shadow: 0 18px 42px rgba(23, 18, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 18, 31, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 18, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px;
  font-family: Nunito, system-ui, sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(14px, 2vw, 18px);
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  background:
    linear-gradient(90deg, var(--pink) 50%, var(--yellow) 0) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--blue) 50%, var(--green) 0) 0 12px / 12px 12px;
  border: 3px solid var(--ink);
}

nav a {
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

main {
  min-height: 70vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 6vw, 82px) clamp(18px, 5vw, 64px);
}

.hero-copy h1,
.page-hero h1 {
  max-width: 900px;
  margin: 8px 0 18px;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  max-width: 670px;
  color: var(--muted);
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-actions,
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--yellow);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.ghost {
  color: var(--ink);
  background: #fff;
  box-shadow: 5px 5px 0 var(--blue);
}

.button.small {
  min-height: 38px;
  padding: 8px 12px;
  box-shadow: 4px 4px 0 var(--green);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 14px;
}

.hero-gallery img {
  width: 100%;
  height: clamp(300px, 44vw, 560px);
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-gallery img:nth-child(2) {
  margin-top: 42px;
}

.section,
.page-hero,
.form-shell,
.admin-grid,
.masonry {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 64px);
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: #fff;
}

.intro-band h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.steps span {
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.product-card > div {
  padding: 18px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.product-card p {
  color: var(--muted);
}

.card-row {
  justify-content: space-between;
}

.card-row strong {
  font-size: 24px;
}

.masonry {
  columns: 280px;
  column-gap: 16px;
}

.masonry figure {
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.masonry figcaption {
  padding: 12px;
  font-weight: 900;
}

.form-shell form,
.admin-grid form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font: inherit;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 34px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list article {
  padding: 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.admin-list span {
  display: block;
  color: var(--muted);
}

.success {
  background: rgba(73, 211, 155, 0.16);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: #fff;
  background: var(--ink);
}

@media (max-width: 840px) {
  .site-header,
  .intro-band,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

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

  .hero-gallery img {
    height: 280px;
  }
}
