/* ==========================================================================
   Freedom Machine: inner pages (guidelines, safety, legal, blog)
   Builds on styles.css: same tokens, nav, headings and footer.
   ========================================================================== */

/* Page hero ------------------------------------------------------------- */
.phero {
  position: relative;
  height: min(640px, 78vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.phero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* the same tint as the home hero */
.phero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 55%);
}

.phero__content {
  position: absolute;
  left: 6.5%;
  right: 6.5%;
  bottom: 70px;
  z-index: 2;
  max-width: 1050px;
}

.phero .eyebrow {
  margin-bottom: 22px;
  color: var(--white);
}

.phero__meta {
  margin: 26px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

/* Long-form content ----------------------------------------------------- */
.doc {
  padding: 110px 0 130px;
  background: var(--cream);
}

.doc__body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  font-size: 18px;
  line-height: 1.65;
  color: #2a2a26;
}

.doc__body h2 {
  margin: 72px 0 22px;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.doc__body h3 {
  margin: 0 0 28px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.doc__body > :first-child {
  margin-top: 0;
}

.doc__body p {
  margin: 0 0 20px;
}

.doc__body strong {
  font-weight: 700;
  color: var(--ink);
}

.doc__body ul,
.doc__body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.doc__body li {
  margin-bottom: 8px;
}

.doc__body li p {
  margin: 0;
}

.doc__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #ff5c15;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc__back {
  display: inline-block;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 700;
}

/* Blog cards ------------------------------------------------------------ */
.posts {
  padding: 110px 0 130px;
  background: var(--cream);
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fbf8f2;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(28, 24, 16, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(28, 24, 16, 0.18);
}

.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 30px;
}

.post-card__date {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6960;
}

.post-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.post-card p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.55;
  color: #3a3a35;
}

.post-card__more {
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
}

.posts--more {
  padding-top: 0;
}

.posts--more .eyebrow {
  margin-bottom: 30px;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 850px) {
  .phero {
    height: auto;
    min-height: 560px;
  }

  .phero__content {
    left: 20px;
    right: 20px;
    bottom: 48px;
  }

  .phero__meta {
    font-size: 18px;
  }

  .doc,
  .posts {
    padding: 70px 0 90px;
  }

  .posts--more {
    padding-top: 0;
  }

  .doc__body {
    font-size: 17px;
  }

  .doc__body h2 {
    margin-top: 56px;
  }

  .doc__body h3 {
    font-size: 20px;
  }

  .posts__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* Legal documents: clause titles are smaller than article headings */
.doc--legal .doc__body h2 {
  margin: 56px 0 18px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Sectioned pages ---------------------------------------------------------
   Each part of the original page keeps its own full-width band, set wide
   and aligned with the page header, as on the live site. */
.band {
  padding: 110px 6.5%;
}

.band--dark  { background: var(--black); color: rgba(255, 255, 255, 0.86); }
.band--cream { background: var(--cream); color: #2a2a26; }
.band--acid  { background: var(--acid);  color: var(--ink); }

.band__body {
  max-width: 1240px;
  font-size: 18px;
  line-height: 1.65;
}

.band__body > :first-child { margin-top: 0; }
.band__body > :last-child  { margin-bottom: 0; }

.band__body h2 {
  margin: 0 0 28px;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.band__body h3 {
  margin: 0 0 32px;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.band__body p { margin: 0 0 20px; }

.band__body strong { font-weight: 700; color: var(--ink); }

.band__body ul,
.band__body ol { margin: 0 0 24px; padding-left: 22px; }

.band__body li { margin-bottom: 8px; }
.band__body li p { margin: 0; }

.band__body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ff5c15;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.band--dark .band__body h2,
.band--dark .band__body h3,
.band--dark .band__body strong { color: var(--white); }

.band--acid .band__body a { text-decoration-color: var(--ink); }

/* legal clause titles */
.band--legal .band__body h2 {
  margin: 64px 0 18px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.band--legal .band__body > h2:first-child { margin-top: 0; }

@media (max-width: 850px) {
  .band { padding: 70px 20px; }
  .band__body { font-size: 17px; }
  .band__body h3 { font-size: 22px; }
}

.band__body p + h3,
.band__body ul + h3,
.band__body ol + h3 { margin-top: 48px; margin-bottom: 18px; }
