/* Large, high-contrast and calm: made for readers of all ages. */
:root {
  --red: #b3000c;
  --red-dark: #8a0009;
  --text: #1a1a1a;
  --muted: #444;
  --bg: #ffffff;
  --panel: #f4f4f4;
  --border: #6b6b6b;
  --focus: #ffbf00;
  --green: #1b5e20;
  --altcha-max-width: 100%;
}

* { box-sizing: border-box; }

html { font-size: 20px; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  border-bottom: 6px solid var(--red);
  padding: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.brand img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1 { font-size: 1.6rem; line-height: 1.3; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

a { color: var(--red-dark); text-underline-offset: 3px; }

.info, .help {
  background: var(--panel);
  border-left: 6px solid var(--red);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.help { border-left-color: var(--border); margin-top: 2.5rem; }
.help h2 { margin-top: 0.5rem; }

.steps li { margin-bottom: 0.4rem; }

.field { margin-bottom: 1.5rem; }

label, .label {
  display: block;
  font-weight: bold;
  margin: 0 0 0.35rem;
}

.hint { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.95rem; }

input[type="text"], input[type="email"] {
  width: 100%;
  font-size: 1.15rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.code-input {
  max-width: 12rem;
  font-size: 2rem !important;
  letter-spacing: 0.3em;
  font-family: Consolas, "Courier New", monospace;
  text-align: center;
}

input:focus, button:focus, a:focus, .button:focus {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
}

.button {
  display: inline-block;
  min-height: 3rem;
  padding: 0.7rem 1.75rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid var(--red);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: #fff; color: var(--red-dark); }
.button.secondary:hover { background: #fbe9ea; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

.error {
  border: 3px solid var(--red);
  background: #fdecee;
  padding: 0.5rem 1.25rem;
  margin: 1rem 0 1.5rem;
  border-radius: 6px;
}
.error ul { margin: 0.25rem 0 0.75rem; }
.error-inline { color: var(--red-dark); font-weight: bold; }

.notice {
  border: 3px solid var(--border);
  background: #eef3fb;
  padding: 0.25rem 1.25rem;
  margin: 1rem 0;
  border-radius: 6px;
}

.success {
  border: 3px solid var(--green);
  background: #e8f5e9;
  padding: 0.25rem 1.25rem;
  margin: 1rem 0;
  border-radius: 6px;
  font-size: 1.1rem;
}

.timer {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1.25rem 1rem;
  margin: 1rem 0 1.5rem;
}
.timer p { margin: 0.25rem 0 0.75rem; font-size: 1.05rem; }
.timer .time { font-size: 1.6rem; font-family: Consolas, "Courier New", monospace; }
.timer-bar { height: 12px; background: #ddd; border-radius: 6px; overflow: hidden; }
.timer-bar-fill { height: 100%; width: 100%; background: var(--green); transition: width 1s linear; }
.timer.warning { border-color: var(--red); }
.timer.warning .timer-bar-fill { background: var(--red); }
.timer.expired { border-color: var(--red); background: #fdecee; }

.privacy-note { font-size: 0.95rem; color: var(--muted); }

.site-footer {
  border-top: 1px solid #ccc;
  padding: 1.25rem 1rem 2rem;
  text-align: center;
}
.site-footer a { margin: 0 1rem; }

/* Honeypot: invisible for people, filled by naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

altcha-widget { display: block; margin-top: 0.5rem; }

@media (max-width: 480px) {
  html { font-size: 18px; }
  .brand img { width: 56px; height: 56px; }
  .button { width: 100%; text-align: center; }
}
