/* Shared by every page on the site (invite now, the gift list in phase 3).
   Same palette and font as the app: «رمّان ودهب», Marhey (OFL, self-hosted). */

@font-face {
  font-family: "Marhey";
  src: url("fonts/Marhey-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Marhey";
  src: url("fonts/Marhey-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary: #9b2f48;
  --primary-dark: #7a2238;
  --primary-soft: #f6e1e6;
  --gold: #c8963e;
  --gold-soft: #fbf0d7;
  --gold-ink: #7a5513;
  --bg: #fbf4f1;
  --surface: #ffffff;
  --ink: #2a1f22;
  --muted: #5e4e53;
  --border: #efe6e1;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Marhey", system-ui, sans-serif;
  line-height: 1.7;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

main {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(122, 34, 56, 0.25);
}

h1 {
  margin: 18px 0 4px;
  font-size: 1.6rem;
  color: var(--primary);
}

.lead { margin: 0 0 20px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(42, 31, 34, 0.05);
}

.label { margin: 0 0 6px; font-size: 0.95rem; color: var(--muted); }

.code {
  direction: ltr;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding-left: 0.35em; /* balances the trailing letter-spacing */
  color: var(--primary);
  background: var(--gold-soft);
  border: 2px dashed var(--gold);
  border-radius: 16px;
  padding-block: 10px;
  margin: 0 0 14px;
  user-select: all;
}

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  margin-top: 10px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.steps {
  list-style: arabic-indic;
  text-align: right;
  margin: 0;
  padding: 0 1.4em 0 0;
  color: var(--muted);
}
.steps li { margin-bottom: 6px; }
.steps b { color: var(--ink); }

.note { font-size: 0.9rem; color: var(--muted); margin: 8px 0 0; }
.error { color: var(--primary); font-weight: 700; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

[hidden] { display: none !important; }

footer { margin-top: 24px; font-size: 0.85rem; color: var(--muted); }
