/* HeyBuddy – "Fetch" brand. Colours and type: see README.md. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #1b2340;
  --ink-soft: #3d4566;
  --sky: #dcebfb;
  --tan: #d9a86c;
  --red: #e2453b;
  --red-deep: #c0322a;
  --yellow: #ffe14d;
  --note: #fff3a8;
  --paper: #fffdf2;
  --white: #ffffff;
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 24px;
  --line: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

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

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

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

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red-deep); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--ink); }
.wordmark b { color: var(--red); font-weight: 800; }
.brand.small img { width: 32px; height: 32px; }
.brand.small .wordmark { font-size: 1.25rem; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--red-deep);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 14px 26px;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { color: var(--white); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button.small { font-size: 1rem; padding: 9px 18px; box-shadow: 3px 3px 0 var(--ink); }

/* Header */
header.site { padding: 16px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Framed art: thick ink outline + offset shadow, like the mascot's sticker outline */
.hero-art img, .jobs-art img, .beta-art img, .steps img, .report-art {
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  background: var(--sky);
}
figure { margin: 0; }

/* Hero */
.hero { padding: 24px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-block;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 28px; }
.cta-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; }
.hero-art img { transform: rotate(1.2deg); }

/* Dread */
.dread { background: var(--sky); padding: 80px 0; border-top: var(--line); border-bottom: var(--line); }
.dread .wrap { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: center; }
.dread p { font-size: 1.15rem; max-width: 32em; }
.dread p:last-child { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.todo {
  position: relative;
  background: var(--note);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--pop);
  padding: 26px 30px 30px;
  transform: rotate(-2deg);
  max-width: 420px;
  justify-self: center;
  width: 100%;
}
.todo-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin-bottom: 10px; border-bottom: 2px dashed var(--ink); padding-bottom: 8px; }
.todo ul { list-style: none; margin: 0; padding: 0; }
.todo li { font-size: 1.1rem; padding: 7px 0; border-bottom: 1px solid rgba(27, 35, 64, 0.15); }
.todo s { text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.todo .tick { position: absolute; right: 18px; bottom: 6px; font-size: 3.4rem; line-height: 1; color: var(--red); font-weight: 800; transform: rotate(-8deg); }

/* How */
.how { padding: 88px 0; }
.intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; margin-bottom: 20px; }
.steps h3 { display: flex; align-items: center; gap: 10px; }
.num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1rem;
}
.steps p { font-size: 1rem; }

/* Report */
.report { background: var(--sky); padding: 88px 0; border-top: var(--line); border-bottom: var(--line); }
.report .wrap { display: grid; grid-template-columns: 0.6fr 1fr; gap: 56px; align-items: center; }
.report-art { width: 100%; max-width: 340px; justify-self: center; transform: rotate(-1.5deg); }
.report p { font-size: 1.15rem; }
.chat { background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); padding: 22px; max-width: 520px; }
.bubble { border: 2px solid var(--ink); border-radius: 18px; padding: 10px 14px; margin: 0 0 12px; font-size: 1rem; }
.bubble.you { background: var(--note); margin-left: 15%; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--paper); margin-right: 8%; border-bottom-left-radius: 4px; }
.who { display: block; font-weight: 700; font-size: 0.85rem; color: var(--red-deep); }
.bubble pre { margin: 4px 0 0; font-family: var(--mono); font-size: 0.92rem; white-space: pre-wrap; line-height: 1.5; }
.chat figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

/* Jobs */
.jobs { padding: 88px 0; }
.jobs .wrap { display: grid; grid-template-columns: 0.9fr 1fr; gap: 56px; align-items: center; }
.jobs-art img { transform: rotate(-1.2deg); }
.jobs .intro { margin-bottom: 28px; }
.jobs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.jobs-list li { border-top: var(--line); padding-top: 14px; }
.jobs-list h3 { margin-bottom: 6px; }
.jobs-list p { font-size: 1rem; margin: 0; }

/* Rules */
.rules { background: var(--ink); color: var(--paper); padding: 88px 0; }
.rules h2 { color: var(--paper); }
.rules .intro { color: #d5d9ea; }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rules li { border: 2px solid #4a5480; border-radius: var(--radius); padding: 22px; background: #232c4f; }
.rules h3 { color: var(--yellow); }
.rules li p { font-size: 1rem; margin: 0; color: #e6e9f4; }

/* Beta */
.beta { background: var(--sky); padding: 88px 0; border-bottom: var(--line); }
.beta .wrap { display: grid; grid-template-columns: 0.9fr 1fr; gap: 56px; align-items: center; }
.beta-art img { transform: rotate(1.2deg); }
.beta p { font-size: 1.1rem; }
.contact-box { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); padding: 26px; margin-top: 28px; }
.contact-box h3 { font-size: 1.45rem; }

/* Footer */
footer.site { padding: 32px 0 40px; }
footer.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* 404 */
.notfound { padding: 40px 0 96px; }
.notfound .wrap { display: grid; grid-template-columns: 0.5fr 1fr; gap: 48px; align-items: center; }
.notfound img { border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); max-width: 300px; }

/* Responsive */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rules ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero .wrap, .dread .wrap, .report .wrap, .jobs .wrap, .beta .wrap, .notfound .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 56px; }
  .dread, .how, .report, .jobs, .rules, .beta { padding: 64px 0; }
  .report-art { max-width: 260px; }
  .jobs-art, .beta-art { order: 2; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 1.35rem; }
  .brand img { width: 38px; height: 38px; }
  .button.small { padding: 8px 14px; font-size: 0.95rem; }
  .lead { font-size: 1.1rem; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; align-items: start; }
  .steps img { grid-row: span 2; margin: 0; border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
  .jobs-list, .rules ul { grid-template-columns: 1fr; }
  .todo { padding: 22px 22px 28px; }
  .chat { padding: 16px; }
  .contact-box { padding: 22px 18px; }
  .contact-box .button { white-space: nowrap; font-size: 1rem; padding: 12px 18px; }
  .bubble.you { margin-left: 8%; }
  .bubble.bot { margin-right: 0; }
  .notfound img { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
