/* =============================================================================
   THE ROOMS — additive layer on top of THE KIT (brand.css). Like deck.css /
   pulse-ui.css: NEVER edit the kit here; only community-specific structure +
   components. Tokens (--bg, --linen, --bronze, --spectrum, fonts) come from the
   kit; this file only arranges them. (vault §31 — the kit is the visual truth.)
   ============================================================================= */

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar (theme.js mounts the split-disc toggle into .nav) ------------- */
.nav { display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 22px 24px; }
.brandmark { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif;
  font-size: 19px; letter-spacing: .01em; color: var(--linen); text-decoration: none; }
.brandmark .dot { color: var(--bronze); }
.navlinks { display: flex; gap: 18px; align-items: center; font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.navlinks a { color: var(--muted); text-decoration: none; }
.navlinks a:hover { color: var(--linen); }

/* ---- the spectrum hairline — MOTION only (canon §38: a static rainbow reads
   cheap; the spectrum lives in the drift). Reuses the kit's drift-af animation
   (brand.css), so the colours shimmer across the bar rather than sit still. -- */
.hair { height: 3px; width: 80px; border-radius: 2px; margin: 0 0 26px;
  background-image: var(--spectrum); background-size: 300% auto;
  animation: drift-af 20s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hair { animation: none; background-image: none; background: var(--bronze); } }

/* ---- sign-in landing ------------------------------------------------------- */
.landing { padding: 12vh 0 8vh; }
.landing h1 { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif;
  font-weight: 400; font-size: clamp(38px, 7vw, 60px); line-height: 1.04; margin: 0 0 18px; color: var(--linen); }
.landing .lede { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: clamp(19px, 3vw, 24px); line-height: 1.5; color: var(--muted); margin: 0 0 36px; max-width: 30ch; }

.signin { max-width: 420px; }
.signin label { display: block; font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin: 0 0 10px; }
.signin .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signin input[type=email] { flex: 1 1 220px; min-width: 0; background: var(--panel);
  border: 1px solid var(--line); color: var(--linen); font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px; padding: 14px 16px; border-radius: 2px; }
.signin input[type=email]:focus { outline: none; border-color: var(--bronze); }
.btn { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  background: transparent; color: var(--bronze); border: 1px solid var(--bronze); padding: 14px 30px;
  border-radius: 2px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--bronze); color: var(--obsidian); }
.btn[disabled] { opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; line-height: 1.55;
  color: var(--muted); margin: 18px 0 0; max-width: 42ch; }
.note.err { color: #d98a6a; }
.hrt { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- the app shell --------------------------------------------------------- */
.shell { padding: 28px 0 80px; }
.wall { padding: 14vh 0; text-align: left; }
.wall h2 { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 5vw, 42px); margin: 0 0 14px; color: var(--linen); }

.rooms { display: grid; gap: 16px; margin: 22px 0 0; }
.room-card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 22px 24px; transition: border-color .2s; }
.room-card:hover { border-color: var(--bronze); }
.room-card .rt { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif; font-size: 23px;
  color: var(--linen); margin: 0 0 6px; }
.room-card .rb { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; color: var(--muted);
  line-height: 1.5; margin: 0; }
.room-card .tag { float: right; font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }
.room-card .tag.in { color: var(--bronze); border-color: var(--bronze); }

.roomhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 0 0 18px; margin: 0 0 22px; }
.roomhead h2 { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif; font-weight: 400;
  font-size: clamp(28px, 5vw, 40px); margin: 0; color: var(--linen); }
.back { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; }
.back:hover { color: var(--linen); }

/* ---- owner strip (admin: create room / comp a grant) ----------------------- */
.owner { margin: 30px 0 0; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 4px; }
.owner h3 { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); margin: 0 0 14px; }
.owner .f { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.owner input { background: var(--bg); border: 1px solid var(--line); color: var(--linen);
  font-family: 'Inter', sans-serif; font-size: 13px; padding: 9px 11px; border-radius: 2px; }
.owner .btn { padding: 9px 18px; font-size: 11px; }
.tiny { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--stone); }

.foot { margin: 60px 0 0; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--stone); }
.foot a { color: var(--muted); text-decoration: none; }

/* =============================================================================
   STAGE 1 — the feed. Additive layer; tokens (--bg/--linen/--bronze/--spectrum/
   --panel/--line/--muted/--stone) all come from THE KIT (brand.css). §31.
   ============================================================================= */

/* shared view heading */
.vh { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif; font-weight: 400;
  font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; color: var(--linen); }
.nl { color: var(--muted); text-decoration: none; }
.nl:hover { color: var(--linen); }

/* notification bell + badge */
.bell { position: relative; display: inline-flex; align-items: center; color: var(--muted); }
.bell:hover { color: var(--linen); }
.bell svg { display: block; }
.bell .badge { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--bronze); color: var(--obsidian); font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 500; line-height: 16px; text-align: center; }

/* avatars (initials disc, or a url image) */
.av { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background-size: cover; background-position: center; flex: 0 0 auto;
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .02em; color: var(--linen);
  border: 1px solid var(--line); }
.av-i { background: var(--panel); color: var(--bronze); }
.who.sm .av { width: 32px; height: 32px; font-size: 12px; }

/* the founder pin slot */
.pinwrap { margin: 4px 0 6px; }
.post.is-pin { border-color: rgba(176,128,48,.5); background:
  linear-gradient(0deg, var(--panel), var(--panel)) padding-box; box-shadow: inset 2px 0 0 var(--bronze); }
.pintag { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze); margin-right: 12px; }

/* composer */
.composer { margin: 18px 0 26px; }
.composer.flat { margin: 0 0 22px; }
.composer .hair { margin: 0 0 16px; }
.composer .chint { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 17px;
  color: var(--muted); margin: 0 0 10px; }
.composer textarea, .finput { width: 100%; box-sizing: border-box; background: var(--panel);
  border: 1px solid var(--line); color: var(--linen); font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; line-height: 1.5; padding: 13px 15px; border-radius: 3px; resize: vertical; }
.composer textarea:focus, .finput:focus { outline: none; border-color: var(--bronze); }
.crow { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 10px 0 0; }
.crow .tiny { margin-right: auto; }

/* a post */
.feed { display: flex; flex-direction: column; gap: 14px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 18px 20px; }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.who { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.who .nm { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif; font-size: 17px; color: var(--linen); }
.introtag { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); border: 1px solid var(--line); border-radius: 99px; padding: 2px 7px; margin-left: 9px; vertical-align: middle; }
.when { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--stone); white-space: nowrap; }
.pbody { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; line-height: 1.6; color: var(--linen);
  white-space: normal; word-wrap: break-word; overflow-wrap: anywhere; }
.pbody.gone, .cbody.gone, .cmt.gone { color: var(--stone); font-style: italic; }

/* post actions */
.pacts { display: flex; align-items: center; gap: 16px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.pacts .spacer { flex: 1; }
.act { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--muted); background: none; border: none;
  cursor: pointer; padding: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.act:hover { color: var(--linen); }
.act.sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.act.sub:hover { color: var(--bronze); }
.act.mini { margin-left: 10px; font-size: 10px; }
.resonate .hh { color: var(--stone); transition: none; font-size: 15px; line-height: 1; }
.resonate.on .hh { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resonate.on .ct { color: var(--linen); }

/* empty-state guard + load more */
.empty { padding: 26px 0; border: 1px dashed var(--line); border-radius: 5px; text-align: center; }
.empty .note { margin: 0 auto; max-width: 36ch; }
.more { display: flex; justify-content: center; margin: 22px 0 0; }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn.ghost:hover { color: var(--linen); border-color: var(--bronze); background: transparent; }

/* comments */
.cwrap { margin: 30px 0 0; }
.ch { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); margin: 0 0 16px; }
.cmts { display: flex; flex-direction: column; gap: 16px; }
.cmt { display: flex; gap: 12px; }
.cmt.gone { padding: 6px 0; }
.cmain { flex: 1; min-width: 0; }
.ctop { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.cnm { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif; font-size: 15px; color: var(--linen); text-decoration: none; }
.cbody { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 17px; line-height: 1.55; color: var(--linen);
  word-wrap: break-word; overflow-wrap: anywhere; }

/* profile */
.prof { padding: 24px 0 0; max-width: 460px; }
.prof .pav { margin: 0 0 16px; }
.prof .pav .av { width: 72px; height: 72px; font-size: 24px; }
.prof .bio { font-size: 19px; color: var(--linen); margin: 14px 0 0; }
.prof.edit .flbl { display: block; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone); margin: 18px 0 8px; }

/* notifications */
.nlist { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 0; }
.nrow { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; color: var(--muted); line-height: 1.5; }
.nrow:hover { color: var(--linen); }
.nrow .nactor { font-family: var(--serif-display, 'DM Serif Display'), Georgia, serif; color: var(--linen); }
.nrow .nprev { display: block; font-style: italic; color: var(--stone); font-size: 16px; margin: 2px 0 0; }
.nrow .when { display: inline-block; margin: 4px 0 0; }
