/* Basic reset */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}

.brandmark__img {
  width: 34px;
  height: 34px;
  object-fit: cover;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #111;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.toplink {
  color: #111;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.toplink:hover {
  text-decoration: underline;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f1f1f1;
  color: #111;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

/* Page container */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 0;
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 20px;
}

.hero__logo {
  width: min(280px, 70vw);
  height: auto;
  display: block;
  margin: 0 auto 22px;
}

.hero__subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.4;
  color: #111;
  font-weight: 500;
  padding-bottom: 30px;
}

/* Cards */
.card {
  background: #f2f2f2;
  border-radius: 18px;
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid #e8e8e8;
}

.subscribe-card {
  margin-top: 18px;
}

.card__title {
  margin: 0 0 10px 0;
  font-size: 30px;
  font-weight: 700;
  text-align: left;
  color: #1a1a1a;
}

.card__text {
  margin: 0 0 18px 0;
  text-align: left;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

/* Email row */
.email-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7e7e7;
  padding: 10px 12px;
}

.email-row__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px 10px;
  background: transparent;
}

.email-row__btn {
  width: 44px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.email-row__btn svg {
  width: 22px;
  height: 22px;
  fill: #111;
}

/* Search section */
.search-wrap {
  padding: 40px 0 10px;
}

.searchbar {
  max-width: 720px;
  margin: 0 auto;
  height: 56px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  background: #fff;
}

.searchbar__icon {
  width: 18px;
  height: 18px;
  fill: #111;
  opacity: 0.9;
}

.searchbar__input {
  border: none;
  outline: none;
  font-size: 16px;
  width: 100%;
  background: transparent;
}

/* Feed */
.feed {
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 0 40px;
}

.post {
  margin-top: 22px;
}

.post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post__avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e6e6e6;
}

.post__publisher {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.post__card {
  display: block;
  text-decoration: none;
  background: #f2f2f2;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 22px 22px 18px;
  color: inherit;
}

.post__excerpt {
  margin: 0 0 12px 0;
  font-size: 20px;
  line-height: 1.45;
  color: #222;
  font-weight: 500;
}

.post__date {
  font-size: 13px;
  color: #8a8a8a;
  font-weight: 500;
}

.loadmore-wrap {
  display: flex;
  justify-content: center;
  padding: 26px 0 40px;
}

.loadmore {
  border: none;
  background: #2f2f2f;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
}
.loadmore:hover {
  background: #1f1f1f;
}

/* Footer */
.footer {
  padding: 46px 22px 24px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.footer__title {
  margin: 0 0 12px 0;
  font-size: 40px;
  font-weight: 500;
  color: #2a2a2a;
}

.footer__quote {
  margin: 0 0 18px 0;
  font-size: 16px;
  color: #333;
}

.footer__cta {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.email-row--footer {
  max-width: 520px;
  margin-left: auto;
}

.footer__bottom {
  max-width: 1100px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #777;
  font-size: 13px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__links a {
  color: #777;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 820px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .email-row--footer {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 0 14px;
  }
  .page {
    padding: 36px 14px 0;
  }
  .card {
    padding: 22px;
  }
  .card__title {
    font-size: 26px;
  }
  .post__publisher {
    font-size: 20px;
  }
  .post__excerpt {
    font-size: 18px;
  }
  .footer__title {
    font-size: 34px;
  }
}
