:root {
  /* Same palette as the hisab app: warm paper, warm near-black, ember. */
  --bg: #faf6f1;
  --surface: #ffffff;
  --text: #1c1815;
  --muted: #6b6055;
  --brand: #b8491a;      /* links and small highlights */
  --button: #1c1815;     /* main button, like the app */
  --on-button: #faf6f1;
  --line: #e2dcd3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1815;
    --surface: #241f1a;
    --text: #f0ece6;
    --muted: #a79c8d;
    --brand: #e8854f;
    --button: #f0ece6;
    --on-button: #1c1815;
    --line: #3a3329;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.brand {
  display: inline-block;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 32px;
}

h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 8px;
}

h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 8px;
}

p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }

.updated { color: var(--muted); margin-bottom: 32px; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
}
.summary ul { margin: 0; padding-left: 20px; }

a { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.links a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

/* Join page */
[hidden] { display: none !important; }

.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
  text-align: center;
}
.code-label { color: var(--muted); margin: 0; }
.code {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: 0.2em;
  margin: 4px 0 12px;
  padding-left: 0.2em; /* balance the trailing letter-spacing */
}
.copy {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--brand);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.copy:focus-visible, .button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 8px; }
.button {
  display: block;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
}
.button.primary { background: var(--button); border-color: var(--button); color: var(--on-button); }
.note { color: var(--muted); }
