*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f8fa;
  color: #14171a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

img {
  max-width: 100%;
  border: 0;
}

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: #1da1f2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e6ecf0;
}

.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  height: 46px;
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.search-wrap {
  position: relative;
  margin-left: auto;
  width: min(221px, 52vw);
  height: 46px;
  display: flex;
  align-items: center;
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  fill: #657786;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e6ecf0;
  padding: 0 12px 0 32px;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-wrap input::placeholder {
  color: #657786;
}

.search-wrap input:focus {
  background: #fff;
  border-color: #1da1f2;
}

.search-note {
  position: absolute;
  top: calc(100% + 44px);
  right: 0;
  width: min(260px, 80vw);
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e6ecf0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  color: #14171a;
  font-size: 14px;
  line-height: 1.35;
  z-index: 30;
}

.nav {
  flex: 1 0 100%;
  display: flex;
  height: 42px;
  border-top: 1px solid #e6ecf0;
}

.nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-bottom: 3px solid transparent;
  color: #66757f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a.here {
  color: #1da1f2;
  border-bottom-color: #1da1f2;
}

.nav a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.text-btn:focus-visible,
.composer textarea:focus-visible {
  outline: 2px solid #1da1f2;
  outline-offset: 2px;
}

.sheet {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #e6ecf0;
  border-right: 1px solid #e6ecf0;
}

.cover {
  height: 64px;
  background: #1da1f2;
}

.hero {
  padding: 12px 16px 16px;
  border-bottom: 1px solid #e6ecf0;
}

.hero-bird {
  width: 136px;
  height: auto;
  display: block;
  margin: 2px 0 6px;
}

.hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.sub {
  margin: 8px 0 0;
  color: #657786;
  font-size: 16px;
  line-height: 1.4;
}

.symbol {
  margin: 8px 0 0;
  color: #1da1f2;
  font-size: 15px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #1da1f2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.btn:hover {
  background: #1a91da;
}

.btn:active {
  background: #1681bf;
}

.btn.outline {
  background: #fff;
  color: #1da1f2;
  border-color: #1da1f2;
}

.btn.outline:hover {
  background: #e8f5fd;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn:disabled:hover {
  background: #1da1f2;
}

.tweet {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e6ecf0;
}

.avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: #e6ecf0;
  object-fit: cover;
}

.avatar.bird {
  object-fit: contain;
  padding: 7px;
  background: #e8f5fd;
  border: 1px solid #e1e8ed;
}

.tweet-main {
  min-width: 0;
  flex: 1;
}

.tweet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.tweet-head strong {
  font-size: 14px;
  font-weight: 700;
  color: #14171a;
}

.tweet-head span,
.tweet-head time {
  color: #657786;
  font-size: 14px;
}

.tweet-text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #14171a;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 320px;
  margin-top: 8px;
  margin-left: -6px;
  color: #657786;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 36px;
  font-size: 13px;
}

.act svg {
  width: 18px;
  height: 18px;
  display: block;
}

.token {
  padding: 16px;
  border-bottom: 1px solid #e6ecf0;
}

.token h2,
.how h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.tribute,
.chain-line {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

.launch-line {
  margin: 12px 0 0;
  font-size: 15px;
}

.launch-line a {
  text-decoration: none;
  font-weight: 700;
}

.launch-line a:hover {
  text-decoration: underline;
}

.ca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  background: #f5f8fa;
  border: 1px solid #e6ecf0;
  border-radius: 4px;
}

.ca .label {
  color: #657786;
  font-size: 13px;
  flex: 0 0 auto;
}

.ca code {
  flex: 1;
  min-width: 0;
  font-family: Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: #14171a;
  overflow-wrap: anywhere;
}

.text-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #1da1f2;
  font-size: 13px;
  font-weight: 700;
  padding: 4px;
}

.text-btn:hover {
  text-decoration: underline;
}

.how {
  padding: 16px;
  border-bottom: 1px solid #e6ecf0;
}

.cards {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.card {
  background: #f5f8fa;
  border: 1px solid #e1e8ed;
  border-radius: 4px;
  padding: 12px;
}

.card .num {
  color: #1da1f2;
  font-size: 13px;
  font-weight: 700;
}

.card h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: #657786;
  font-size: 13px;
  line-height: 1.35;
}

.composer {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 10px;
  padding: 12px 16px;
}

.composer .avatar {
  grid-row: 1 / span 2;
}

.composer textarea {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  resize: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
}

.composer textarea::placeholder {
  color: #657786;
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 4px;
}

.count {
  color: #657786;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.count.warn {
  color: #ffad1f;
}

.count.over {
  color: #e0245e;
}

.legal {
  margin: 0;
  padding: 14px 16px 28px;
  text-align: center;
  color: #657786;
  font-size: 13px;
  line-height: 1.55;
  background: #f5f8fa;
}

.legal a {
  color: #1da1f2;
  font-weight: 700;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

@media (hover: hover) {
  .tweet:hover {
    background: #f5f8fa;
  }

  .act {
    border-radius: 999px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .nav a {
    font-size: 12px;
    padding: 0 2px;
  }
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 760px) {
  .topbar-inner {
    flex-wrap: nowrap;
    height: 48px;
    padding: 0 16px;
  }

  .brand {
    order: 1;
    height: 48px;
  }

  .nav {
    order: 2;
    flex: 0 1 auto;
    height: 48px;
    border-top: 0;
    margin-left: 4px;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 13px;
  }

  .search-wrap {
    order: 3;
    width: 221px;
    height: 48px;
  }

  .search-note {
    top: calc(100% - 4px);
  }

  .cover {
    height: 88px;
  }

  .hero {
    padding: 16px 16px 18px;
  }

  .hero-bird {
    width: 168px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .sub {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
