/* The Chooser, as Robert picked it in ticket 11: (a) phone screenshots on
   phones and (c) styled bars on desktop. The page is in Robert's voice, plain
   paper and ink and the system font, not dressed in any one Mockup's colours.
   Only the desktop bars borrow each Mockup's colours and type, loading the
   same font files as the Mockups, so they're cached when a Mockup opens. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("hi-vis/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Stardos Stencil";
  src: url("your-colours/fonts/stardos-stencil-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Archivo";
  src: url("your-colours/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Inter Tight";
  src: url("clean-and-simple/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

:root {
  --paper: #f5f3ee;
  --card: #ffffff;
  --ink: #18181b;
  --muted: #5b5b62;
  --line: #dcd8cf;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The Mockups' own colours and type, for the desktop bars only. */
  --hv-orange: #ff6b00;
  --hv-charcoal: #1c1f22;
  --hv-black: #0f1113;
  --hv-muted: #d4d1ca;
  --hv-type: "Barlow Condensed", "Arial Narrow", sans-serif;
  --yc-blue: #1f43a8;
  --yc-yellow: #ffd91a;
  --yc-ink: #101a3a;
  --yc-soft: #d5ddf3;
  --yc-stencil: "Stardos Stencil", Rockwell, Georgia, serif;
  --yc-type: "Archivo", var(--sans);
  --cs-ink: #0b0b0b;
  --cs-accent: #c8ff2e;
  --cs-grey: #5a5a57;
  --cs-line: #e4e4e0;
  --cs-type: "Inter Tight", var(--sans);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

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

/* "Tap" on touch screens, "Click" with a mouse. */
.mouse {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .touch {
    display: none;
  }

  .mouse {
    display: inline;
  }
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =====================================================================
   Phone: (a) phone screenshots. One card per design, a small phone
   beside its number, name and description.
   ===================================================================== */

.chooser {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.credit {
  margin: 0;
  color: var(--muted);
}

.credit a {
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 3px;
}

.instruction {
  margin: 14px 0 0;
  font-size: 1.0625rem;
}

.designs {
  display: grid;
  gap: 12px;
  margin: 22px 0 32px;
}

.design {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas:
    "shot ."
    "shot number"
    "shot text"
    "shot open"
    "shot .";
  gap: 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.shot {
  grid-area: shot;
  display: block;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.number {
  grid-area: number;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
}

.text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.description {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.sample {
  display: none;
}

.open {
  grid-area: open;
  margin-top: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reply__line {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.reply__links {
  display: grid;
  gap: 10px;
  margin: 0;
}

.reply__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.reply__links a:first-child {
  background: var(--ink);
  color: var(--paper);
}

/* =====================================================================
   Desktop: (c) styled bars. Tall full-bleed bands, each in its design's
   colours, with a huge number, the name, a sample of the design (its
   call button, wordmark or number) and an arrow.
   ===================================================================== */

@media (min-width: 900px) {
  .chooser {
    max-width: none;
    padding: 0 0 112px;
  }

  .intro {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 48px 40px;
  }

  .title {
    max-width: 15ch;
    margin: 0;
    font-size: 3.25rem;
  }

  .intro__side {
    max-width: 40ch;
    text-align: right;
  }

  .designs {
    gap: 0;
    margin: 0;
  }

  .design {
    grid-template-columns: 150px 1fr auto auto;
    grid-template-rows: auto;
    grid-template-areas: "number text sample open";
    gap: 40px;
    align-items: center;
    min-height: 200px;
    padding: 28px max(48px, calc((100vw - 1280px) / 2 + 48px));
    border: 0;
    border-radius: 0;
  }

  .shot {
    display: none;
  }

  /* Centred in their column, so 1, 2 and 3 line up down the page whatever
     their typeface or shape (3 sits in a circle). */
  .number {
    display: block;
    justify-self: center;
    width: auto;
    height: auto;
    margin: 0;
    text-align: center;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: 8rem;
    line-height: 0.8;
  }

  .name {
    font-size: 3rem;
    line-height: 1.05;
  }

  .description {
    margin-top: 2px;
    color: inherit;
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .sample {
    display: block;
  }

  .open {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0;
    font-family: var(--sans);
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
  }

  /* Plain arrows: the label is for screen readers only. */
  .open > span:not([aria-hidden]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Hi-vis bar */
  .design--hivis {
    border-top: 8px solid;
    border-image: repeating-linear-gradient(-45deg, var(--hv-orange) 0 10px, var(--hv-black) 10px 20px) 8;
    background: var(--hv-charcoal);
    color: #fff;
    font-family: var(--hv-type);
    font-weight: 800;
    text-transform: uppercase;
  }

  .design--hivis .number {
    color: var(--hv-orange);
  }

  .design--hivis .name {
    font-size: 3.75rem;
  }

  .design--hivis .description {
    color: var(--hv-muted);
  }

  .design--hivis .sample {
    padding: 14px 20px;
    background: var(--hv-orange);
    color: var(--hv-black);
    box-shadow: 5px 5px 0 var(--hv-black);
    font-size: 1.75rem;
    line-height: 1;
  }

  .design--hivis .open {
    background: var(--hv-orange);
    color: var(--hv-black);
    box-shadow: 4px 4px 0 var(--hv-black);
  }

  /* Your colours bar */
  .design--colours {
    border-top: 6px solid var(--yc-yellow);
    background: var(--yc-blue);
    color: #fff;
    font-family: var(--yc-type);
    font-weight: 800;
  }

  /* Stardos Stencil draws its numbers high in the line, so nudge the 2 down
     to sit centred on the name and description beside it. */
  .design--colours .number {
    color: var(--yc-yellow);
    font-family: var(--yc-stencil);
    font-weight: 700;
    transform: translateY(0.09em);
  }

  .design--colours .description {
    color: var(--yc-soft);
  }

  .design--colours .sample {
    padding: 10px 16px;
    border-bottom: 4px solid var(--yc-yellow);
    background: #fff;
    color: var(--yc-blue);
    font-family: var(--yc-stencil);
    font-size: 1.375rem;
    letter-spacing: 0.04em;
    line-height: 0.92;
    text-transform: uppercase;
  }

  .design--colours .open {
    background: var(--yc-yellow);
    color: var(--yc-ink);
  }

  /* Clean and simple bar */
  .design--clean {
    border-top: 1px solid var(--cs-line);
    border-bottom: 1px solid var(--cs-line);
    background: #fff;
    color: var(--cs-ink);
    font-family: var(--cs-type);
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .design--clean .number {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: var(--cs-accent);
    font-size: 4.5rem;
    line-height: 1;
  }

  .design--clean .description {
    color: var(--cs-grey);
  }

  .design--clean .sample {
    background: linear-gradient(transparent 68%, var(--cs-accent) 68%);
    font-size: 2.25rem;
    letter-spacing: -0.03em;
  }

  .design--clean .open {
    border-radius: 999px;
    background: var(--cs-ink);
    color: #fff;
  }

  .reply {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 0;
  }

  .reply__line {
    margin: 0;
  }

  .reply__links {
    display: flex;
    gap: 12px;
  }
}
