/* The holding page for qr-beacon.com: the app's Print Proof look (DESIGN.md), on one sheet. */

@font-face {
  font-family: "Schibsted Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --ground: #f3f3ef;
  --ink: #111111;
  --ink-soft: #4a4a45;
  --rule: #111111;
  --cobalt: #1d3bd1;
  --on-cobalt: #ffffff;
  --on-cobalt-soft: #cdd5f8;
  --amber: #ffc20e;

  --gutter: 48px;
  --column-gap: 24px;
  --masthead: 72px;
  --code-size: clamp(240px, calc(100svh - 360px), 392px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  font-family: "Schibsted Grotesk Variable", "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--ink) var(--ground);
}

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

::selection {
  background: var(--ink);
  color: var(--ground);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--ground);
}

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--masthead);
  padding: 0 var(--gutter);
  border-bottom: 2px solid var(--rule);
}

.wordmark {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.masthead__status {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Twelve columns: the sheet in 1-7, the cobalt stage in 8-12 to the edge. */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--column-gap);
  padding: 0 var(--gutter);
}

.work {
  grid-column: 1 / 8;
  padding: 56px 0 72px;
}

.title {
  max-width: 11ch;
  font-size: clamp(48px, 5.3vw, 76px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

.lede {
  max-width: 40ch;
  margin-top: 22px;
  font-size: 20px;
  color: var(--ink-soft);
}

.coming {
  max-width: 560px;
  margin-top: 40px;
  list-style: none;
  border-bottom: 2px solid var(--rule);
}

.coming li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 2px solid var(--rule);
}

.coming strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.coming span {
  font-size: 16px;
  color: var(--ink-soft);
}

.note {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
}

.stage {
  grid-column: 8 / 13;
  margin-right: calc(var(--gutter) * -1);
  background: var(--cobalt);
  color: var(--on-cobalt);
}

.stage ::selection {
  background: var(--on-cobalt);
  color: var(--cobalt);
}

.stage__inner {
  position: sticky;
  top: 0;
  padding: 56px var(--gutter) 48px;
}

.code {
  width: var(--code-size);
  max-width: 100%;
}

/* The code on paper, as it would print. */
.code__tile {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.code__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* One authored moment: an amber scan line passes over the code once. */
.code__tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--amber);
  opacity: 0;
  animation: scan 1400ms var(--ease-out) 300ms 1 both;
}

@keyframes scan {
  0% {
    top: 0;
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 3px);
    opacity: 0;
  }
}

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

.code__caption {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--on-cobalt);
}

.code__caption strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.code__caption span {
  font-size: 16px;
  color: var(--on-cobalt-soft);
}

.footer {
  display: grid;
  gap: 6px;
  padding: 18px var(--gutter);
  border-top: 2px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
}

.footer__company {
  max-width: 96ch;
  font-size: 13px;
}

@media (max-width: 1024px) {
  :root {
    --gutter: 24px;
  }

  .work {
    grid-column: 1 / -1;
    padding: 40px 0 40px;
  }

  .stage {
    grid-column: 1 / -1;
    margin: 0 calc(var(--gutter) * -1);
  }

  .stage__inner {
    position: static;
    padding: 40px var(--gutter);
  }

  .code {
    --code-size: min(320px, 100%);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .masthead {
    height: 60px;
  }

  .wordmark {
    font-size: 22px;
  }

  .lede {
    font-size: 18px;
  }

  .coming strong {
    font-size: 18px;
  }
}
