/* SnackFit link pages. Colours and type scale from docs/DESIGN.md (tokens 1r). No web fonts are
   loaded (no external requests): the design fonts are used when installed, else system fonts. */
:root {
  color-scheme: light dark;
  --primary: #1f4d46;
  --on-primary: #f8fbfa;
  --primary-container: #d9e5e0;
  --surface: #f6f4ef;
  --surface-lowest: #ffffff;
  --surface-container: #efece4;
  --on-surface: #15201e;
  --on-surface-variant: #5a6866;
  --outline-variant: #e0dcd2;
  --warning-container: #fff8e6;
  --on-warning-container: #4a3d18;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8ecbbd;
    --on-primary: #0a2621;
    --primary-container: #2d6a5e;
    --surface: #0f1413;
    --surface-lowest: #172020;
    --surface-container: #1e2827;
    --on-surface: #e7eeec;
    --on-surface-variant: #9bada9;
    --outline-variant: #2b3634;
    --warning-container: #2a2616;
    --on-warning-container: #f1e3b8;
  }
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 1rem; /* bodyMedium 16/25 */
  line-height: 1.5625;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 34px 20px 48px;
}

.brand {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1875rem; /* titleLarge 19/24 */
  line-height: 1.26;
  color: var(--primary);
}

h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem; /* headlineSmall 24/30 */
  line-height: 1.25;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.0625rem; /* titleMedium 17/24 */
  font-weight: 500;
  line-height: 1.41;
}

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--on-surface-variant);
}

.code-card {
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  background: var(--surface-lowest);
  text-align: center;
}

.code-label {
  margin: 0 0 8px;
  font-size: 0.8125rem; /* labelSmall 13/18 */
  font-weight: 500;
  line-height: 1.38;
  color: var(--on-surface-variant);
}

.code {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.75rem; /* code 22/28, enlarged: this is the one thing to read */
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps > li {
  position: relative;
  margin: 0 0 26px;
  padding-left: 46px;
  counter-increment: step;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-surface);
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.stores li {
  flex: 1 1 13rem;
}

.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.0625rem; /* labelLarge 17/24 */
  font-weight: 600;
  line-height: 1.41;
  text-align: center;
  text-decoration: none;
}

.button small {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.38;
  opacity: 0.9;
}

.button:hover {
  text-decoration: underline;
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

a {
  color: var(--primary);
}

.note {
  margin: 34px 0 0;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--warning-container);
  color: var(--on-warning-container);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
