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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

/* =========================
   General page structure
========================= */
section {
  width: 100%;
  padding: 24px 16px !important;
}

section > div {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.wrapper {
  width: 100%;
  padding: 0 16px;
}

/* =========================
   Typography
========================= */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 16px;
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
}

p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}

section h2 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

section div {
  font-size: 1rem;
}

/* Handles your intro copy block and pre-wrapped text */
section div[style*='white-space: pre-wrap'],
.feed-textarea-block {
  white-space: pre-wrap;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
}

section > div > h2 {
  position: relative;
  display: inline-block;
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

section > div {
  text-align: center;
}

section > div > h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 6px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #111, #666);
}

/* =========================
   Feed container
========================= */
#feed {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.feed-view-post:first-child {
  padding-top: 8px;
}

.feed-view-post:last-child {
  border-bottom: 0;
}

.feed-view-post-date {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
}

.feed-post-content {
  width: 100%;
}

/* =========================
   Feed blocks
========================= */
.feed-block {
  margin-bottom: 18px;
}

.feed-view-post {
  padding: 28px;
  margin-bottom: 28px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feed-view-post:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.feed-block:last-child {
  margin-bottom: 0;
}

.feed-block h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111;
}

.feed-text-block,
.feed-textarea-block {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
}

.feed-link,
.feed-link-block {
  color: #0b57d0;
  text-decoration: none;
}

.feed-link:hover,
.feed-link-block:hover {
  text-decoration: underline;
}

.feed-link-block {
  display: inline-block;
  font-weight: 600;
}

.feed-block img,
.feed-block video,
.feed-block audio,
.feed-block iframe {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

.feed-block img,
.feed-block video,
.feed-block iframe {
  display: block;
}

.feed-iframe-wrap {
  width: 100%;
  overflow: hidden;
}

.feed-render-error,
.error-state {
  color: #a12626;
  font-size: 0.95rem;
}

.loading,
.empty-state {
  color: #666;
  font-size: 1rem;
}

/* =========================
   Desktop spacing helpers
========================= */
section:first-of-type {
  padding-top: 40px !important;
}

section:first-of-type h2 {
  margin-bottom: 0;
}

section:nth-of-type(2) > div {
  max-width: 900px;
}

section:nth-of-type(3) h2 {
  padding-top: 72px !important;
}

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
  body {
    line-height: 1.55;
  }

  section {
    padding: 18px 12px !important;
  }

  section > div > h2 {
    font-size: 3.7rem !important;
  }

  section > div,
  .wrapper,
  #feed {
    max-width: 100%;
  }

  h2 {
    font-size: 2.3rem !important;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  section h2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  p,
  section div,
  .feed-text-block,
  .feed-textarea-block {
    font-size: 1rem;
    line-height: 1.7;
  }

  .feed-view-post {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .feed-view-post-date {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .feed-block {
    margin-bottom: 16px;
  }

  .feed-block h1 {
    font-size: 1.7rem;
  }

  section:nth-of-type(3) h2 {
    padding-top: 36px !important;
  }

  .pre-wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

}

@media (max-width: 480px) {
  section {
    padding: 16px 10px !important;
  }

  h2 {
    font-size: 1.9rem !important;
    line-height: 1.12;
  }

  p,
  section div,
  .feed-text-block,
  .feed-textarea-block {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .feed-block h1 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .feed-view-post {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .feed-view-post-date {
    font-size: 0.8rem;
  }

  .pre-wrapper {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  section > div > h2 {
    font-size: 3.1rem !important;
  }
}