/* whiterabbit.co: the app's look (design/tokens.json). Always dark, monochrome; the carrot's orange is the one colour. */
:root {
  --ground: #0B0B0F; --text: #FBFAF6; --text-2: #9A9A9F; --text-3: #5E5E63; --on-light: #121212;
  --line: rgba(255,255,255,.027); --carrot: #FF7A1A;
}
* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0; color: var(--text); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  background-color: var(--ground);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
}
main { max-width: 720px; margin: 0 auto; padding: 64px 16px 96px; }
a { color: var(--text); }

/* The rabbit, alive: it blinks, flicks an ear and breathes; still under reduced motion. */
.mark { width: 96px; height: 96px; display: block; }
svg.mark { width: 84px; height: 114px; fill: var(--text); overflow: visible; }
svg.mark .body { transform-box: view-box; transform-origin: 630px 1006px; animation: breathe 3.2s ease-in-out infinite; }
svg.mark .eye { fill: var(--ground); transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
svg.mark .ear { transform-box: view-box; }
svg.mark .front { transform-origin: 688px 588px; animation: twitch 7.3s infinite 1.2s; }
svg.mark .back { transform-origin: 601px 616px; animation: twitch 9.1s infinite 3.4s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes twitch { 0%, 90%, 100% { transform: rotate(0deg); } 92% { transform: rotate(-9deg); } 95% { transform: rotate(3deg); } 97% { transform: rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { svg.mark .body, svg.mark .eye, svg.mark .ear { animation: none; } }

h1 { font-size: 46px; line-height: 1.1; margin: 28px 0 0; letter-spacing: -0.02em; }
h2 { font-size: 23px; margin: 46px 0 8px; }
p, li { color: #E6E6E6; }
.lead { font-size: 21px; color: var(--text); }
ul { padding-left: 20px; }
li + li { margin-top: 4px; }
.small { color: var(--text-2); font-size: 14px; }

/* A conversation, drawn the way the app draws it: iMessage's bubbles in monochrome plastic. */
.chat { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 32px 0 8px; }
.row { display: flex; }
.row.mine { justify-content: flex-end; }
.bubble {
  position: relative; max-width: 74%; padding: 8px 13px; border-radius: 19px;
  font-size: 17px; line-height: 22px; margin: 0;
}
.theirs .bubble {
  color: var(--text); border-bottom-left-radius: 6px;
  background: linear-gradient(180deg, #FFFFFF10, #FFFFFF00 45%), linear-gradient(180deg, #3A3A3E, #26262A);
  box-shadow: inset 0 0 0 1px #FFFFFF0F;
}
.mine .bubble {
  color: var(--on-light); border-bottom-right-radius: 6px;
  background: linear-gradient(180deg, #FBFAF6, #ECEBE5);
  box-shadow: inset 0 0 0 1px #0000001A;
}
/* The tail at the bubble's bottom outer corner. The apps draw bubble and tail as one shape; here the tail is its own
   small shape in the gradient's end colour, so the bubbles' gradients run straight down (180 deg, not the apps' 170):
   then the whole bottom edge is that colour, whatever the bubble's width, and the tail joins without a seam. It only
   fills the bubble's 6 px rounded corner and curls out from the edge. */
.bubble::after {
  content: ""; position: absolute; bottom: 0; width: 15px; height: 18px; pointer-events: none;
  background: no-repeat center / 15px 18px;
}
.mine .bubble::after {
  right: -9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 18'%3E%3Cpath fill='%23ECEBE5' d='M0 12H6V2C6 10 9 15.5 15 18C11.5 18.3 9 17.6 7.5 16.6C6 17.6 3.5 18 0 18Z'/%3E%3C/svg%3E");
}
.theirs .bubble::after {
  left: -9px; transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 18'%3E%3Cpath fill='%2326262A' d='M0 12H6V2C6 10 9 15.5 15 18C11.5 18.3 9 17.6 7.5 16.6C6 17.6 3.5 18 0 18Z'/%3E%3C/svg%3E");
}
/* A carrot on a message, as the app draws it (CarrotChip in ios/WhiteRabbit/Kit/Pieces.swift, placed by RunView):
   a 26 px dark-plastic capsule with a thin orange outline and a soft orange glow, on the bubble's bottom inner
   corner; its inner end reaches 24 px into the bubble and it overlaps the bubble's bottom by 10 px. One carrot from
   someone else shows no count. */
.row.reacted { margin-bottom: 16px; }
.carrot {
  position: absolute; bottom: -16px; right: calc(100% - 24px); height: 26px; padding: 0 8px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1;
  background: linear-gradient(180deg, #FFFFFF10, #FFFFFF00 45%), linear-gradient(170deg, #3A3A3E, #26262A);
  /* A 3 px ring of the ground colour outside it, so it looks cut out of the bubble (reactionRing). */
  box-shadow: inset 0 0 0 1px #FF7A1A59, 0 0 0 3px var(--ground), 0 0 10px 3px #FF7A1A55;
}

footer { margin-top: 64px; color: var(--text-2); font-size: 14px; }
footer a { color: var(--text-2); margin-right: 16px; }
