/* ============================================================
   Rockland Poets — brand design 
   Palette (official brand colors):
     cyan1 #C5F6FA  cyan5 #22B8CF  cyan9 #0B7285
     gray1 #F1F3F5  gray5 #ADB5BD  gray9 #212529
   Type: Roboto (UI/body) + Ale Pro (display/headers).
 ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

@font-face {
  font-family: 'Ale Pro';
  src: url('./fonts/Ale Pro.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #F1F3F5;        /* gray1 */
  --paper-raised: #FFFFFF;
  --ink: #212529;          /* gray9 */
  --ink-soft: #6B7278;     /* darkened gray5 slightly for body-text contrast */
  --wine: #0B7285;         /* cyan9 -- primary accent */
  --wine-dark: #095E6E;    /* cyan9, darkened for hover states */
  --brass: #22B8CF;        /* cyan5 -- secondary accent / highlight */
  --moss: #0B7285;         /* cyan9 -- success state (brand has no green, cyan doubles for this) */
  --moss-bg: #C5F6FA;      /* cyan1 -- success background */
  --rust: #C92A2A;         /* not a brand color  */
  --rust-bg: #FBE4E4;
  --line: #ADB5BD;         /* gray5 */
  --radius: 10px;
  --shadow: 0 2px 8px rgba(33, 37, 41, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .display {
  font-family: 'Ale Pro', 'Roboto', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.wordmark {
  font-family: 'Ale Pro', 'Roboto', serif;
  font-weight: 700;
  color: var(--wine);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 100px;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.header .meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], select {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  min-height: 52px;
}

input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 1px;
  border-color: var(--wine);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 16px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

button {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  border: none;
  border-radius: var(--radius);
  padding: 15px 20px;
  min-height: 52px;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.15s ease;
}

button:active { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--wine); color: var(--paper-raised); width: 100%; }
.btn-primary:hover { background: var(--wine-dark); }
.btn-secondary { background: transparent; color: var(--wine); border: 1.5px solid var(--wine); width: 100%; }
.btn-ghost { background: transparent; color: var(--ink-soft); font-weight: 500; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  min-height: 52px;
  font-size: 1.05rem;
  color: var(--ink);
}

.roster-row.checked-in {
  border-left-color: var(--moss);
  background: var(--moss-bg);
}

.roster-row .name { font-weight: 600; }
.roster-row .sub { color: var(--ink-soft); font-size: 0.85rem; }

.badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--moss-bg);
  color: var(--moss);
  font-weight: 500;
}

.error-box {
  background: var(--rust-bg);
  color: var(--rust);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin: 12px 0;
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 20px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
