/* Crunchy Cards — black ink, white paper, hard edges, like the logo.
   One file, no framework. Colour appears only inside product photographs. */

@font-face {
  font-family: "Bangers";
  src: url("/fonts/Bangers-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --grey: #666;
  --panel: #f4f4f4;
  --line: 3px;
  --pop: 6px 6px 0 var(--ink);
  --radius: 14px;
  --display: "Bangers", "Impact", "Haettenschweiler", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light; /* the mazes are black on white; forced dark would ruin them */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

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

a { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 6vw, 2.8rem); }

.lede { font-size: 1.05rem; color: var(--grey); margin: 0 0 28px; max-width: 60ch; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 10px 26px 8px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--pop);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn.hollow { background: var(--paper); color: var(--ink); }

.btn:hover, .btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:active { transform: translate(6px, 6px); box-shadow: none; }

.row { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0; }

.stack { display: flex; flex-direction: column; gap: 18px; align-items: center; width: 100%; }
.stack .btn { min-width: 280px; text-align: center; font-size: 1.7rem; }

/* ---------- homepage ---------- */

body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.home main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.hero { text-align: center; width: 100%; max-width: 560px; }
.hero .logo { width: 100%; max-width: 460px; margin: 0 auto 4px; }
.hero .tagline {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--grey);
  margin: 0 0 32px;
}

/* ---------- header and footer ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  border-bottom: var(--line) solid var(--ink);
}

.wordmark img { width: 86px; height: auto; }

.bar nav { display: flex; gap: 22px; }

.bar nav a {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: var(--line) solid transparent;
}

.bar nav a:hover, .bar nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.foot {
  border-bottom: 0;
  border-top: var(--line) solid var(--ink);
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--grey);
}

.foot p { margin: 4px 0; }
.foot a { color: var(--grey); }

/* ---------- catalog ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 28px;
  margin: 0 0 48px;
}

.product .shot img { border: var(--line) solid var(--ink); border-radius: 8px; }
.product .sub {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--grey);
  margin: -8px 0 14px;
}

.facts { list-style: none; padding: 0; margin: 18px 0; }
.facts li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.facts li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.62em;
  width: 9px; height: 9px;
  background: var(--ink);
  transform: rotate(45deg);
}

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

.gallery figure {
  margin: 0;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}

/* ---------- answers ---------- */

.find { display: block; margin: 0 0 24px; }

.find input {
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.find input:focus-visible { outline: var(--line) solid var(--grey); outline-offset: 2px; }

.empty { font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  padding: 12px 10px 10px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.tile img { height: 120px; width: auto; object-fit: contain; }

.tile span {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-align: center;
}

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

.tile[hidden] { display: none; }

.crumb { margin: 0 0 8px; font-size: 0.95rem; }

figure.answer {
  margin: 0 0 16px;
  padding: 18px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  display: flex;
  justify-content: center;
}

figure.answer img { width: auto; max-height: 70vh; }

.pager { display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 1.3rem; }
.pager a { text-decoration: none; border-bottom: var(--line) solid transparent; }
.pager a:hover { border-bottom-color: var(--ink); }

/* ---------- contact ---------- */

/* The one-liner that sells the form. Set in the display face so it reads as a
   sign rather than as another paragraph. */
.promo {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
}

.stack .promo { text-align: center; max-width: 26ch; margin-top: 14px; }

.pitch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 26px 28px;
  /* Sits with the footer, not with the product photos: a clear break above it
     so it reads as a closing call rather than as another gallery tile. */
  margin: 80px 0 0;
}

.pitch .promo { max-width: 56ch; }

/* The /answers variant carries a second line under the heading. */
.pitch.next { margin-top: 56px; }
.pitch.next > div { max-width: 52ch; }
.pitch .note { margin: 8px 0 0; color: var(--grey); font-size: 0.95rem; }

/* A page that ends in one of these bands sits it against the footer rule: the
   page drops its usual deep bottom gutter and the footer pulls its top margin
   in to meet it. */
body.catalog main, body.answers main { padding-bottom: 0; }
body.catalog .foot, body.answers .foot { margin-top: 28px; }

/* One column down the middle of the page, so the form is not stranded against
   the left edge with half the screen empty beside it. */
body.contact main { max-width: 620px; }

/* The form is a slab, like the product card and the pitch band. */
form.ask {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 40px 36px 42px;
  margin: 0 0 8px;
}

.picks { border: 0; padding: 0; margin: 0 0 40px; }

/* Form text is set in the body face, not the poster face. Bangers on every
   label made this read as a flyer you look at rather than a form you fill in;
   the brand lives in the frame, the heading and the button instead. */
.ask legend {
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0;
  margin-bottom: 18px;
}

.choices { display: grid; gap: 14px; }

/* The native radio stays for the keyboard and for assistive tech; the slab
   next to it is the part anyone sees. */
.pick input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}

/* A hairline rather than the site's full 3px: five of these stacked in one
   block is a lot of ink, and the weight is what made the group read as noise. */
.pick span {
  display: block;
  font-size: 1rem;
  padding: 15px 18px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.08s ease;
}

/* Filled black is unmistakable on its own — no lift, so every slab stays on
   the same left edge and the group still reads as a column. */
.pick input:checked + span { background: var(--ink); color: var(--paper); }

.pick input:not(:checked) + span:hover { box-shadow: 4px 4px 0 var(--ink); }

.pick input:focus-visible + span { outline: var(--line) solid var(--grey); outline-offset: 3px; }

.field { display: block; margin: 0 0 22px; }

.field > span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Grey and in the body face, so "optional" reads as a note rather than as part
   of the label. */
.field .opt, .field .hint {
  font-family: var(--text);
  font-style: normal;
  letter-spacing: 0;
  color: var(--grey);
}

.field .opt { font-size: 0.8rem; }
.field .hint { display: block; font-size: 0.82rem; margin-top: 6px; }

.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }

.field input::placeholder, .field textarea::placeholder { color: #999; }

.field input:focus-visible, .field textarea:focus-visible {
  outline: var(--line) solid var(--grey);
  outline-offset: 2px;
}

/* Full width, so the last thing on the page is unmissable. */
.send { display: block; width: 100%; margin-top: 8px; font-size: 1.6rem; }

button.btn { cursor: pointer; appearance: none; -webkit-appearance: none; }

/* Honeypot: off the page and out of the accessibility tree, so only a bot
   finds it. Not display:none — some bots skip what is hidden that way. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.oops {
  margin: 0 0 26px;
  padding: 12px 16px;
  border: var(--line) solid var(--ink);
  border-left-width: 10px;
  border-radius: 10px;
  background: var(--panel);
  font-weight: 700;
}


/* ---------- about ---------- */

.prose { max-width: 62ch; }
.prose p { margin: 0 0 18px; }
.signoff { font-family: var(--display); font-size: 1.3rem; color: var(--grey); }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .product { grid-template-columns: 1fr; padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .product .shot { max-width: 240px; margin: 0 auto; }
  .bar { padding: 12px 16px; }
  .wordmark img { width: 68px; }
  .bar nav { gap: 16px; }
  .stack .btn { min-width: min(300px, 100%); }
  .tile img { height: 96px; }
  .pitch { padding: 20px; box-shadow: 4px 4px 0 var(--ink); margin-top: 72px; }
  form.ask { padding: 22px 18px 24px; box-shadow: 4px 4px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .tile, .pick span { transition: none; }
}
