/* Anywhere Here — website. The screenshot kit's paper system
   (deploy/screenshot-kit/kit.css) adapted from fixed-viewport vw units
   to responsive rem/clamp units. Tokens and paper details are kept
   identical; kit.css itself is untouched so the store set keeps
   rendering byte-identical. Design rationale:
   deploy/screenshot-kit/README.md. */

:root {
  --paper: #f7f3e8;
  --paper-edge: #e8e2d0;
  --ink: #26221c;
  --ink-faint: #6e6858;
  --rule: #c9c2ae;
  --taxi-yellow: #f2c21b;
  --stamp-red: #b8342a;
  --stamp-green: #2c7a3f;
  --desk: #354143; /* dispatch-office desk */
  --star: #d9a400;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background:
    radial-gradient(75rem 50rem at 50% 0%, rgba(255,255,255,0.07), transparent 60%),
    var(--desk);
  font-family: "Courier New", Courier, monospace;
  color: var(--ink);
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem) clamp(0.6rem, 3vw, 2rem);
}

/* ---------- paper ---------- */

.paper {
  position: relative;
  max-width: 42.5rem;
  margin: 0 auto;
  background:
    linear-gradient(174deg, rgba(0,0,0,0.025) 0%, transparent 18%),
    var(--paper);
  border-radius: 0.3rem;
  box-shadow:
    0 1.2rem 3rem rgba(0,0,0,0.45),
    0 0.25rem 0.6rem rgba(0,0,0,0.3);
  padding: clamp(1.6rem, 5vw, 3rem) clamp(1.2rem, 5vw, 3.2rem);
  transform: rotate(-0.4deg);
}

/* ---------- letterhead ---------- */

.letterhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0.4rem solid var(--taxi-yellow);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.letterhead .brand {
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.letterhead .brand a { color: inherit; text-decoration: none; }

.letterhead .dept {
  font-size: clamp(0.62rem, 1.8vw, 0.8rem);
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-align: right;
}

/* ---------- document title (the headline) ---------- */

.doc-title {
  font-size: clamp(2.4rem, 10vw, 4.2rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.doc-subtitle {
  font-size: clamp(0.9rem, 2.6vw, 1.1rem);
  color: var(--ink-faint);
  margin-bottom: 1.8rem;
  letter-spacing: 0.06em;
}

/* ---------- form fields ---------- */

.fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.field {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
}

.field .k { color: var(--ink-faint); white-space: nowrap; letter-spacing: 0.06em; }

.field .v {
  font-weight: 700;
  border-bottom: 2px dotted var(--rule);
  flex: 1;
  padding-bottom: 0.25rem;
}

.field .v small { font-weight: 400; color: var(--ink-faint); font-size: 0.8em; }

/* stars render in the game's rating yellow */
.stars { color: var(--star); letter-spacing: 0.15em; }

/* ---------- body copy (notice text and legal prose) ---------- */

.body-copy { font-size: clamp(0.95rem, 2.7vw, 1.05rem); line-height: 1.6; }
.body-copy p + p, .body-copy p + ul, .body-copy ul + p { margin-top: 1rem; }
.body-copy ul { padding-left: 1.3rem; }
.body-copy li + li { margin-top: 0.35rem; }

.body-copy h2 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.3rem;
  margin: 1.9rem 0 0.7rem;
}

.body-copy a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.body-copy .redact {
  background: var(--ink);
  color: var(--ink);
  border-radius: 2px;
}

/* ---------- attached game shot ---------- */

.photo {
  position: relative;
  width: min(14rem, 74%);
  margin: 2.2rem auto;
  background: #fff;
  padding: 0.7rem 0.7rem 2.9rem;
  box-shadow: 0 0.6rem 1.6rem rgba(0,0,0,0.32);
  transform: rotate(1.6deg);
}

/* The window crops the raw sim capture: hides the Dynamic Island strip
   (top ~170px of a 1206×2622-proportioned capture). */
.photo .window {
  overflow: hidden;
  aspect-ratio: 1206 / 2452;
}
.photo img { display: block; width: 100%; height: auto; margin-top: -14.1%; }

.photo .caption {
  position: absolute;
  bottom: 0.55rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* yellowed sticky-tape detail */
.photo::before {
  content: "";
  position: absolute;
  top: -0.9rem; left: 50%;
  width: 7rem; height: 1.7rem;
  margin-left: -3.5rem;
  background: rgba(242, 194, 27, 0.35);
  transform: rotate(-1.2deg);
  box-shadow: 0 0.1rem 0.25rem rgba(0,0,0,0.08);
}

/* ---------- rubber stamps ---------- */

.stamp {
  display: inline-block;
  border: 0.28rem double var(--stamp-red);
  color: var(--stamp-red);
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.6rem 1.1rem;
  border-radius: 0.3rem;
  transform: rotate(-3deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
  text-align: center;
  /* inky unevenness */
  -webkit-mask-image: radial-gradient(120% 120% at 30% 40%, #000 55%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
  mask-image: radial-gradient(120% 120% at 30% 40%, #000 55%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
}

.stamp.green { border-color: var(--stamp-green); color: var(--stamp-green); }

.stamp-row { text-align: center; margin: 0 0 1.5rem; }

/* ---------- download CTA (a stamp you can press) ---------- */

.cta-row { text-align: center; margin: 1.5rem 0 2rem; }

a.cta { text-decoration: none; transition: transform 120ms ease; }
a.cta:hover, a.cta:focus-visible { transform: rotate(-1deg) scale(1.04); }
a.cta:focus-visible { outline: 3px solid var(--stamp-red); outline-offset: 4px; }

.cta-note {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

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

.doc-footer {
  margin-top: 2.5rem;
  border-top: 2px solid var(--rule);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.small-print {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.small-print a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
