@font-face { font-family: 'DM Sans'; src: url('/brand/dm-sans-normal-400-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/brand/instrument-serif-italic-400-latin.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/brand/ibm-plex-mono-normal-400-latin.woff2') format('woff2'); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b1016; --panel: #121a23; --line: #304050; --text: #f5f2ec;
  --muted: #b1bbc3; --accent: #f2bc4a; --blue: #99b8cc;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font: 16px/1.5 'DM Sans', sans-serif; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px max(5vw, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.brand img { margin-right: 3px; }
.brand sup { align-self: flex-start; font-size: 9px; margin: 5px 0 0 -6px; }
.badge { color: var(--blue); font-size: 14px; }
main { max-width: 1184px; margin: auto; padding: clamp(24px, 5vw, 68px) 32px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(54px, 7vw, 86px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
h1 em { font: italic 1.08em/.95 'Instrument Serif', Georgia, serif; color: var(--accent); }
.intro p { margin: 12px 0 28px; color: var(--muted); max-width: 58ch; }
.deck { display: grid; grid-template-columns: minmax(310px, .9fr) 1.1fr; gap: 18px; align-items: start; }
.card { min-width: 0; padding: clamp(18px, 2.7vw, 32px); border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.meta, footer { font: 11px/1.5 var(--mono); letter-spacing: .07em; }
.meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); }
.meta span:last-child { color: var(--blue); overflow-wrap: anywhere; }
.meta .state[data-value=online] { color: var(--accent); }
form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
form:has(#password-label:not([hidden])) .channel-field, form button { grid-column: 1/-1; }
label { color: var(--muted); font-size: 14px; }
input, select { width: 100%; min-height: 45px; margin-top: 6px; border: 1px solid #526377; border-radius: 3px; background: var(--bg); padding: 9px 10px; color: var(--text); font: 16px 'DM Sans',sans-serif; caret-color: var(--accent); }
input::placeholder { color: #9da7b1; }
button { color: var(--bg); background: var(--accent); border: 1px solid transparent; border-radius: 3px; padding: 11px 16px; font: 600 16px 'DM Sans',sans-serif; cursor: pointer; }
button:enabled:hover { background: #ffe4a4; }
button:disabled { background: #25303b; color: #a2adb7; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
.secondary { margin-top: 12px; border-color: var(--blue); background: transparent; color: var(--text); }
.secondary:enabled:hover { background: var(--line); }
.divider { border-top: 1px solid var(--line); margin: 22px 0; }
#talk { touch-action: none; user-select: none; -webkit-touch-callout: none; display: grid; justify-items: center; gap: 4px; width: 100%; margin-top: 12px; padding: 17px 8px; }
#talk[data-active=true] { background: #ffe4a4; border-color: var(--accent); }
#talk strong { font-size: 24px; }
#talk small { font-weight: 400; }
.signal { height: 22px; display: flex; gap: 4px; align-items: center; }
.signal i { width: 3px; height: 40%; background: currentColor; border-radius: 2px; }
.signal i:nth-child(2n) { height: 70%; }
.signal i:nth-child(3) { height: 100%; }
.notice, .caption, .empty { color: var(--muted); }
.notice { margin-top: 12px; font-size: 14px; }
h2 { font-size: 30px; margin-top: 20px; line-height: 1.15; font-weight: 500; letter-spacing: -.025em; }
.caption { margin: 6px 0 18px; }
ol { list-style: none; margin: 0; padding: 0; }
li { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
li p { margin-top: 4px; }
.who { color: var(--accent); font-weight: 600; }
time { margin-left: 10px; color: var(--blue); font: 12px var(--mono); }
footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); flex-wrap: wrap; }
[hidden] { display: none !important; }
@media(max-width: 680px) {
  main { padding: 24px 16px 40px; }
  .deck { grid-template-columns: 1fr; }
  header, footer { padding: 14px 18px; }
  .intro p { margin-bottom: 20px; }
}
@media(max-width: 480px) {
  form { grid-template-columns: 1fr; }
}
