/* forevermuslim.app: colours from packages/fm_ui (FmColors light and dark),
 * the system font stack (no web fonts), logical properties for RTL. */
:root {
  --canvas: #f3f2ec;
  --surface: #fbfaf6;
  --text: #1e2a24;
  --text-2: #56625a;
  --border: #78837b;
  --focus: #8b6b35;
  --accent: #19483d;
  --on-accent: #ffffff;
  --accent-soft: #dce8df;
  --on-accent-soft: #173f35;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111814;
    --surface: #18221c;
    --text: #f1f1e9;
    --text-2: #b1bdb3;
    --border: #6f8175;
    --focus: #e3c57e;
    --accent: #a9d3b8;
    --on-accent: #0f1f17;
    --accent-soft: #2a4436;
    --on-accent-soft: #d3e8da;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

main {
  max-width: 32rem;
  margin-inline: auto;
  padding: 48px 16px 64px;
}

.brand {
  margin: 0 0 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}

h1 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
  color: var(--text-2);
}

.code {
  margin: 24px 0 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
}

.code-label {
  display: block;
  margin-block-end: 4px;
  font-size: 0.875rem;
  color: var(--on-accent-soft);
}

.code-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

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

[hidden] {
  display: none !important;
}

.note {
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: opacity 120ms ease-out;
  }
  .button:active {
    opacity: 0.85;
  }
}
