/* GuardaAqui — visual identity: deep petrol board, warm paper card.
   Two-ink print: ink for text, stamp red for the pickup code. */

:root {
  --board: #12333a;
  --board-deep: #0c262b;
  --chalk: #e9efec;
  --chalk-dim: #9fb4ae;
  --paper: #f8f3e7;
  --ink: #223034;
  --ink-dim: #5c6b6a;
  --stamp: #b23a26;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -20%, #1a444d 0%, var(--board) 55%, var(--board-deep) 100%);
  color: var(--chalk);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

/* ---- wordmark ---- */

.wordmark {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--chalk);
  margin-bottom: 1.4rem;
  user-select: none;
}
.wordmark b { color: var(--chalk); font-weight: 700; }

/* ---- the card ---- */

.ticket {
  width: 100%;
  max-width: 26rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 1.8rem 1.7rem 1.5rem;
  box-shadow: 0 14px 40px rgba(4, 16, 19, 0.5);
}

.ticket h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

/* ---- the code ---- */

.code {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--stamp);
  margin: 0.4rem 0 0.2rem;
  user-select: all;
}

.fineprint {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--ink-dim);
  text-align: center;
  margin: 0.6rem 0 0;
}

/* ---- forms ---- */

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-dim);
  margin: 0.9rem 0 0.25rem;
}

input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fffdf7;
  border: 1.5px solid #cfc5ad;
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
}
input:focus {
  outline: none;
  border-color: var(--stamp);
}
input::placeholder { color: #a89f8a; }

/* ---- turnstile: centered inside the card, above the submit button ---- */

.cf-widget {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

button {
  width: 100%;
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: var(--board);
  border: none;
  border-radius: 6px;
  padding: 0.7rem;
  margin-top: 1.2rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}
button:hover { background: #1c454f; }
button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }

/* ---- messages: plain colored text, below the button ---- */

.error, .info {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}
.error { color: var(--stamp); font-weight: 600; }
.info  { color: #1f4d3c; }

/* ---- footnotes ---- */

.hint {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin: 1rem 0 0;
}

nav {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  width: 100%;
  max-width: 26rem;
  display: flex;
  justify-content: space-around;
}
nav a {
  color: var(--chalk);
  text-decoration: none;
  border-bottom: 1px solid #567371;
  padding-bottom: 1px;
}
nav a:hover, nav a:focus-visible { border-bottom-color: var(--chalk); }

.mono { text-transform: uppercase; font-family: "Spline Sans Mono", ui-monospace, monospace; }
