:root {
  color-scheme: light dark;
  --bg: #f7f8f4;
  --surface: #fff;
  --ink: #1e2924;
  --muted: #52605a;
  --line: #dce4de;
  --accent: #245b49;
  --accent-ink: #fff;
  --tint: #eaf2ec;
  font-family: "Instrument Sans", system-ui, -apple-system, "PingFang SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151c18;
    --surface: #1d2721;
    --ink: #f0f4ee;
    --muted: #b3c4b9;
    --line: #36473d;
    --accent: #a4d7bb;
    --accent-ink: #14261c;
    --tint: #263d31;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-underline-offset: .22em; }
.frame { width: min(100% - 2rem, 48rem); margin-inline: auto; }
.site { border-bottom: 1px solid var(--line); }
.site .frame { padding-block: 1rem; }
.site a { font-weight: 720; color: var(--ink); text-decoration: none; }
.card {
  margin-block: clamp(2rem, 10vh, 6rem);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 6vw, 3rem);
}
h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 .65rem; overflow-wrap: anywhere; }
p { line-height: 1.65; }
.card p, #notice, #status, .account, #send-status { color: var(--muted); }
.card p, .account span { overflow-wrap: anywhere; }
.actions, .heading-top, .account, .submit { display: flex; gap: .65rem 1rem; align-items: center; flex-wrap: wrap; }
.actions { margin-top: 1.5rem; }
button, .button, textarea {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: .65rem;
}
button, .button { display: inline-block; padding: .55rem .9rem; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.conversation { padding-block: clamp(1.5rem, 5vw, 3rem); }
.heading { padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.heading-top, .account, #send-status { font-size: .875rem; }
.heading-top { margin-bottom: .85rem; }
.access { background: var(--tint); color: var(--accent); border-radius: .4rem; padding: .2rem .5rem; font-weight: 700; }
.history { padding-block: .9rem; text-align: center; }
#timeline { display: grid; gap: .75rem; overflow-anchor: none; }
.entry { border: 1px solid var(--line); border-radius: .85rem; padding: .95rem 1rem; background: var(--surface); }
.entry.user { background: var(--tint); }
.entry h2 { font-size: .8rem; color: var(--muted); margin: 0 0 .4rem; }
.entry p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.composer {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  margin-top: 1.25rem;
  padding-block: .75rem;
  display: grid;
  gap: .5rem;
}
.composer label { font-size: .875rem; font-weight: 650; }
.composer textarea { display: block; width: 100%; padding: .7rem; resize: vertical; }
.submit { justify-content: space-between; }
.submit button { margin-left: auto; }
