/* Almost nothing: white, one serif, fine lines. A person's color is only ever a small dot. */
@font-face { font-family: "Newsreader"; src: url("/static/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 500; font-display: swap; }

/* Registered so a color reroll drifts instead of snapping. */
@property --me { syntax: "<color>"; inherits: true; initial-value: #2b59c3; }

:root {
  --ink: #232323; --soft: #8c8c8c; --faint: #c4c4c4; --line: #ededed; --paper: #fff;
  --warn: #a8483f;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --slow: cubic-bezier(.25, .1, .25, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: 27rem; min-height: 100svh;
  padding: 0 max(1.75rem, env(safe-area-inset-left)) 6rem;
  background: var(--paper); color: var(--ink);
  font: 340 17px/1.75 var(--serif); font-optical-sizing: auto; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; transition: --me 1.6s var(--slow);
  -webkit-tap-highlight-color: transparent;
}
::selection { background: color-mix(in srgb, var(--me) 16%, #fff); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--faint);
  text-decoration-thickness: 1px; text-underline-offset: .25em; transition: text-decoration-color .6s, opacity .6s; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-weight: 340; margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--soft); }
.small { font-size: .82rem; }
[hidden] { display: none !important; }

/* Small lowercase labels: day names, buttons, the wordmark. */
.label, .wordmark, .dayname, .btn, .chip, .sound-toggle, .earlier h2, .day h3, .eyebrow, .foot, .quiet {
  font-size: .72rem; letter-spacing: .12em; text-transform: lowercase; font-weight: 400; line-height: 1.4; }

/* ---------- a person: a dot ---------- */
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--me));
  vertical-align: middle; margin: -.15em .55em 0 0; flex: none; transition: background 1.6s var(--slow); }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 2.2rem 0 0; }
.wordmark { color: var(--ink); text-decoration: none; }
.bar-right { display: flex; align-items: center; gap: 1.4rem; }
.sound-toggle { background: none; border: 0; padding: .5rem 0; margin: -.5rem 0; cursor: pointer; color: var(--faint);
  font-family: inherit; transition: color .8s; }
.sound-toggle[aria-pressed="true"] { color: var(--soft); }
.me-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--me); position: relative; }
.me-dot::after { content: ""; position: absolute; inset: -14px; } /* a thumb-sized target */

main { padding-top: 22vh; }
.landing main { padding-top: 26vh; }

/* ---------- type ---------- */
.title { font-size: 1.15rem; line-height: 1.5; margin: 0 0 1.4rem; }
.lede { font-size: 1.06rem; }
.eyebrow { color: var(--soft); margin: 0 0 .4rem; }
.them { color: inherit; }
.pair { font-size: 1.02rem; margin: 0 0 4.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45em; }
.pair .with { color: var(--soft); }
.name { font-size: 1.02rem; margin: 0 0 3rem; }
.error { color: var(--warn); font-size: .88rem; margin: .7rem 0 0; }
.notice { font-size: .88rem; color: var(--soft); border-left: 1px solid var(--me); padding: .1rem 0 .1rem .9rem; margin: 0 0 2.5rem; }

/* ---------- fades: slow, soft, staggered ---------- */
.fade { animation: fadeIn 1.6s var(--slow) both; animation-delay: calc(var(--i, 0) * 180ms + 80ms); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.w { display: inline-block; white-space: pre; }
.l { display: inline-block; white-space: pre; animation: letterIn 1.4s var(--slow) both; }
@keyframes letterIn { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
.l.out { animation: letterOut .5s ease-in both; }
@keyframes letterOut { to { opacity: 0; } }

/* ---------- buttons: a fine outline, or just words ---------- */
.btn, .chip { -webkit-user-select: none; user-select: none; cursor: pointer; touch-action: manipulation;
  font-family: inherit; color: var(--ink); background: none; text-decoration: none; display: inline-block;
  transition: opacity .5s var(--slow), transform .5s var(--slow), border-color .6s, color .6s; }
.btn { border: 1px solid var(--ink); border-radius: 0; padding: .7rem 1.4rem .72rem; }
.chip { border: 0; padding: .35rem 0; color: var(--soft); }
.chip:hover { color: var(--ink); }
.btn:active, .btn.is-down, .chip:active, .chip.is-down, .press.is-down { opacity: .45; transform: translateY(1px);
  transition-duration: .12s; }
.btn:disabled { border-color: var(--faint); color: var(--faint); cursor: default; }
.btn.danger { border-color: var(--warn); color: var(--warn); }
.nudge { animation: nudge .7s var(--slow); }
@keyframes nudge { 30% { transform: translateX(3px); } 100% { transform: none; } }
.quiet { color: var(--soft); text-decoration: none; }
.quiet:hover { color: var(--ink); }
.row { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin: 0 0 2.5rem; }
.stack form { margin: 0; }

/* ---------- inputs: a single line under ---------- */
input[type="email"], textarea.boxed { font: inherit; font-size: 1rem; width: 100%; color: var(--ink); background: none;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .5rem 0; outline: none;
  transition: border-color .8s; caret-color: var(--me); }
input[type="email"]::placeholder, textarea::placeholder { color: var(--faint); }
input[type="email"]:focus, textarea.boxed:focus { border-color: var(--soft); }
textarea.boxed { resize: none; margin-bottom: 2rem; }
.label { display: block; color: var(--soft); margin: 0 0 .3rem; }
.signin { margin: 3.5rem 0 3rem; }
.signin .btn { margin-top: 1.6rem; }

/* ---------- landing ---------- */
.two { display: flex; gap: 11px; margin: 0 0 2.6rem; }
.two .dot { width: 6px; height: 6px; margin: 0; }
.two .dot + .dot { transform: translateY(5px); }
.landing .lede { max-width: 19rem; }

/* ---------- /you ---------- */
.you .name-big { font-size: 1.7rem; line-height: 1.3; font-weight: 300; min-height: 1.3em; margin: 0 0 .1rem;
  display: flex; align-items: center; overflow-wrap: normal; }
.you .name-big .dot { width: 7px; height: 7px; margin: 0 .7rem 0 0; }
.rerolls { display: flex; gap: 1.6rem; margin: 0 0 1rem; }
.rerolls form { margin: 0; }
.you .btn { margin: 2.2rem 0 1.6rem; }

/* ---------- today ---------- */
.today { margin: 0 0 5rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: .9rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.dayname { color: var(--ink); }
.left { color: var(--faint); font-size: .72rem; letter-spacing: .12em; }
.compose textarea { display: block; width: 100%; border: 0; outline: none; resize: none; padding: 0; margin: 0;
  font: inherit; font-size: 1.06rem; line-height: 1.75; color: var(--ink); background: transparent;
  caret-color: var(--me); min-height: 5.4rem; overflow: hidden; }
.compose-foot { display: flex; align-items: center; justify-content: flex-end; gap: 1.4rem; margin-top: 1.2rem; }
.counter { font-size: .72rem; letter-spacing: .08em; color: var(--faint); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity 1s, color .8s; }
.counter.show { opacity: 1; }
.counter.warn { color: var(--warn); }
.compose.sending textarea { animation: sendText 1.1s var(--slow) forwards; }
@keyframes sendText { to { opacity: 0; transform: translateY(-6px); } }
.status { display: flex; align-items: baseline; margin: 2.4rem 0 0; color: var(--soft); font-size: .88rem; }
.status .dot { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }
.sealed { display: flex; align-items: baseline; color: var(--soft); font-size: .94rem; margin: 0; }
.reveal-prompt { display: flex; align-items: baseline; gap: .9rem; margin: 0; color: var(--soft); font-size: .94rem;
  animation: fadeIn 2.4s var(--slow) both; }
.reveal-prompt .dot { margin-right: -.4rem; }
.reveal-prompt .link { font: inherit; color: var(--ink); background: none; border: 0; padding: .4rem 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--faint); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.reveal-prompt .link:hover { text-decoration-color: var(--ink); }
.reveal-prompt.go { animation: fadeOut .7s var(--slow) forwards; }
@keyframes fadeOut { to { opacity: 0; } }

/* ---------- messages ---------- */
.msgs { display: flex; flex-direction: column; gap: 2.2rem; }
.msg-name { font-size: .72rem; letter-spacing: .12em; color: var(--soft); margin: 0 0 .35rem; display: flex; align-items: center; }
.msg-name .dot { margin: 0 .6rem 0 0; }
.msg-body { font-size: 1.06rem; line-height: 1.75; margin: 0; white-space: pre-wrap; }
.msg.mine .msg-body { color: #555; }
.earlier h2 { color: var(--faint); margin: 0 0 2rem; }
.day { margin: 0 0 3rem; }
.day h3 { color: var(--soft); margin: 0 0 1.2rem; }
.day .msg-body { font-size: .96rem; color: #444; }
.day .msgs { gap: 1.5rem; }
.skipped { margin: 0; font-size: .88rem; color: var(--faint); }
.foot { margin-top: 5rem; color: var(--faint); display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--soft); }

/* ---------- misc pages ---------- */
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { margin-bottom: 1.1rem; }
.report-item { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: .4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.sound-toggle[aria-pressed="false"] { text-decoration: line-through; text-decoration-thickness: 1px; }
