/*
 * Copyright (c) 2026 Ceeliro
 * SPDX-License-Identifier: MIT
 *
 * What both pages share: the fonts, the BeatMe colours, a small reset, the main button,
 * the icons and the "BeatMe" wordmark. The colours are the same as in the app.
 */

/* ── Fonts (self-hosted, so the page makes no call to Google Fonts) ── */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/roboto-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/barlow-condensed-italic-800-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-mono-500-latin.woff2') format('woff2');
}

/* ── Colours and motion ── */
:root {
  color-scheme: dark;

  --beatme-bg: #0f1414;
  --beatme-bg-elevated: #151b1d;
  --beatme-bg-surface: rgba(22, 28, 29, 0.92);
  --beatme-border: rgba(142, 160, 163, 0.24);
  --beatme-border-strong: rgba(142, 160, 163, 0.42);
  --beatme-text: #e0e3e2;
  --beatme-text-soft: #dae5e4;
  --beatme-text-muted: #95a2a7;
  --beatme-accent: #5ed9df;
  --beatme-accent-surface: rgba(94, 217, 223, 0.16);
  --beatme-warm: #ffc452;
  --beatme-warm-surface: rgba(255, 196, 82, 0.12);
  /* The main button: the app's primary colour and the text on it. */
  --beatme-primary: #00dddd;
  --beatme-on-primary: #003737;
  /* The wordmark only: the white and lime of the logo. */
  --beatme-brand-white: #ffffff;
  --beatme-brand-lime: #dcee00;
  --beatme-page-gradient:
    radial-gradient(circle at top left, rgba(94, 217, 223, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 181, 71, 0.1), transparent 24%),
    linear-gradient(180deg, #111617 0%, #0c1011 100%);

  --font-display: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-data: 'Roboto Mono', ui-monospace, Menlo, monospace;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  background-color: var(--beatme-bg);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid;
}

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

body {
  margin: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  background: var(--beatme-page-gradient);
  color: var(--beatme-text);
  font: 400 0.875rem / 1.5 Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Icons (inline SVG drawings of Material icons) ── */
.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ── The main button ("Go to the app") ── */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-inline: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--beatme-primary);
  color: var(--beatme-on-primary);
  font: 500 0.875rem / 1.25rem Roboto, sans-serif;
  letter-spacing: 0.006rem;
  white-space: nowrap;
}

/* A light layer over the button on hover and keyboard focus. */
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 120ms var(--ease-standard);
}

.button:hover::before {
  opacity: 0.08;
}

.button:focus-visible::before {
  opacity: 0.1;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button--icon-end {
  padding-inline: 24px 16px;
}

/* ── The "BeatMe" wordmark: "Beat" in white, "Me" in lime. The size comes from the parent. ── */
.wordmark {
  display: inline-block;
  font-family: Roboto, sans-serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark__beat {
  color: var(--beatme-brand-white);
}

.wordmark__me {
  color: var(--beatme-brand-lime);
}
