/*
 * NO WORRIES, the promotional site. It borrows the game's look: Act I's paper and green rubber
 * stamp, the support terminal, the complaint tickets and the memos, then each act's palette as the
 * page goes on (the office loses its colors, as in the game). No script, no third-party request.
 */

@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('fonts/rubik-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('fonts/rubik-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Act I, the game's own tokens. */
  --paper: #f3e9d2;
  --paper-deep: #ebdfc3;
  --card: #fbf4e4;
  --ticket: #fffaf0;
  --ink: #2a231c;
  --ink-rgb: 42, 35, 28;
  --ink-soft: #6b5d4f;
  --line: #d9c7a1;
  --green: #27804e;
  --green-dark: #1d5f3a;
  --alert: #c4553b;
  --alert-dark: #a3432c;
  --kevin: #3d9a8f;
  --kevin-dark: #1f6b62;
  --crt: #142019;
  --crt-text: #a3eab6;
  --crt-dim: #6aa97f;
  --accent: var(--green-dark);

  --font-ui: 'Rubik Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card:
    0 1px 0 rgba(var(--ink-rgb), 0.06), 0 12px 24px -14px rgba(var(--ink-rgb), 0.35);
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Worn rubber-stamp texture: sparse speckles where the ink did not take. Used as a mask. */
  --ink-texture: url('ink-texture.svg');
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--kevin-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.overline {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* The logo: the game's "approved" rubber stamp in green ink. */
.stamp {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--green);
  border: 4px solid currentColor;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 5px currentColor;
  font-weight: 800;
  line-height: 0.88;
  text-transform: uppercase;
  transform: rotate(-4deg);
  mix-blend-mode: multiply;
  -webkit-mask-image: var(--ink-texture);
  mask-image: var(--ink-texture);
}

/* The mark is drawn once (#mark) and reused: its bubble takes the color, its check --check. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stamp__mark {
  display: block;
  fill: currentColor;
  --check: var(--paper);
}

.stamp__check {
  fill: none;
  stroke: var(--check, #fff6e3);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stamp--hero {
  padding: 18px 28px 17px;
}

.stamp--hero .stamp__mark {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.stamp__no {
  font-size: 2.2rem;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
}

.stamp__worries {
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  letter-spacing: 0.02em;
}

.stamp--compact {
  flex-direction: row;
  gap: 7px;
  padding: 6px 11px 6px 8px;
  border-width: 2px;
  border-radius: 10px;
  box-shadow: none;
  transform: rotate(-2deg);
  text-decoration: none;
}

.stamp--compact .stamp__mark {
  width: 22px;
  height: 22px;
}

.stamp__inline {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Header and footer. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav [aria-current='page'] {
  color: var(--green-dark);
}

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--ink);
}

/* The hero: the title screen on a ruled sheet under the desk lamp. */
.hero {
  position: relative;
  padding: 24px 0 72px;
  background:
    radial-gradient(ellipse 60% 55% at 70% 10%, rgba(255, 207, 120, 0.45), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(var(--ink-rgb), 0.05) 35px 36px);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero .stamp {
  margin: 8px 0 4px 6px;
}

.tagline {
  margin: 0;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.tagline__coda {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.62em;
  font-weight: 400;
}

.pitch {
  max-width: 34em;
  margin: 0;
  font-size: 1.125rem;
}

/* "Coming soon": the stores, each under a red rubber stamp. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.store {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  padding: 12px 18px 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--ticket);
  box-shadow: 0 3px 0 rgba(var(--ink-rgb), 0.85);
}

.store__on {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.2;
}

.store__name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.store__soon {
  position: absolute;
  top: -11px;
  right: -12px;
  padding: 2px 8px;
  border: 2px solid currentColor;
  border-radius: 6px;
  background: var(--ticket);
  color: var(--alert-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.availability {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Phones: the game's own screens in a plain dark frame. */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.phone {
  width: clamp(210px, 62vw, 290px);
  margin: 0;
  padding: 9px;
  border-radius: 40px;
  background: #1d1b18;
  box-shadow:
    inset 0 0 0 2px #3a3631,
    0 30px 60px -28px rgba(var(--ink-rgb), 0.7),
    0 10px 20px -12px rgba(var(--ink-rgb), 0.5);
}

.phone img {
  width: 100%;
  border-radius: 31px;
  background: var(--paper);
}

.phones .phone--front {
  position: relative;
  z-index: 1;
  transform: rotate(3deg) translateX(18%);
}

.phones .phone--back {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-88%) rotate(-5deg);
  opacity: 0.97;
}

@media (max-width: 559px) {
  .phones {
    min-height: 0;
  }

  .phones .phone--back {
    display: none;
  }

  .phones .phone--front {
    transform: rotate(2deg);
  }
}

/* Sections. */
.section {
  padding: 80px 0;
}

.section__head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section__title {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
}

.section__lede {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* The complaint tickets, as on the desk. */
.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ticket);
  box-shadow:
    0 4px 0 -1px var(--card),
    0 4px 0 0 var(--line),
    0 14px 24px -18px rgba(var(--ink-rgb), 0.55);
}

.ticket:nth-child(3n + 1) {
  transform: rotate(-0.8deg);
}

.ticket:nth-child(3n + 2) {
  transform: rotate(0.6deg);
}

.ticket:nth-child(3n) {
  transform: rotate(-0.3deg);
}

.ticket__case {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticket__text {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.ticket__from {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* The three acts: each in its own palette. */
.acts {
  padding: 0;
}

.act {
  padding: 84px 0;
  background: var(--paper);
  color: var(--ink);
}

.act--one {
  border-top: 1px solid var(--line);
}

.act--two {
  --paper: #e7ecf0;
  --card: #f8fafb;
  --ticket: #ffffff;
  --ink: #1c2731;
  --ink-rgb: 28, 39, 49;
  --ink-soft: #52606d;
  --line: #c2cdd7;
  --accent: #2f5d8a;
}

.act--three {
  --paper: #f3f4f5;
  --card: #ffffff;
  --ticket: #ffffff;
  --ink: #202427;
  --ink-rgb: 32, 36, 39;
  --ink-soft: #5f666c;
  --line: #dadde0;
  --accent: #4a5966;
}

.act__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .act__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 64px;
  }

  .act--two .act__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .act--two .act__text {
    order: 2;
  }
}

.act__number {
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.act__title {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}

.act__text p {
  max-width: 32em;
  margin: 16px 0 0;
  font-size: 1.1rem;
}

.act__text .act__aside {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* One phone per act on narrow screens, two side by side (the second one lower) on wide ones. */
.act__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.act__phones .phone {
  width: clamp(200px, 58vw, 270px);
}

.act__phones .phone + .phone {
  display: none;
}

@media (min-width: 1000px) {
  .act .act__grid,
  .act--two .act__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .act__phones .phone:not(:only-child) {
    width: 236px;
  }

  .act__phones .phone + .phone {
    display: block;
    margin-top: 64px;
  }
}

/* Kevin on the support terminal. */
.terminal {
  position: relative;
  max-width: 760px;
  margin: 56px auto 0;
  padding: 26px 28px 28px;
  border-radius: var(--radius-l);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.16) 0 1px,
      transparent 1px 3px
    ),
    var(--crt);
  box-shadow:
    0 0 0 10px #e1d2ac,
    0 0 0 12px #c6b387,
    0 26px 50px -24px rgba(var(--ink-rgb), 0.7);
  color: var(--crt-text);
  font-family: var(--font-mono);
}

.terminal__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--crt-dim);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terminal__status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4bd27a;
  box-shadow: 0 0 8px #4bd27a;
}

.terminal__quote {
  margin: 16px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.55;
  text-shadow: 0 0 10px rgba(163, 234, 182, 0.35);
}

.terminal__quote p {
  margin: 0;
}

.terminal__who {
  margin: 14px 0 0;
  color: var(--crt-dim);
  font-size: 0.9rem;
}

/* The interlude: a plain sheet in a darker room. */
.interlude {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%),
    #2b2620;
}

.interlude__sheet {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px clamp(22px, 5vw, 44px) 34px;
  border-radius: 6px;
  background: #fbf7ee;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  color: #2a231c;
}

.interlude__kicker {
  margin: 0;
  color: #6b5d4f;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.interlude__title {
  margin: 8px 0 18px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 700;
}

.interlude__sheet p {
  margin: 14px 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.interlude__sheet .interlude__gap {
  color: #8a7b6b;
  text-align: center;
  letter-spacing: 0.4em;
}

/* Company policy: a memo pinned to the board. */
.policy {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px clamp(22px, 5vw, 44px) 34px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(var(--ink-rgb), 0.05) 31px 32px),
    var(--ticket);
  box-shadow:
    0 2px 0 rgba(var(--ink-rgb), 0.08),
    0 24px 48px -22px rgba(var(--ink-rgb), 0.55);
  transform: rotate(-0.6deg);
}

.policy::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e98a74, var(--alert-dark));
  box-shadow: 0 2px 3px rgba(var(--ink-rgb), 0.4);
}

.policy__title {
  margin: 4px 0 18px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.policy__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy__list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1.08rem;
}

.policy__list svg {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  fill: var(--green);
  --check: var(--ticket);
}

/* The last call. */
.closing {
  padding: 88px 0 96px;
  text-align: center;
}

.closing__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 700;
}

.closing__text {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.closing .stores {
  justify-content: center;
  margin-top: 32px;
}

/* Documents: the privacy policy. */
.doc {
  max-width: 760px;
  margin: 12px auto 72px;
  padding: 36px clamp(20px, 5vw, 48px) 40px;
  border-radius: var(--radius-m);
  background: var(--ticket);
  box-shadow: var(--shadow-card);
}

.doc h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.doc h2 {
  margin: 34px 0 8px;
  font-size: 1.3rem;
}

.doc p,
.doc li {
  margin: 10px 0 0;
}

.doc ul {
  margin: 10px 0 0;
  padding-left: 1.3em;
}

.doc__meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.doc__summary {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 4px;
  background: rgba(39, 128, 78, 0.08);
}

.doc__summary p {
  margin: 0;
}

/* Not found. */
.not-found {
  max-width: 640px;
  margin: 40px auto 96px;
  text-align: center;
}

.not-found .ticket {
  margin: 28px auto 0;
  text-align: left;
  transform: rotate(-1deg);
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
