/* Murder Walks holding page. Plain black on white, blood-red accent,
   typewriter fonts. No gradients, no tracking, everything served from here. */

/* Fonts are stored with the site (not loaded from Google), so visitors
   never contact a third party just to see the page. Licences in /fonts. */
@font-face {
  font-family: 'Courier Prime';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/courier-prime-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Courier Prime';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/courier-prime-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Special Elite';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/special-elite-400.woff2') format('woff2');
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --blood: #960a0e;
  /* Red that stays readable on the black section (4.7:1). */
  --blood-on-black: #e04a4f;
  --type: 'Courier Prime', 'Courier New', Courier, monospace;
  --stamp: 'Special Elite', 'Courier Prime', 'Courier New', monospace;
  --page: 72rem;
}

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

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

/* Only glide to sections for people who haven't asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
  /* Keep pictures in proportion when they're shrunk to fit. */
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--blood);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
}

/* Hidden until a keyboard user tabs to it. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------- top bar */
.top-bar {
  border-bottom: 2px solid var(--ink);
}
.top-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.top-bar nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-bar nav a {
  display: inline-block;
  padding-block: 0.4rem;
  text-decoration: none;
}
.top-bar nav a:hover {
  text-decoration: underline;
}
.top-bar nav .notify-link {
  color: var(--blood);
  font-weight: 700;
}
@media (max-width: 30rem) {
  /* Keeps the three links on one line on phones. */
  .top-bar nav ul {
    column-gap: 0.9rem;
    font-size: 0.9rem;
  }
}

/* ------------------------------------------------------------------- hero */
.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 3rem 2rem;
}
.hero-logo {
  width: min(100%, 20rem);
  margin-inline: auto;
}
.stamp {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 3px solid var(--blood);
  color: var(--blood);
  font-family: var(--stamp);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  transform: rotate(-6deg);
}
.hero h1 {
  /* Sized so "Solve them on your phone." fits on one line, phones included. */
  font-size: clamp(1.2rem, 5.6vw, 2.3rem);
}
/* The headline is three short lines. */
.hero h1 .line {
  display: block;
}
.hero h1 + p {
  margin-top: 1.25rem;
  max-width: 38rem;
}
.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.85rem 1.5rem;
  background: var(--blood);
  color: var(--paper);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid var(--blood);
}
.button:hover {
  background: var(--paper);
  color: var(--blood);
}

@media (min-width: 48rem) {
  .hero .wrap {
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    padding-block: 4.5rem 3rem;
  }
}

/* ---------------------------------------------------------- blood trail */
.blood-trail {
  width: min(100% - 2rem, 38rem);
  height: auto;
  margin: 1rem auto 0;
}

/* --------------------------------------------------------------- the walks */
.section {
  padding-block: 3.5rem;
}
.section > .wrap > h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.subheading {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}
.cases {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) {
  .cases {
    grid-template-columns: 1fr 1fr;
  }
}
.case {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  border: 3px solid var(--ink);
}
.case-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.case-label .case-no {
  color: var(--blood);
}
.case h3 {
  font-size: 1.6rem;
}
.case ul {
  margin: 0;
  padding-left: 1.2rem;
}
.case-launch {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 2px dashed var(--ink);
  font-weight: 700;
}

/* ------------------------------------------------------- phone mockups */
.screens {
  padding-top: 0;
}
.phones {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) {
  .phones {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.phones figure {
  margin: 0;
  max-width: 17rem;
}
.phones figcaption {
  margin-top: 1rem;
  font-weight: 700;
  text-align: center;
}
.screens-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  text-align: center;
}

/* ----------------------------------------------------------- how it works */
.how {
  background: var(--ink);
  color: var(--paper);
}
.how :focus-visible {
  outline-color: var(--paper);
}
.steps {
  display: grid;
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-no {
  display: block;
  color: var(--blood-on-black);
  font-size: 2rem;
  font-weight: 700;
}
.steps h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}
.small-print {
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- sign-up */
.notify p {
  margin-top: 0.75rem;
  max-width: 38rem;
}
.form-frame {
  margin-top: 1.5rem;
  max-width: 48rem;
}
/* The starting height, repeated here because the security settings ignore
   inline styles. Jotform's resize script then sets the exact height. */
.form-frame iframe {
  display: block;
  width: 100%;
  height: 539px;
  border: none;
}
@media (max-width: 30rem) {
  /* On phones the form wraps onto more lines, so start taller. */
  .form-frame iframe {
    height: 720px;
  }
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: 2px solid var(--ink);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a:hover {
  color: var(--blood);
}

/* ------------------------------------------------------- privacy and 404 */
.plain-page .wrap {
  max-width: 44rem;
  padding-block: 3rem;
}
.plain-page h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}
.plain-page h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}
.plain-page p {
  margin-top: 0.75rem;
}
.plain-page .back {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--blood);
  font-weight: 700;
}
