:root {
  /* A faded cab yellow: still warm and New York, but quiet enough that the app and the text lead. */
  --bg: #f3e2ae;
  --ink: #2b1d16;
  --ink-soft: #4d3a22;
  --cream: #fbf3df;
  --red: #a8321f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px;
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  image-rendering: pixelated;
}

.brand-name {
  font-family: 'Pixelify Sans', monospace;
  font-size: 28px;
  font-weight: 700;
}

.brand-tag {
  padding: 3px 10px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 0 0 24px;
  font-family: 'Pixelify Sans', monospace;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
}

h1 span {
  color: var(--red);
}

.lead {
  max-width: 34em;
  margin: 0 0 14px;
  font-size: 19px;
}

.features {
  max-width: 34em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  padding: 3px 0 3px 22px;
  font-weight: 600;
}

/* A small pixel square for a bullet. */
.features li::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 2px;
  width: 9px;
  height: 9px;
  background: var(--ink);
}

.like {
  margin-top: 26px;
}

.like-ask {
  margin: 0 0 12px;
  font-weight: 600;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-bottom: 5px solid #000;
  background: var(--ink);
  color: var(--cream);
  font:
    700 19px Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
}

.like-button:hover {
  background: #3e2c22;
}

.like-button:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}

.like-button:focus-visible,
.restart:focus-visible,
.poster:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.like-button[aria-pressed='true'] {
  background: var(--cream);
  border-bottom-color: #c9bda0;
  color: var(--ink);
  cursor: default;
}

.like-button[aria-pressed='true'] .heart {
  color: var(--red);
}

.like-count {
  min-height: 1.55em;
  margin: 12px 0 0;
}

.like-count strong {
  font-size: 1.15em;
}

.fine {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* 402 points wide: on a 2x screen that fits the office exactly at 3 device pixels per art pixel. */
.phone {
  width: fit-content;
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: #0d0f12;
  box-shadow:
    0 0 0 2px #3a3f47,
    0 28px 60px rgba(0, 0, 0, 0.5);
}

.screen {
  position: relative;
  width: 402px;
  height: min(780px, calc(100vh - 110px));
  min-height: 600px;
  overflow: hidden;
  border-radius: 32px;
  background: #f4ede1;
}

.screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  border: 0;
  background: #f4ede1;
  cursor: pointer;
}

.poster img {
  width: 100%;
  image-rendering: pixelated;
}

.try-button {
  display: block;
  padding: 12px 32px;
  border-bottom: 5px solid #b9831a;
  background: #f2b53a;
  color: var(--ink);
}

.poster:hover .try-button {
  filter: brightness(1.06);
}

.try-title {
  display: block;
  font:
    700 26px 'Pixelify Sans',
    monospace;
}

.try-sub {
  display: block;
  font:
    600 13px Inter,
    system-ui,
    sans-serif;
}

.loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #f4ede1;
  color: var(--ink);
  font-weight: 600;
}

.loading[hidden] {
  display: none;
}

.loading img {
  width: 128px;
  image-rendering: pixelated;
  animation: bob 0.5s steps(2) infinite alternate;
}

@keyframes bob {
  to {
    transform: translateY(-6px);
  }
}

.caption {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.restart {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .loading img {
    animation: none;
  }
}

@media (max-width: 880px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    min-height: 0;
    padding: 24px 16px 40px;
  }

  .stage {
    min-width: 0;
  }

  .phone {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
    border-radius: 34px;
  }

  .screen {
    width: min(402px, calc(100vw - 48px));
    height: min(780px, calc(100dvh - 60px));
    border-radius: 26px;
  }
}
