/* ==========================================================================
   Home journal + subscribe + footer layout repair
   (base .footer / .news / .posts rules were missing after main.css growth)
   ========================================================================== */

/* ---------- Journal posts grid ---------- */
.posts,
.posts--fun {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) {
  .posts,
  .posts--fun {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}
@media (min-width: 1000px) {
  .posts,
  .posts--fun {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

#journal .section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  max-width: none;
  margin-bottom: 1.75rem;
}
#journal .section-head--row > div {
  flex: 1 1 16rem;
  max-width: 36rem;
}
#journal .section-head--row .btn {
  flex: 0 0 auto;
  align-self: flex-end;
}

.post,
.post--fun {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.post--fun {
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem;
  box-shadow: 0 8px 24px rgba(11, 37, 34, 0.05);
}
.post__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  border-radius: 0.85rem;
  margin-bottom: 0.9rem;
  position: relative;
}
.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0.35rem 0 0.5rem;
  color: var(--ink);
}
.post h3 a {
  color: inherit;
  text-decoration: none;
}
.post h3 a:hover {
  color: var(--coral);
}
.post > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  flex: 1;
}
.post .eyebrow {
  margin-bottom: 0.25rem;
}

/* ---------- Subscribe / updates ---------- */
#updates {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}
#updates .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 1.15rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(194, 75, 66, 0.22), transparent 55%),
    linear-gradient(145deg, #0f2f2b 0%, #123f3a 48%, #0b2522 100%);
  color: rgba(247, 244, 238, 0.82);
  border: 1px solid rgba(247, 244, 238, 0.08);
  box-shadow: 0 18px 48px rgba(11, 37, 34, 0.18);
}
@media (min-width: 800px) {
  .news {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem 2.5rem;
  }
}
.news h2 {
  color: var(--ivory);
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.news > div > p {
  margin: 0;
  max-width: 32em;
  line-height: 1.65;
  color: rgba(247, 244, 238, 0.72);
}
.news .eyebrow--light {
  color: #e8a8a2;
  margin-bottom: 0.35rem;
}

.silvaris-newsletter {
  width: 100%;
}
.news__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}
.news__row input[type="email"] {
  flex: 1 1 12rem;
  min-height: 3.15rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 238, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.news__row input[type="email"]:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(194, 75, 66, 0.2);
}
.news__row .btn {
  flex: 0 0 auto;
  min-height: 3.15rem;
  border-radius: 999px;
  padding-inline: 1.35rem;
}
.news__note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(247, 244, 238, 0.5);
  line-height: 1.5;
}

#updates .notice {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: none;
}

/* ---------- Footer base + v2 grid ---------- */
.footer,
.footer--v2 {
  background: var(--teal-deep, #0b2522);
  color: rgba(247, 244, 238, 0.72);
  padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
  margin-top: 0;
}

.footer a {
  color: rgba(247, 244, 238, 0.78);
  text-decoration: none;
}
.footer a:hover {
  color: #f0c4bf;
}

.footer .brand--light,
.footer .brand {
  color: var(--ivory);
  display: inline-block;
  margin-bottom: 0.85rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: minmax(14rem, 1.15fr) minmax(0, 1.85fr);
    gap: 2.5rem 3rem;
    align-items: start;
  }
}

.footer__intro {
  max-width: 26rem;
}
.footer__lede {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: rgba(247, 244, 238, 0.68);
  font-size: 1rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.5rem;
}
@media (min-width: 560px) {
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 800px) {
  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
  }
}

.footer__col h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.92);
}

.footer__col a,
.footer__col .footer-cookie-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(247, 244, 238, 0.68);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.footer__col a:hover,
.footer__col .footer-cookie-btn:hover {
  color: #f0c4bf;
}
.footer__col .nav-label {
  display: inline;
}

/* Footer menu walker outputs bare anchors */
.footer__col > a + a {
  margin-top: 0;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.15rem;
}
.footer__social:empty {
  display: none;
}
.footer__social a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}
.footer__chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 238, 0.14);
  background: rgba(247, 244, 238, 0.06);
  color: rgba(247, 244, 238, 0.78);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer__cta {
  display: inline-flex;
  margin-bottom: 0.25rem;
}
.footer .nav-chevron {
  display: none !important;
}
.footer__social:not(:has(a)) {
  display: none;
}
.footer .brand__mark {
  color: var(--ivory);
}
.post__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.65rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(11, 37, 34, 0.82);
  color: #f7f4ee;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.post__more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--coral);
  text-decoration: none;
}
.post__more:hover {
  color: var(--ink);
}

.footer__legal {
  position: relative;
  z-index: 1;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__legal p {
  margin: 0;
  max-width: 62em;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.42);
}

.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: rgba(247, 244, 238, 0.45);
}
.footer__bottom-meta {
  letter-spacing: 0.04em;
}

/* Clear float junk from old Woo/form styles leaking into footer */
.footer::after,
.footer__top::after,
.footer__cols::after,
.news::after,
.news__row::after {
  content: '';
  display: table;
  clear: both;
}

/* Edit-mode float shouldn't cover footer content awkwardly */
body.silvaris-front-edit .footer {
  padding-bottom: 5rem;
}
