@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141516;
  --paper: #eef1f3;
  --rule: rgba(20, 21, 22, 0.18);
  --mute: rgba(20, 21, 22, 0.56);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #d4d8dc; }

body {
  width: 390px;
  max-width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.banner {
  padding: 0.55rem 1.05rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}

header { border-bottom: 1px solid var(--rule); }

.back {
  padding: 0.55rem 1.05rem 0;
  font-size: 13px;
}
.back a {
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.who {
  font-size: 13.5px;
  color: var(--mute);
  padding: 0.35rem 1.05rem 0;
}

h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 0.98;
  padding: 0.15rem 1.05rem 0.15rem;
}

.meta {
  padding: 0 1.05rem 0.55rem;
  color: var(--mute);
  font-size: 14.5px;
}

.clock { display: none; }
body[data-ch="voice"] .clock { display: inline; }

.channels {
  display: flex;
  gap: 1.4rem;
  padding: 0 1.05rem;
  border-top: 1px solid var(--rule);
}

.channels button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 15px;
  padding: 0.4rem 0;
  min-height: 44px;
  cursor: pointer;
}

.channels button.on {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.inv {
  padding: 0.45rem 1.05rem 0.65rem;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--mute);
}

.log {
  flex: 1 1 auto;
  min-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.7rem 1.05rem 0.2rem;
}

.msg {
  white-space: pre-wrap;
  padding: 0.55rem 0 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.msg.me {
  padding-left: 2.2rem;
  color: var(--mute);
}

.msg.them { padding-right: 0.3rem; }

.cues {
  padding: 0.35rem 1.05rem 0.15rem;
  font-size: 13px;
  color: var(--mute);
  border-top: 1px solid var(--rule);
  line-height: 1.55;
}

.cues button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 0.2rem 0;
  min-height: 36px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.dock {
  border-top: 1px solid var(--rule);
  padding: 0.5rem 0.85rem 0.35rem;
}

#input {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16.5px;
  line-height: 1.35;
  padding: 0.45rem 0 0.5rem;
  resize: none;
  min-height: 48px;
}

#input:focus { outline: none; }

.thumbs {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

#hold, #send {
  appearance: none;
  flex: 1 1 50%;
  min-height: 56px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 0;
}

#send {
  background: var(--ink);
  color: var(--paper);
}

#hold.down {
  background: var(--ink);
  color: var(--paper);
}

body[data-ch="voice"] #hold { flex: 1.3 1 58%; }

.foot {
  padding: 0.4rem 1.05rem calc(0.7rem + env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--mute);
  border-top: 1px solid var(--rule);
}

.foot button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  padding: 0;
}
