:root {
  --accent: #e8562a;
  --accent-dark: #c84a20;
  --ink: #111;
  --muted: #888;
  --border: #e5e7eb;
  --bubble: #f0f2f5;
  --fb-blue: #365899;
  --text-gray: #65676b;
  --max-width: 832px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Roboto, Arial, sans-serif;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 50px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand__logo {
  height: 30px;
  width: auto;
}

.main-nav {
  display: none;
  gap: 1.75rem;
}

.main-nav span {
  color: #333;
  font-weight: 600;
  font-size: 0.9375rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #333;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background: #f3f4f6;
}

.signin-btn {
  display: none;
  padding: 0.5rem 1rem;
  color: #333;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 20px;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
  }
  .signin-btn {
    display: block;
  }
}

/* Article */
.article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.article__headline {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.article__warning {
  color: var(--accent);
  text-transform: uppercase;
}

.article__lead {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 22px;
}

.article__byline {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.article__byline .author {
  font-weight: 800;
}

.article__byline .author-name {
  color: var(--accent);
}

.article__byline .date {
  color: var(--muted);
  font-weight: 400;
}

.article__image {
  width: 100%;
  margin: 22px 0;
}

/* CTA Button */
.cta-button {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 24px auto;
  padding: 20px 24px;
  background: var(--accent);
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.cta-button:hover {
  background: var(--accent-dark);
}

.cta-button:active {
  transform: scale(0.99);
}

.article__body p {
  font-size: 20px;
  line-height: 28px;
  color: #000;
  margin-bottom: 22px;
}

.article__body p:last-child {
  margin-bottom: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

/* Comments */
.comments {
  max-width: 620px;
  margin: 0 auto;
  padding: 33px 1rem;
}

.comments__count {
  font-weight: 700;
  margin-bottom: 16px;
}

.comments__box {
  border: 1px solid #a6a6a6;
  border-radius: 22px;
  padding: 16px 20px;
}

.comment {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.comment--reply {
  margin-left: 44px;
}

.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment__body {
  flex-grow: 1;
  position: relative;
}

.comment__bubble {
  background: var(--bubble);
  padding: 8px 12px;
  border-radius: 18px;
}

.comment__name {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--fb-blue);
  text-decoration: none;
  margin-bottom: 2px;
}

.comment__text {
  font-size: 15px;
  line-height: 1.33;
  color: #050505;
}

.comment__reactions {
  position: absolute;
  bottom: 6px;
  right: -5px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  padding: 1px 6px 1px 2px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  color: var(--text-gray);
}

.comment__reactions .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #1877f2;
  border-radius: 50%;
}

.comment__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gray);
  margin: 4px 0 16px 12px;
}

.comment__meta span {
  cursor: pointer;
}

.comment__meta span:hover {
  text-decoration: underline;
}

.comments__login {
  text-align: center;
  font-weight: 700;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  font-size: 15px;
  padding: 22px 1rem;
}
