/* Red String Detective: a cork board, paper notes and the red string. */
:root {
  --cork: #c9935a;
  --cork-dark: #9c6a3c;
  --paper: #fff8e7;
  --paper-2: #f6ead0;
  --ink: #3c281e;
  --soft: #7a5f4c;
  --string: #c8141a;
  --gold: #f2b632;
  --tomato: #f0613f;
  --line: rgba(60, 40, 30, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.12) 0 2px, transparent 3px) 0 0 / 38px 38px,
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.07) 0 2px, transparent 3px) 0 0 / 46px 46px,
    var(--cork);
  font: 17px/1.65 "Avenir Next", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== top bar: a paper strip pinned at both ends ===== */
.strip {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 6px 0 rgba(60,40,30,.18);
}
.strip .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; border: 3px solid var(--ink); }
.brand b { font-size: 19px; letter-spacing: .3px; }
.strip nav { display: flex; gap: 6px; flex-wrap: wrap; }
.strip nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 7px 14px; border-radius: 999px;
}
.strip nav a:hover, .strip nav a[aria-current] { background: var(--gold); }

/* ===== hero: the case file ===== */
.case-file { padding: 54px 0 40px; }
.case-file .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center;
}
.folder {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 34px 34px 30px;
  box-shadow: 10px 10px 0 rgba(60,40,30,.25);
}
.folder::before, .folder::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--string); border: 3px solid var(--ink);
}
.folder::before { left: 26px; }
.folder::after { right: 26px; }
.folder .logo { width: min(420px, 100%); margin: 0 0 14px; }
.folder h1 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; }
.folder p { margin: 0 0 18px; color: var(--soft); }
.stamp {
  display: inline-block; transform: rotate(-4deg);
  border: 3px solid var(--string); color: var(--string);
  font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 8px; font-size: 14px;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badges span {
  background: var(--paper-2); border: 2px solid var(--line);
  border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600;
}
.hero-shot {
  justify-self: center; width: min(320px, 100%);
  border: 5px solid var(--ink); border-radius: 30px; overflow: hidden;
  transform: rotate(2deg); box-shadow: -10px 10px 0 rgba(60,40,30,.28);
  background: var(--ink);
}

/* ===== section heading on a paper tag ===== */
.board { padding: 34px 0; }
.tag {
  display: inline-block; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 10px;
  padding: 6px 18px; margin: 0 0 22px;
  font-size: 22px; font-weight: 800; transform: rotate(-1.5deg);
}

/* ===== how to play: notes tied by the red string ===== */
.trail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trail::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 18px; height: 4px;
  background: var(--string); border-radius: 4px; z-index: 0;
}
.note {
  position: relative; z-index: 1;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px;
  padding: 34px 18px 18px; box-shadow: 5px 5px 0 rgba(60,40,30,.22);
}
.note:nth-child(even) { transform: rotate(1.2deg); }
.note:nth-child(odd) { transform: rotate(-1deg); }
.note::before {
  content: ""; position: absolute; top: 8px; left: 50%; margin-left: -12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--string); border: 3px solid var(--ink);
}
.note h3 { margin: 0 0 6px; font-size: 18px; }
.note p { margin: 0; font-size: 15px; color: var(--soft); }

/* ===== districts: five case folders ===== */
.districts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.district {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px;
  overflow: hidden; box-shadow: 5px 5px 0 rgba(60,40,30,.22);
}
.district img { aspect-ratio: 640 / 274; object-fit: cover; width: 100%; border-bottom: 3px solid var(--ink); }
.district .body { padding: 10px 12px 12px; }
.district h3 { margin: 0 0 4px; font-size: 16px; }
.district p { margin: 0; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.district .keepsake { width: 54px; height: 46px; object-fit: contain; float: right; margin: -4px 0 0 6px; }

/* ===== helpers ===== */
.helpers { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.crowd { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.crowd img { width: 19%; }
.knacks { display: grid; gap: 12px; }
.knack {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 16px;
}
.knack img { width: 46px; height: 56px; object-fit: contain; justify-self: center; }
.knack b { display: block; }
.knack span { color: var(--soft); font-size: 15px; }

/* ===== screenshots pinned on the board ===== */
.pins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pins figure { margin: 0; position: relative; }
.pins img {
  border: 4px solid var(--ink); border-radius: 22px; background: var(--ink);
  box-shadow: 5px 5px 0 rgba(60,40,30,.25);
}
.pins figure:nth-child(odd) { transform: rotate(-1.5deg); }
.pins figure:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.pins figcaption { text-align: center; font-weight: 700; font-size: 14px; margin-top: 10px; }

/* ===== the thief ===== */
.mystery {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--paper); border: 4px solid var(--ink); border-radius: 18px; padding: 22px 26px;
}
.mystery .glove { width: 130px; transform: rotate(-5deg); }
.mystery .curator { width: 110px; }
.mystery h2 { margin: 0 0 6px; }
.mystery p { margin: 0; color: var(--soft); }

/* ===== promises and contact ===== */
.promise { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.promise span {
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 15px;
}
.contact { text-align: center; }
.contact .folder { display: inline-block; text-align: left; max-width: 620px; }
.foot { padding: 30px 0 40px; text-align: center; font-size: 14px; color: var(--paper); }
.foot a { margin: 0 8px; }

/* ===== legal pages: one long paper sheet ===== */
.sheet {
  background: var(--paper); border: 4px solid var(--ink); border-radius: 18px;
  padding: 34px 38px; margin: 40px auto; max-width: 840px;
  box-shadow: 10px 10px 0 rgba(60,40,30,.25);
}
.sheet h1 { margin-top: 0; }
.sheet h2 { font-size: 20px; margin: 28px 0 8px; border-bottom: 3px solid var(--string); display: inline-block; }
.sheet p, .sheet li { color: #4d372b; }
.sheet .updated { color: var(--soft); font-size: 14px; }

/* ===== phones ===== */
@media (max-width: 860px) {
  .case-file .wrap, .helpers { grid-template-columns: 1fr; }
  .hero-shot { width: 240px; }
  .trail { grid-template-columns: 1fr 1fr; }
  .trail::before { display: none; }
  .districts { grid-template-columns: 1fr 1fr; }
  .pins { grid-template-columns: repeat(3, 1fr); }
  .mystery { grid-template-columns: 1fr; text-align: center; }
  .mystery .glove, .mystery .curator { margin: 0 auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .strip .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .folder { padding: 28px 22px 24px; }
  .folder h1 { font-size: 24px; }
  .trail, .districts { grid-template-columns: 1fr; }
  .pins { grid-template-columns: 1fr 1fr; }
  .sheet { padding: 26px 20px; margin: 24px 12px; }
}
