/* Guest portal mock-ups — design system.
   Copyright 2026 Claw and Order Labs. */

@font-face {
  font-family: 'Bloodcrow';
  src: url('assets/bloodcrow.ttf') format('truetype');
  font-display: swap;
}

:root {
  --sans: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bloodcrow', Georgia, serif;

  /* warm light shell */
  --page: #F6F1E9;
  --surface: #FFFDF8;
  --ink: #23201B;
  --muted: #7C7365;
  --accent: #A76A16;
  --hairline: rgba(35, 32, 27, .12);
  --lift: rgba(35, 32, 27, .04);
  --going: #3F6B44;
  --danger: #e53e3e;   /* destructive actions only: remove, revoke, sign out everywhere.
                          Reused from the freed-up RSVP 'not coming' badge, so the port adds no new colour. */

  /* room accents, used as ticks and tags in the shell */
  --room-werewolf: #E0A63C;
  --room-singalong: #B2455C;
  --room-theatre: #C0392B;
  --room-social: #1F7A5E;

  --radius: 15px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- layout ---------- */
.portal { display: flex; flex-direction: column; min-height: 100vh; }
.main { padding: 18px 16px 84px; }          /* bottom padding clears the tab bar */
.ctx { padding: 4px 16px 84px; }
.rail { display: none; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  padding: 10px 0 max(14px, env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--hairline);
  font-size: 10px; color: var(--muted);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: inherit; }
.tabs a.on { color: var(--accent); }
.tabs .glyph { width: 16px; height: 16px; border-radius: 5px; background: currentColor; opacity: .45; }
.tabs a.on .glyph { opacity: 1; }

@media (min-width: 900px) {
  .portal { flex-direction: row; }
  .tabs { display: none; }
  .rail {
    display: block; width: 216px; flex: 0 0 auto;
    background: var(--surface); border-right: 1px solid var(--hairline);
    padding: 22px 14px; min-height: 100vh;
  }
  .main { flex: 1; min-width: 0; padding: 26px 30px 40px; }
  .ctx { width: 252px; flex: 0 0 auto; padding: 26px 20px; border-left: 1px solid var(--hairline); }
  .main--reading { max-width: 660px; margin: 0 auto; }   /* recap, songbook */
}

/* ---------- rail ---------- */
.rail-id { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 14px; }
.rail-nav { font-size: 13px; }
.rail-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; }
.rail-nav a.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.rm-group { margin: 3px 0 3px 13px; padding-left: 11px; border-left: 1px solid var(--hairline); }
.rm-head { display: flex; align-items: center; gap: 8px; padding: 7px 9px; font-size: 12.5px; font-weight: 600; }
.rm-head .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.rm-sub { margin-left: 15px; }
.rm-sub a { font-size: 11.5px; padding: 5px 9px; }
.rm-sub .count { margin-left: auto; opacity: .55; font-size: 10.5px; }

/* ---------- type ---------- */
.label { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; color: var(--accent); opacity: .9; margin: 0 0 12px; }
.display { font-family: var(--display); letter-spacing: .02em; font-weight: 400; }
.muted { color: var(--muted); font-size: 11.5px; }
.whisper { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- faces ---------- */
.face { border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
        color: #FFF9EE; font-weight: 600; font-size: 14px; flex: 0 0 auto; overflow: hidden; }
.face--1 { background: linear-gradient(150deg, #C08A2E, #8A4A1E); }
.face--2 { background: linear-gradient(150deg, #B2455C, #6E2A3C); }
.face--3 { background: linear-gradient(150deg, #1F7A5E, #134C3B); }
.face--4 { background: linear-gradient(150deg, #8A6BA8, #4B3866); }
.face--5 { background: linear-gradient(150deg, #C0392B, #7A2018); }
.face--6 { background: linear-gradient(150deg, #4A7EA8, #2A4B66); }

/* ---------- event rows ---------- */
.ev { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--hairline); align-items: flex-start; text-decoration: none; color: inherit; }
.ev-tick { width: 3px; align-self: stretch; border-radius: 2px; flex: 0 0 auto; }
.ev-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ev-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.going { color: var(--going); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent); font: 600 12px/1 var(--sans);
  padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; white-space: nowrap;
}

/* ---------- destructive actions ---------- */
.btn--danger { border-color: color-mix(in srgb, var(--danger) 50%, transparent);
               background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); }
.link--danger { color: var(--danger); font-size: 12px; text-decoration: none; }
