/* ============================================
   RIGHT TIME FARMS — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --forest:     #1D4A3B;
  --lime:       #DDE19B;
  --soft-lime:  #F3F9E5;
  --white:      #FFFFFF;
  --ink:        #2a2a1e;
  --muted:      #5a6b5f;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --radius: 6px;
  --header-h: 150px;
  --col-gap: 1rem;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--soft-lime);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main {
    flex: 1;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--forest);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================
   SITE HEADER — forest green, centered
   ============================================ */
.site-header {
  background: var(--forest);
  padding: 1.5rem 1.5rem 1.1rem;
  text-align: center;
}

.site-logo {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
}

.site-logo img {
  height: 100px;
  width: auto;
  margin: 0 auto;
}

.site-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(243,249,229,0.6);
  transition: color 0.2s;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ============================================
   LANDING PAGE
   ============================================ */

/* Outer wrapper — forest green background shows through the gap */

.landing-wrap {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem 0;
  background: var(--soft-lime);
  gap: 1.25rem;
}

.landing-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--forest);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.landing-col--single {
  width: 100%;
  max-width: 680px;
  padding: 2.5rem 3rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid rgba(29,74,59,0.15);
}

.landing-where {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.landing-where strong {
  color: var(--forest);
}


.landing-col {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* Column headings */
.landing-col h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}


/* Bottom link */
.landing-col .col-link {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.landing-col .col-link::after { content: ' →'; }

/* ============================================
   EMAIL SIGNUP STRIP
   ============================================ */
.signup-strip {
  width: 100%;
  max-width: 1080px;
  text-align: center;
  padding: 1.5rem 1rem;
  color: rgba(29,74,59,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.signup-strip a {
  color: var(--forest);
  opacity: 0.75;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.signup-strip a:hover { opacity: 1; }

/* ============================================
   MARKET DATES (left column)
   ============================================ */
.market-date-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.market-date-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.market-date-item .date-badge {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--forest);
  min-width: 72px;
  flex-shrink: 0;
}

.market-date-item .date-detail {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.market-date-item .date-detail strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

/* ============================================
   UPCOMING POST (right column)
   ============================================ */
.upcoming-post .post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
}

.upcoming-post h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.upcoming-post .post-body {
  color: var(--muted);
  font-size: 0.93rem;
}

.upcoming-post .post-body h2,
.upcoming-post .post-body h3 {
  font-size: 0.95rem;
  margin: 1rem 0 0.2rem;
  color: var(--forest);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.upcoming-post .post-body ul {
  padding-left: 1.1rem;
  margin-bottom: 0.6rem;
}

.upcoming-post .post-body p { margin-bottom: 0.5rem; }

/* ============================================
   MOBILE — stacked scroll-snap
   ============================================ */
@media (max-width: 720px) {
  .landing-wrap {
    padding: 0;
  }

  .signup-strip {
    display: none;
  }
}

/* ============================================
   INNER PAGES
   ============================================ */
body:has(.inner-page),
body:has(.post-layout) {
  background: var(--soft-lime);
}

.inner-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.inner-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.inner-page .page-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(29,74,59,0.12);
}

.inner-page h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.5rem;
}

.inner-page ul, .inner-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.inner-page li { margin-bottom: 0.35rem; }

/* Where We'll Be — full list */
.full-market-list { list-style: none; margin-top: 1.5rem; }

.full-market-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(29,74,59,0.1);
  align-items: start;
}

.full-market-list .mdate {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1rem;
}

.full-market-list .mdetail {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.full-market-list .mdetail strong { color: var(--ink); }

/* What We're Growing — blog list */
.post-list { list-style: none; margin-top: 1rem; }

.post-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(29,74,59,0.1);
}

.post-list-item .post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.post-list-item h3 { font-size: 1.1rem; }
.post-list-item h3 a { text-decoration: none; color: var(--forest); }
.post-list-item h3 a:hover { text-decoration: underline; }
.post-list-item p { font-size: 0.92rem; color: var(--muted); margin-top: 0.25rem; }

.post-tag {
  display: inline-block;
  background: var(--lime);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Individual post */
.post-layout {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.post-layout h1 { margin-bottom: 0.25rem; }

.post-layout .post-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(29,74,59,0.12);
}

.post-layout h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.post-layout ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.post-layout li { margin-bottom: 0.25rem; }

.post-layout .back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--muted);
}
.post-layout .back-link:hover { color: var(--forest); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-methods {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-methods li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.contact-methods .contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 80px;
  flex-shrink: 0;
}

.contact-methods a { color: var(--forest); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.78rem;
  color: rgba(243,249,229,0.6);
  background: var(--forest);
}

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============================================
   email signup (buttondown form)
   ============================================ */

   .embeddable-buttondown-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
}

.embeddable-buttondown-form label {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
}

.embeddable-buttondown-form input[type="email"] {
  padding: 0.6rem 0.9rem;
  border: 1.5px solid rgba(29,74,59,0.25);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  min-width: 220px;
}

.embeddable-buttondown-form input[type="email"]:focus {
  outline: none;
  border-color: var(--forest);
}

.embeddable-buttondown-form input[type="submit"] {
  padding: 0.6rem 1.25rem;
  background: var(--forest);
  color: var(--soft-lime);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s;
}

.embeddable-buttondown-form input[type="submit"]:hover {
  background: var(--ink);
}

.embeddable-buttondown-form p {
  width: 100%;
  margin: 0.4rem 0 0;
}

.embeddable-buttondown-form p a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}

.embeddable-buttondown-form p a:hover {
  color: var(--forest);
}

figure { margin: 1.5rem 0; }
figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}