/* ============================================================
   Richie's Collagen — journal, pages, forms & 404
   ============================================================ */

/* ---------- Shared page hero ---------- */

.journal-hero,
.page-hero {
  position: relative;
  padding: clamp(38px, 4.6vh, 64px) 0 clamp(24px, 3vh, 38px);
  background:
    radial-gradient(900px 380px at 88% -20%, #e7f5e2 0%, transparent 62%),
    var(--paper);
}

.journal-hero .display-2,
.page-hero .display-2 { margin-top: 14px; max-width: 22ch; }

.journal-hero .section-copy { margin-top: 14px; }

.journal-hero__back,
.page-hero__back { margin-top: 18px; font-size: 0.88rem; }

.journal-hero__back a,
.page-hero__back a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.page-hero { padding-bottom: clamp(20px, 2.6vh, 32px); }

.page-cover {
  height: clamp(260px, 42vh, 440px);
  width: min(1240px, 100% - 48px);
  margin: clamp(20px, 3vh, 34px) auto 0;
}

@media (max-width: 640px) {
  .page-cover { width: min(1240px, 100% - 34px); }
}

.page-body { padding: clamp(30px, 4vh, 52px) 0 clamp(50px, 6vh, 84px); }

.entry-content--page { max-width: 760px; margin-inline: auto; }

/* ---------- Category chips ---------- */

.journal-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.journal-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.journal-cat span {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
}

.journal-cat:hover { border-color: var(--green); color: var(--green); }

.journal-cat.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.journal-cat.is-active span { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- Featured post ---------- */

.journal-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 26px);
  margin-bottom: clamp(30px, 4vh, 50px);
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.journal-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.journal-featured__photo {
  height: clamp(260px, 40vh, 420px);
  border-radius: 20px;
  box-shadow: none;
}

.journal-featured__body { padding: clamp(6px, 1.4vw, 20px); }

.journal-featured__body h2 { margin-top: 12px; }

.journal-featured__body p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.journal-featured__body .article__link { padding-top: 18px; }

@media (max-width: 900px) {
  .journal-featured { grid-template-columns: 1fr; }
}

/* ---------- Empty states ---------- */

.journal-empty {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.journal-empty__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--green);
}

.journal-empty__mark .paw { width: 26px; height: 26px; }

.journal-empty p { color: var(--muted); }

/* ---------- Search form ---------- */

.search-again { margin-top: 22px; max-width: 460px; }

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label { flex: 1; min-width: 0; }

.search-form input[type="search"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
}

.search-form input[type="search"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.search-form .search-submit {
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(30px, 4.5vw, 70px);
  align-items: center;
}

.notfound__copy .display-2 { margin-top: 14px; max-width: 20ch; }

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.notfound__photo { height: clamp(280px, 46vh, 460px); }

@media (max-width: 900px) {
  .notfound { grid-template-columns: 1fr; }
}

/* ---------- Single post ---------- */

.entry-hero {
  padding: clamp(36px, 4.4vh, 60px) 0 clamp(18px, 2.4vh, 28px);
  background:
    radial-gradient(900px 360px at 12% -20%, #fff2d8 0%, transparent 60%),
    var(--paper);
}

.entry-hero .post-meta a { color: inherit; text-decoration: none; }
.entry-hero .post-meta a:hover { color: var(--green); }

.entry-hero .display-2 { margin-top: 14px; max-width: 26ch; }

.entry-hero .lede { max-width: 58ch; }

.entry-cover {
  width: min(1240px, 100% - 48px);
  margin: clamp(22px, 3vh, 36px) auto 0;
  height: clamp(280px, 48vh, 520px);
}

@media (max-width: 640px) {
  .entry-cover { width: min(1240px, 100% - 34px); }
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
  padding: clamp(30px, 4vh, 54px) 0 clamp(50px, 6vh, 88px);
}

.entry-body { max-width: 720px; }

.entry-content { margin-top: 0; }

.entry-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.entry-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry-share a {
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.entry-share a:hover { border-color: var(--green); color: var(--green); }

.entry-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.entry-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.entry-nav__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.entry-nav__item span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.entry-nav__item strong { font-size: 0.98rem; line-height: 1.4; }

.entry-nav__item--next { text-align: right; }

@media (max-width: 680px) {
  .entry-nav { grid-template-columns: 1fr; }
  .entry-nav__item--next { text-align: left; }
}

/* Sidebar */
.entry-side { display: grid; gap: 20px; position: sticky; top: 96px; }

.entry-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--green);
  color: #fff;
  text-align: center;
}

.entry-card__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--honey);
}

.entry-card__mark .paw { width: 22px; height: 22px; }

.entry-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; }

.entry-card p { margin-top: 8px; font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }

.signup--light { flex-direction: column; margin-top: 16px; }

.signup--light input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.signup--light .btn--solid {
  background: var(--honey);
  color: var(--on-honey);
}

.entry-related {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.entry-related__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.entry-related__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.entry-related__item:first-of-type { border-top: 0; }

.entry-related__item img {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}

.entry-related__item strong { display: block; font-size: 0.92rem; line-height: 1.4; }

.entry-related__item small { font-size: 0.76rem; color: var(--muted); }

.entry-comments { padding-bottom: clamp(40px, 5vh, 70px); }

@media (max-width: 1023px) {
  .entry-layout { grid-template-columns: 1fr; }
  .entry-side { position: static; }
}

/* ---------- Comments ---------- */

.comment-respond,
.commentlist {
  max-width: 760px;
}

.commentlist { list-style: none; padding: 0; }

.commentlist li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.comment-respond h3,
.comments-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  font: inherit;
}

.comment-form input[type="submit"] {
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Contact form ---------- */

.richies-contact {
  max-width: 640px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.richies-contact__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.richies-contact label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 14px 0 6px;
}

.richies-contact input,
.richies-contact select,
.richies-contact textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font: inherit;
}

.richies-contact textarea { min-height: 150px; resize: vertical; }

.richies-contact input:focus-visible,
.richies-contact select:focus-visible,
.richies-contact textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.richies-contact .btn { margin-top: 20px; }

.richies-contact__note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

.richies-contact__status {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.richies-contact__status--ok {
  background: rgba(35, 122, 56, 0.1);
  border: 1px solid rgba(35, 122, 56, 0.28);
  color: var(--green);
}

.richies-contact__status--err {
  background: rgba(199, 67, 31, 0.08);
  border: 1px solid rgba(199, 67, 31, 0.28);
  color: var(--coral);
}

@media (max-width: 640px) {
  .richies-contact__row { grid-template-columns: 1fr; }
}

/* ---------- Long-form page content extras ---------- */

.entry-content--page h2 { margin-top: 1.8em; }

.entry-content--page .callout {
  margin: 1.8em 0;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--paper-2);
  border-left: 4px solid var(--honey);
}

.entry-content--page .callout p:first-child { margin-top: 0; }

.entry-content--page .steps { margin-top: 1.6em; }

.entry-content--page .step h3 { margin-top: 14px; }
