/* Below the fold: hazard tape, sticker sheet, meme deck, drafting sheet, label slips, sticky notes, footer. */

/* ---------- hazard tape ---------- */

.hazard {
  position: relative;
  z-index: 2;
  margin: 0 -20px;
  padding: 9px 0;
  overflow: hidden;
  rotate: -1.6deg;
  border-block: var(--line);
  background: repeating-linear-gradient(-45deg, var(--butter) 0 22px, var(--ink) 22px 44px);
}
.hazard-text {
  width: max-content;
  padding: 2px 12px;
  background: var(--butter);
  border-block: 2px solid var(--ink);
  font: 400 18px/1.3 var(--display);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(var(--belt, 0px));
  transition: transform 0.4s var(--out);
}

/* ---------- sticker sheet ---------- */

.box { padding: 110px 0 60px; }
.stickers {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 34px 28px;
}
.st {
  position: relative;
  padding: 22px 22px 24px;
  border: var(--line);
  border-radius: 20px;
  background: var(--c);
  box-shadow: 0 0 0 7px var(--cream), 0 0 0 9.5px var(--ink), 8px 10px 0 9.5px rgba(30, 27, 24, 0.18);
}
.st svg { width: 44px; height: 44px; margin-bottom: 10px; overflow: visible; }
.st svg * { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.st h3 { font-family: var(--ui); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 6px; }
.st p { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.st-a { grid-column: 1 / span 4; }
.st-b { grid-column: 5 / span 4; margin-top: 46px; }
.st-c { grid-column: 9 / span 4; }
.st-d { grid-column: 2 / span 3; }
.st-e { grid-column: 5 / span 4; margin-top: -20px; }
.st-f { grid-column: 9 / span 4; margin-top: 26px; }
.st-g { grid-column: 1 / span 5; }
.st-h { grid-column: 7 / span 5; margin-top: 18px; }
@media (hover: hover) { .stickers .st.in:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); transition-delay: 0s; } }

/* ---------- meme deck section ---------- */

.deck-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 90px 0; }
.deck-copy { display: flex; flex-direction: column; gap: 16px; }
.deck-copy p { font-size: var(--t-lede); line-height: 1.5; max-width: 40ch; }
.deck-copy .note { font-size: 26px; line-height: 1.2; color: var(--red-ink); }
.deck-copy .arrow::after { content: "↘"; }
.deck-copy .note { padding: 20px 22px; } /* same indent it always had */
.riso-sm { color: var(--tomato); text-shadow: 3px 3px 0 var(--butter); white-space: nowrap; }
.copy-me {
  position: relative;
  padding: 26px 28px 28px;
  border: 1.5px solid var(--red-ink);
  background: var(--cream);
  rotate: 1.5deg;
  box-shadow: 10px 10px 0 var(--paper-2);
}
.copy-me blockquote {
  margin: 12px 0 18px;
  font: 400 28px/1.3 var(--hand);
  -webkit-user-select: text;
  user-select: text;
}
.copy-me blockquote::selection { background: var(--butter); }

/* the deck itself: cards slide in from the right edge */
.meme-deck { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; }
.meme {
  width: 280px;
  padding: 14px 16px 16px;
  border: var(--line);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
  pointer-events: auto;
  cursor: pointer; /* tap or click to send it away */
}
.meme-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.meme kbd { padding: 3px 8px; border: 2px solid var(--ink); border-radius: 7px; background: var(--butter); box-shadow: 0 3px 0 var(--ink); font: 700 13px var(--tech); }
.meme-art { height: 92px; margin-bottom: 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--mat); display: grid; place-items: center; overflow: hidden; }
.meme-art span { font: 400 30px/1 var(--display); color: var(--butter); text-shadow: 3px 3px 0 var(--ink); rotate: -4deg; }
.meme p { font: 400 21px/1.3 var(--hand); }

/* ---------- drafting sheet ---------- */

.how { padding: 60px 0 90px; }
.sheet {
  position: relative;
  padding: 44px 48px 50px;
  background: var(--cream);
  border: 1.5px solid var(--red-ink);
  box-shadow: 0 30px 60px -30px rgba(30, 27, 24, 0.4);
}
.sheet::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(184, 64, 42, 0.45); pointer-events: none; }
.crop { position: absolute; width: 22px; height: 22px; border-color: var(--red-ink); border-style: solid; border-width: 0; }
.crop.tl { top: -30px; left: -30px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.crop.tr { top: -30px; right: -30px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.crop.bl { bottom: -30px; left: -30px; border-right-width: 1.5px; border-top-width: 1.5px; }
.crop.br { bottom: -30px; right: -30px; border-left-width: 1.5px; border-top-width: 1.5px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.sheet-head h2 { color: var(--red-ink); }
.title-block { border-collapse: collapse; font-size: 11px; }
.title-block th, .title-block td { border: 1.5px solid var(--red-ink); padding: 6px 10px; text-align: left; white-space: nowrap; }
.title-block th { font-weight: 400; color: var(--red-ink); }
.title-block td { font-weight: 700; }
.red { color: var(--red-ink); stroke: var(--red-ink); }
.figs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: fig; }
.fig { display: flex; flex-direction: column; gap: 10px; }
.fig svg { width: 100%; height: 120px; padding: 10px; border: 1px dashed rgba(184, 64, 42, 0.6); overflow: visible; }
.fig svg * { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fig svg :not(.red) { stroke: var(--ink); }
.fig-n { color: var(--red-ink); }
.fig p:not(.mono) { font-size: 16px; line-height: 1.5; }
.fig .hand { font-size: 23px; line-height: 1.2; }

/* ---------- label slips ---------- */

.compare { padding: 40px 0 90px; }
.slips { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.slips th, .slips td { padding: 12px 18px; text-align: left; font-size: 16px; line-height: 1.35; }
.slips thead th { font: 400 12px var(--tech); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-ink); padding-bottom: 0; }
.slips tbody tr { outline: 2px solid var(--ink); outline-offset: -1px; border-radius: 10px; background: var(--cream); }
.slips tbody th { font-weight: 500; border-radius: 10px 0 0 10px; }
.slips tbody td:last-child { color: var(--ink-soft); border-radius: 0 10px 10px 0; }
.slips tbody td:nth-child(2) { font-weight: 600; background: var(--butter); }
.slips tbody tr:nth-child(odd) { rotate: -0.4deg; }
.slips tbody tr:nth-child(even) { rotate: 0.3deg; }

/* ---------- sticky-note FAQ ---------- */

.faq { padding: 30px 0 110px; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.notes .note {
  background: var(--c);
  rotate: var(--r);
  box-shadow: 3px 5px 0 rgba(30, 27, 24, 0.18);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
/* the whole note face is the tap target, not just the line of text */
.notes summary { padding: 20px 22px; cursor: pointer; list-style: none; font: 600 19px/1.3 var(--ui); }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: " +"; color: var(--red-ink); }
.notes .note[open] summary::after { content: " −"; }
.notes .note p { padding: 0 22px 24px; margin-top: -10px; font-size: 16px; line-height: 1.5; }

/* ---------- footer ---------- */

.foot { position: relative; background: var(--mat); color: var(--cream); border-top: var(--line); }
.foot-band {
  height: 40px;
  border-bottom: var(--line);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40'><rect x='14' y='8' width='32' height='26' rx='6' fill='%23d9573a' stroke='%231e1b18' stroke-width='2.5'/><rect x='19' y='6' width='22' height='18' rx='4' fill='%23fffaf0' stroke='%231e1b18' stroke-width='2.5'/></svg>") 0 0 / 60px 40px repeat-x,
    var(--mint);
}
.foot-inner { display: flex; flex-direction: column; gap: 10px; padding: 70px 0 calc(60px + env(safe-area-inset-bottom)); }
.foot-big { font: 400 clamp(64px, 12vw, 170px) / 0.8 var(--display); letter-spacing: -0.03em; color: var(--butter); text-shadow: 6px 6px 0 var(--tomato); }
.foot .hand { font-size: 28px; }
.foot .hand a { text-decoration-color: var(--tomato); }
.foot .fine { color: var(--mint-soft); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .stickers { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .st { grid-column: auto !important; margin-top: 0 !important; }
  .deck-sec { grid-template-columns: 1fr; gap: 40px; padding: 72px 0; }
  .deck-copy .arrow::after { content: "↓"; }
  .figs { grid-template-columns: 1fr 1fr; gap: 32px; }
  .fig:last-child { grid-column: 1 / -1; max-width: calc(50% - 16px); }
  .notes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .box { padding: 72px 0 40px; }
  .stickers { grid-template-columns: 1fr; gap: 32px; padding-inline: 10px; }
  .st { padding: 20px 20px 22px; }
  .deck-sec { padding: 56px 0; gap: 32px; }
  .copy-me { padding: 22px 20px 24px; rotate: 1deg; box-shadow: 7px 7px 0 var(--paper-2); }
  .copy-me blockquote { font-size: 26px; }
  .how { padding: 40px 0 64px; }
  .sheet { padding: 30px 22px 34px; }
  .sheet-head { flex-direction: column; margin-bottom: 28px; }
  .title-block { width: 100%; font-size: 11px; letter-spacing: 0.06em; }
  .title-block th, .title-block td { padding: 6px 5px; }
  .title-block th, .title-block td { white-space: normal; }
  .crop { display: none; }
  .figs { grid-template-columns: 1fr; }
  .fig:last-child { grid-column: auto; max-width: none; }
  .fig svg { height: 100px; }
  .compare { padding: 24px 0 64px; }
  .faq { padding: 24px 0 80px; }
  .notes { grid-template-columns: 1fr; gap: 18px; }
  .slips thead { display: none; }
  .slips, .slips tbody, .slips tr { display: block; }
  .slips tr { margin-bottom: 12px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--cream); }
  .slips tbody th, .slips tbody td { display: block; border: 0 !important; border-radius: 0 !important; padding: 8px 14px; }
  .slips tbody td:nth-child(2)::before { content: "mech for all: "; font-weight: 400; }
  .slips tbody td:last-child::before { content: "typically: "; }
  .foot-inner { padding-top: 52px; }
  .foot .hand { font-size: 25px; }
}
