/* app.sodatime.com. Brand colours and type match the admin portal
   (websites/sodatime_admin_portal/styles.css). */

:root {
  --soda-red: #ce171f;
  --soda-red-dark: #a5121a;
  --font-grey: #777777;
  --ink: #1f2124;
  --line: #e2e4e8;
  --surface: #ffffff;
  --page: #f4f5f7;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Nunito", Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
}

.card {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 28px;
}

/* sodatime.com ships only a white logo, so it sits on the brand red. */
.brand {
  background: var(--soda-red);
  padding: 22px 0 18px;
}

.logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto;
}

h1 {
  margin: 22px 24px 4px;
  font: 700 34px/1.1 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  margin: 0 28px 22px;
  color: var(--font-grey);
}

.stores {
  display: grid;
  gap: 12px;
  margin: 0 28px;
}

.store {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--soda-red);
  color: #fff;
  text-decoration: none;
}

.store:hover,
.store:focus-visible { background: var(--soda-red-dark); }

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

.store-name { font-weight: 800; font-size: 18px; }

.store-for { font-size: 14px; opacity: 0.9; }

/* Only worth showing where there is a phone to scan it with. */
.qr {
  display: none;
  margin: 24px 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.qr img {
  display: block;
  margin: 0 auto 8px;
  image-rendering: pixelated;
}

.qr figcaption {
  color: var(--font-grey);
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .qr { display: block; }
}
