@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Onest", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: inherit; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.wrap { max-width: 760px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.head { border-bottom: 2px solid #000; padding-top: env(safe-area-inset-top, 0px); }
.head-inner { display: flex; align-items: center; gap: 12px; padding-block: 16px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.who-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; }
.who-sub { margin: 0; font-size: 14px; line-height: 1.3; }

.thread { display: flex; flex-direction: column; gap: 14px; padding-block: 28px; }
.thread.after { padding-block: 8px 44px; }
.thread.page { padding-block: 28px 44px; }
.msg.rich { max-width: min(40rem, 92%); }
.rich .bubble h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.rich .bubble p, .rich .bubble ul { margin: 0; }
.pairs { margin: 4px 0 0; display: grid; gap: 12px; }
.pairs dt { font-size: 16px; font-weight: 700; line-height: 1.3; }
.pairs dd { margin: 2px 0 0; font-size: 16px; }
.rich .bubble p + ul, .rich .bubble ul + p, .rich .bubble p + p { margin-top: 10px; }
.rich .bubble ul { padding-left: 1.15em; }
.rich .bubble li { font-size: 17px; }
.rich .bubble li + li { margin-top: 6px; }
.day {
  align-self: center;
  margin: 0 0 4px;
  padding: 3px 12px;
  border: 2px solid #000;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.msg { display: flex; flex-direction: column; gap: 6px; max-width: min(34rem, 88%); }
.msg.wide { max-width: 100%; }
.out { align-self: flex-end; align-items: flex-end; }
.in { align-self: flex-start; align-items: flex-start; }
.bubble { margin: 0; padding: 12px 16px; border: 2px solid #000; font-size: 18px; line-height: 1.45; }
.out .bubble { background: #000; color: #fff; border-radius: 22px 22px 6px 22px; }
.in .bubble { background: #fff; color: #000; border-radius: 22px 22px 22px 6px; }
.failed .bubble, .sending .bubble { background: #fff; color: #000; border-style: dashed; }
.meta { margin: 0; display: flex; align-items: center; gap: 8px; color: #555; font-size: 13px; line-height: 1.2; }
.state { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.meta svg { display: block; flex: none; }
.dots i { font-style: normal; }
.dots i:nth-child(1) { animation: blink 1.2s steps(1, end) infinite; }
.dots i:nth-child(2) { animation: blink 1.2s steps(1, end) 0.2s infinite; }
.dots i:nth-child(3) { animation: blink 1.2s steps(1, end) 0.4s infinite; }
@keyframes blink { 0% { visibility: visible; } 60% { visibility: hidden; } }

.band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  margin: 30px 0 34px;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.band-in { display: inline-flex; align-items: center; gap: 10px; }
.band svg { display: block; flex: none; }

.hero-b { padding: 22px 26px 26px; }
.hero-b h1 { font-size: clamp(2.5rem, 7.4vw, 4.8rem); line-height: 0.98; }
.statement h2 { margin: 0; font-size: clamp(1.9rem, 5.4vw, 3.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.page .hero-b h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); line-height: 1; }
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.list { padding: 16px 18px 18px; }
.list dl { margin: 0; display: grid; gap: 16px; }
.list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.list dt::before { content: ""; flex: none; width: 16px; height: 10px; background: #000; }
.list dd { margin: 4px 0 0; font-size: 16px; }
.email-b { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; }
.email {
  min-width: 0;
  font-size: clamp(1.4rem, 4.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.copy {
  padding: 10px 16px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: 600 14px/1 "Onest", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}
.copy:hover { background: #fff; color: #000; }
.head a { text-decoration: none; }
.home .head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: #fff;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home.scrolled .head { transform: none; }
.home .before {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding-block: 40px;
}
.foot { border-top: 2px solid #000; }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 28px calc(32px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  line-height: 1.55;
}
.legal { margin: 0; font-weight: 600; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-links a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot-links a:hover { text-decoration-thickness: 2px; }


.arrive .after .msg { animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes arrive { from { transform: translateY(14px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .home .head { transition: none; }
  .dots i { animation: none !important; }
  .arrive .after .msg { animation: none; }
}
