:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f6f7f9;
  color: #15171a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: #0f6bdc;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 28px;
  border-bottom: 1px solid #dfe3e8;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: #58606b;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.summary {
  max-width: 260px;
  margin: 0;
  color: #4c5561;
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: right;
}

.feed {
  padding-top: 28px;
}

.likes {
  display: grid;
  gap: 18px;
}

.tweet-card {
  min-height: 170px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #ffffff;
}

.tweet-card iframe {
  margin-inline: auto;
}

.tweet-fallback {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.twitter-tweet {
  margin: 0 auto;
}

.empty,
.error {
  margin: 32px 0;
  padding: 18px 0;
  border-top: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8;
  color: #58606b;
  text-align: center;
}

.error {
  color: #a3332a;
}

.actions {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.more-button {
  min-width: 144px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #15171a;
  border-radius: 8px;
  background: #15171a;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.more-button:disabled {
  cursor: progress;
  opacity: 0.68;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 760px);
    padding-top: 28px;
  }

  .page-header {
    display: block;
  }

  .summary {
    max-width: none;
    margin-top: 14px;
    text-align: left;
  }

  .tweet-card {
    padding: 10px;
  }
}


.local-tweet {
  padding: 8px 6px 14px;
}

.tweet-author {
  margin: 0 0 8px;
  color: #58606b;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.tweet-text {
  margin: 0;
  color: #15171a;
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
