@font-face {
  font-family: "RGP Manrope";
  src: url("../fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "RGP Newsreader";
  src: url("../fonts/newsreader-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "RGP Kalam";
  src: url("../fonts/kalam-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --rgp-cream: #f4f0e7;
  --rgp-paper: #fffdf8;
  --rgp-forest: #173d2b;
  --rgp-red: #a31f25;
  --rgp-wood: #756f64;
  --rgp-line: rgba(23, 61, 43, 0.18);
  --rgp-wide: min(1180px, calc(100% - 40px));
  --rgp-reading: min(760px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--rgp-cream);
  color: var(--rgp-forest);
  font-family: "RGP Manrope", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1, h2, h3 {
  font-family: "RGP Newsreader", serif;
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.35rem); }

.site-shell { width: var(--rgp-wide); margin-inline: auto; }
.content-shell { width: var(--rgp-reading); margin-inline: auto; }

.site-header { padding: 24px 0 20px; }

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "RGP Newsreader", serif;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}

.site-brand__mark {
  color: var(--rgp-red);
  font-family: "RGP Manrope", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--rgp-red); }

.site-hero {
  position: relative;
  min-height: clamp(460px, 65vw, 720px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--rgp-forest);
}

.site-hero__media,
.site-hero > picture,
.site-hero > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 28, 19, 0.82), rgba(11, 28, 19, 0.04) 68%);
}

.site-hero__copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(26px, 5vw, 62px);
  max-width: 760px;
  color: var(--rgp-paper);
}

.site-hero__copy h1 { margin: 0 0 12px; }
.site-hero__copy p { margin: 0; }

.daily-section {
  padding-top: clamp(58px, 8vw, 110px);
}

.daily-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
  color: var(--rgp-wood);
}

.daily-section__header p { margin: 0; }

.daily-section__label {
  font-family: "RGP Kalam", cursive;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--rgp-red);
}

.daily-section__figure { margin: 0; }

.daily-section__media-wrap {
  border-radius: 18px;
}

.daily-section__media {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border-radius: 18px;
}

.daily-section__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr);
  gap: 30px;
  align-items: baseline;
  padding-top: 20px;
}

.daily-section__caption h2,
.daily-section__caption p { margin: 0; }

.daily-section--empty {
  color: var(--rgp-wood);
  text-align: center;
}

.feed-section { padding-block: clamp(58px, 8vw, 110px); }

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 34px;
}

.feed-header h2 { margin: 0 0 8px; }
.feed-header p { margin: 0; color: var(--rgp-wood); }

.garden-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 6vw, 76px) clamp(22px, 4vw, 52px);
}

.garden-entry { min-width: 0; }

.garden-entry--story {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding-block: clamp(30px, 5vw, 70px);
  border-block: 1px solid var(--rgp-line);
}

.garden-entry__image {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(23, 61, 43, 0.08);
}

.garden-entry__image:empty { display: none; }

.garden-entry__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 350ms ease;
}

.garden-entry__image:hover img { transform: scale(1.015); }

.garden-entry__copy { padding-top: 16px; }
.garden-entry--story .garden-entry__copy { padding-top: 0; }

.garden-entry h3 { margin: 4px 0 10px; }
.garden-entry h3 a { text-decoration: none; }
.garden-entry h3 a:hover { color: var(--rgp-red); }
.garden-entry__excerpt p { margin: 0; }

.entry-meta {
  margin: 0;
  color: var(--rgp-wood);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feed-more,
.feed-end {
  margin: 52px auto 0;
  text-align: center;
}

.feed-more__button {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--rgp-line);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
}

.feed-more__button:hover { border-color: var(--rgp-red); color: var(--rgp-red); }
.feed-more__status { color: var(--rgp-wood); }

.single-entry { padding-block: clamp(40px, 7vw, 90px); }
.single-entry__header { margin-bottom: 34px; }
.single-entry__header h1 { margin: 8px 0 0; }
.single-entry__hero { width: var(--rgp-wide); margin: 0 50% 42px; transform: translateX(-50%); }
.single-entry__hero img { display: block; width: 100%; border-radius: 18px; }
.entry-content > * { margin-inline: auto; }
.entry-content > .alignwide { width: var(--rgp-wide); max-width: none; margin-left: 50%; transform: translateX(-50%); }

.entry-content > figure.wp-block-image {
  display: grid;
  justify-items: center;
  width: min(260px, 100%) !important;
  max-width: 100%;
  margin: 30px auto !important;
  transform: none !important;
}

.entry-content figure.wp-block-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 280px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 61, 43, 0.14);
  cursor: zoom-in;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.entry-content figure.wp-block-image figcaption {
  margin-top: 9px;
  color: var(--rgp-wood);
  font-size: 0.88rem;
  text-align: center;
}

.entry-content .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 260px));
  justify-content: center;
  gap: 24px;
  width: var(--rgp-wide) !important;
  max-width: none !important;
  margin: 34px 50% !important;
  transform: translateX(-50%) !important;
}

.entry-content .wp-block-gallery figure.wp-block-image {
  display: grid;
  justify-items: center;
  width: 100% !important;
  margin: 0 !important;
}

.entry-content .wp-block-gallery figure.wp-block-image img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.entry-content .rgp-lightbox-trigger {
  display: inline-block;
  border-radius: 14px;
  outline-offset: 4px;
}

.entry-content .rgp-lightbox-trigger:hover img {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 14px 34px rgba(23, 61, 43, 0.2);
}

body.rgp-lightbox-open {
  overflow: hidden;
}

.rgp-lightbox[hidden] {
  display: none;
}

.rgp-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 84px);
  background: rgba(7, 19, 13, 0.92);
  backdrop-filter: blur(5px);
}

.rgp-lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  max-width: 92vw;
}

.rgp-lightbox__media {
  display: flex;
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 16px;
  background: #101813;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.rgp-lightbox__media img {
  display: block;
  width: auto;
  max-width: 92vw;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: inherit;
}

.rgp-lightbox__caption {
  max-width: min(720px, 86vw);
  color: rgba(255, 253, 248, 0.86);
  text-align: center;
}

.rgp-lightbox__close,
.rgp-lightbox__previous,
.rgp-lightbox__next {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(12, 28, 19, 0.72);
  color: #fffdf8;
  font: 300 34px/1 "RGP Manrope", sans-serif;
  cursor: pointer;
}

.rgp-lightbox__close:hover,
.rgp-lightbox__previous:hover,
.rgp-lightbox__next:hover {
  background: var(--rgp-red);
}

.rgp-lightbox__close:focus-visible,
.rgp-lightbox__previous:focus-visible,
.rgp-lightbox__next:focus-visible {
  outline: 3px solid #fffdf8;
  outline-offset: 3px;
}

.rgp-lightbox__close {
  top: 18px;
  right: 18px;
  font-size: 29px;
}

.rgp-lightbox__previous {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.rgp-lightbox__next {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.archive-header { padding-block: 40px; }

.site-footer { padding-block: 28px; border-top: 1px solid var(--rgp-line); color: var(--rgp-wood); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .garden-entry__image img { transition: none; }
  .entry-content figure.wp-block-image img { transition: none; }
}

@media (max-width: 720px) {
  :root {
    --rgp-wide: min(100% - 28px, 1180px);
    --rgp-reading: min(100% - 28px, 760px);
  }

  .site-header { padding-top: 16px; }
  .site-header__inner { align-items: flex-start; }
  .site-nav { display: none; }
  .site-hero { min-height: 560px; border-radius: 14px; }
  .daily-section__caption { grid-template-columns: 1fr; gap: 8px; }
  .garden-feed { grid-template-columns: 1fr; }
  .garden-entry--story { grid-column: auto; grid-template-columns: 1fr; }
  .entry-content .wp-block-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100% !important;
    margin: 28px auto !important;
    transform: none !important;
  }
  .entry-content .wp-block-gallery figure.wp-block-image img { max-height: 210px; }
  .rgp-lightbox { padding: 58px 14px 82px; }
  .rgp-lightbox__previous,
  .rgp-lightbox__next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}
