/* Mischief's Incident Reports: the front desk of his office.
   Colours: night, forest, moss, brass, amber, cream, the stamp's red-brown. */

@font-face { font-family: "Plex Sans"; src: url("fonts/plexsans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #0b1311;
  --wall: #0c1512;
  --forest: #1e2e26;
  --moss: #1f3126;
  --wood: #1d1912;
  --oak: #6d5a2e;
  --brass: #a9863f;
  --amber: #cca863;
  --cream: #e8e2cf;
  --shade: #d3cdb9;
  --label: #3c403b;
  --ink: #8e3b22;
  --muted: #b4bcae;
  --sans: "Plex Sans", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background-color: var(--wall); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 70% 50% at 18% 0%, rgba(204, 168, 99, 0.16), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(0, 0, 0, 0.32) 90px 92px);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible, .btn:focus-visible { outline-color: var(--amber); box-shadow: 0 0 0 6px var(--night); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--cream); color: var(--night); padding: 8px 12px; font-family: var(--mono); z-index: 9; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- paper, labels, the sill */
.paper {
  background-color: var(--cream);
  background-image: url("art/fibre.webp");
  background-size: 256px;
  color: var(--night);
  box-shadow: inset 5px -5px 0 var(--shade), 0 14px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}
.tab {
  display: inline-block;
  margin: 0 0 14px;
  padding: 0.5em 0.75em 0.42em;
  background: var(--brass);
  color: var(--night);
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 3px 0 #5a4520;
  transform: rotate(-1deg);
}
.sill {
  height: 34px;
  background: linear-gradient(to bottom, var(--brass) 0 6px, var(--wood) 6px 30px, rgba(169, 134, 63, 0.5) 30px 32px, transparent 32px);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- the first screen */
.desk { padding: 22px 0 30px; }
.desk .wrap { display: grid; gap: 22px; }
.title {
  margin: 0 0 16px;
  font: 700 clamp(2.15rem, 9.6vw, 3.9rem)/0.98 var(--sans);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #000;
}
.slip {
  margin: 0;
  padding: 16px 18px 18px;
  font: 500 1rem/1.55 var(--mono);
  transform: rotate(-0.6deg);
}
.slip::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 92px; height: 22px;
  margin-left: -46px;
  background: rgba(218, 213, 195, 0.72);
  transform: rotate(2deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.slip p { margin: 0; }
.slip em { font-style: normal; color: var(--ink); }
.slip a { text-decoration-color: var(--ink); }
.slip a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- the player */
.player {
  position: relative;
  padding: 3px;
  background: var(--brass);
  border: 9px solid var(--wood);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.poster { display: block; position: relative; line-height: 0; }
.poster img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.knob {
  position: absolute;
  left: 47.5%; top: 63%;
  width: clamp(54px, 14%, 84px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--night);
  background: radial-gradient(circle at 36% 30%, #ecd394 0 12%, var(--brass) 52%, #7a6230 100%);
  box-shadow: 0 7px 0 var(--night), 0 12px 26px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.knob::after {
  content: "";
  position: absolute;
  left: 38%; top: 29%;
  width: 34%; height: 42%;
  background: var(--night);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.poster:hover .knob, .poster:focus-visible .knob { transform: translate(-50%, calc(-50% + 4px)); box-shadow: 0 3px 0 var(--night), 0 6px 14px rgba(0, 0, 0, 0.6); }
.poster:focus-visible { outline-offset: 6px; }
.player.is-playing { padding: 3px; }
.player iframe { display: block; width: 100%; border: 0; background: #000; }
.player.is-tall { width: min(100%, calc(78vh * 9 / 16 + 30px)); margin-inline: auto; }
.player.is-tall iframe { aspect-ratio: 9 / 16; }
.player.is-wide iframe { aspect-ratio: 16 / 9; }
.under { margin: 12px 0 0; font: 400 0.9rem/1.4 var(--mono); color: var(--muted); }
.under a { color: var(--cream); text-decoration-color: var(--brass); }

/* ---------------------------------------------------------------- meet */
.meet {
  background-color: var(--moss);
  background-image: linear-gradient(to bottom, rgba(11, 19, 17, 0.6), transparent 140px);
  padding: 34px 0 44px;
}
.meet-grid { display: grid; gap: 8px; justify-items: center; }
.portrait {
  margin: 0;
  width: min(250px, 66vw);
  position: relative;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -12% -30% -4%;
  background: radial-gradient(closest-side, rgba(204, 168, 99, 0.3), rgba(204, 168, 99, 0.08) 60%, transparent);
  z-index: 0;
}
.portrait img { position: relative; display: block; width: 100%; z-index: 1; }
.card {
  width: min(100%, 440px);
  margin: -6px 0 0;
  padding: 26px 22px 20px;
  transform: rotate(0.8deg);
}
.card::before, .vn-pin::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  width: 16px; height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ecd394, var(--brass) 60%, #6d5a2e);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.45);
}
.card dl { margin: 0; }
.card dt { font: 400 0.75rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.card dd { margin: 2px 0 14px; font: 700 1.3rem/1.25 var(--sans); }
.card dd.quote { margin-bottom: 0; font-size: 1.45rem; }

/* ---------------------------------------------------------------- the violation notice (the preview and the sheet share it) */
.vn { padding: 30px 24px 22px; font-family: var(--mono); }
.vn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.vn-show { margin: 0; font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.vn-cat { width: 54px; flex: none; margin-top: -10px; }
.vn-title {
  display: inline-block;
  margin: 0 0 22px;
  padding: 0.18em 0.42em 0.12em;
  border: 4px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font: 700 clamp(1.5rem, 7vw, 2.3rem)/1.05 var(--sans);
  letter-spacing: 0.06em;
  transform: rotate(-1.5deg);
}
.vn-line { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 20px; font-size: 1rem; line-height: 1.2; }
.vn-k { flex: none; font-weight: 500; }
.vn-blank { flex: 1 1 auto; min-width: 2em; border-bottom: 2px solid var(--night); height: 1.25em; }
.vn-rule { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 20px; height: 1.5em; }
.vn-rule .vn-blank { height: 100%; }
.vn-typed { font-weight: 500; color: var(--ink); }
.vn-foot { margin: 26px 0 0; font-size: 0.72rem; color: var(--label); letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- take a notice */
.take { padding: 34px 0 44px; }
.take-grid { display: grid; gap: 26px; }
.vn-pin { transform: rotate(-1.2deg); max-width: 520px; }
.notice-wrap { position: relative; max-width: 520px; padding-bottom: 54px; }
.take-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stamp {
  position: absolute;
  right: -4px; bottom: 0;
  width: min(190px, 46%);
  transform: rotate(8deg);
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0.7em 1.15em;
  background: var(--cream);
  color: var(--night);
  font: 500 1rem/1.2 var(--mono);
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--oak);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--oak); }
.btn.alt { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--brass); }
.btn.alt:hover { box-shadow: inset 0 0 0 2px var(--amber); }

/* ---------------------------------------------------------------- find the reports */
.find { padding: 30px 0 44px; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.25)); }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.channels a {
  display: grid;
  gap: 2px;
  padding: 14px 18px 16px;
  border-top: 6px solid var(--brass);
  text-decoration: none;
  border-radius: 2px;
}
.channels li:nth-child(1) a { transform: rotate(-0.5deg); }
.channels li:nth-child(2) a { transform: rotate(0.4deg); }
.channels li:nth-child(3) a { transform: rotate(-0.3deg); }
.ch { font: 700 1.3rem/1.2 var(--sans); }
.handle { font: 400 0.9rem/1.3 var(--mono); color: var(--label); }
.channels a:hover .ch { text-decoration: underline; text-decoration-color: var(--ink); }

/* ---------------------------------------------------------------- footer */
.foot { padding: 6px 0 40px; text-align: center; font: 400 0.85rem/1.6 var(--mono); color: var(--muted); }
.foot p { margin: 0; }

/* ---------------------------------------------------------------- the sticker's landing, the missing page */
.landing .title { font-size: clamp(1.9rem, 8vw, 3.2rem); }
.home-link { display: inline-block; margin: 0 0 14px; font: 500 0.8rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.landing .slip { margin-bottom: 4px; }
.lost { min-height: 86vh; background: radial-gradient(circle at 50% 34%, rgba(204, 168, 99, 0.2), transparent 42%); display: grid; align-content: center; justify-items: center; text-align: center; padding: 40px 16px; gap: 10px; }
.lost img { width: 170px; }
.lost h1 { margin: 6px 0 4px; font: 700 clamp(1.5rem, 6vw, 2.2rem)/1.2 var(--sans); max-width: 18ch; }
.lost a { font-family: var(--mono); }

/* ---------------------------------------------------------------- the notice as its own page */
.sheet-page { padding: 22px 0 40px; }
.sheet-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 22px; }
.sheet { max-width: 720px; margin: 0 auto; }
.sheet .vn { padding: 30px 20px 24px; }
.sheet .vn-line, .sheet .vn-rule { margin-bottom: 28px; }
.sheet .vn-cat { width: 64px; }
.vn-typed { white-space: nowrap; }
@media (min-width: 600px) {
  .sheet .vn { padding: 44px 40px 30px; }
  .sheet .vn-line, .sheet .vn-rule { font-size: 1.15rem; margin-bottom: 30px; }
  .sheet .vn-cat { width: 74px; }
}

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .desk { padding: 44px 0 40px; }
  .desk .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 52px; align-items: center; }
  .slip { font-size: 1.1rem; padding: 20px 24px 22px; }
  .meet-grid { grid-template-columns: auto minmax(0, 440px); justify-content: center; align-items: center; gap: 48px; }
  .portrait { width: 280px; }
  .take-grid { grid-template-columns: minmax(0, 520px) auto; gap: 64px; align-items: center; justify-content: center; }
  .take-actions { flex-direction: column; align-items: flex-start; }
  .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .landing .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- printing the notice: one clean sheet */
@page { size: letter; margin: 0.55in; }
@media print {
  body { background: #fff; color: #000; }
  .sheet-tools, .foot, .sill, .skip { display: none !important; }
  .sheet-page { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .sheet { max-width: none; }
  .paper { background: #fff; box-shadow: none; }
  .sheet .vn { padding: 0.1in 0.05in 0; }
  .sheet .vn-head { margin-bottom: 0.2in; }
  .sheet .vn-show { font-size: 11pt; }
  .sheet .vn-cat { width: 1.1in; margin-top: 0; }
  .sheet .vn-title { font-size: 44pt; margin-bottom: 0.5in; border-width: 6px; }
  .sheet .vn-line, .sheet .vn-rule { font-size: 18pt; margin-bottom: 0.46in; }
  .sheet .vn-rule { height: 0.45in; }
  .vn-blank { border-bottom-color: #000; }
  .sheet .vn-foot { margin-top: 0.5in; font-size: 10pt; }
  .sheet, .vn { break-inside: avoid; }
}
