/* FarmPlenty static site. One stylesheet for every page. */

:root {
  --green: #0b7a22;        /* links, buttons (darker than the logo green for contrast) */
  --green-logo: #009b14;
  --orange-logo: #ee8500;
  --ink: #1d2320;
  --muted: #5d6762;
  --line: #e2e7e3;
  --tint: #f4f8f4;
  --bg: #ffffff;
  --radius: 10px;
  --text-width: 44rem;
  --wide-width: 64rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--green); }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: 2rem; margin-top: 0.4em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p, ul, ol, blockquote, pre, table { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

blockquote {
  margin-left: 0;
  padding: 0.25em 1em;
  border-left: 4px solid var(--line);
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-farm { color: var(--green-logo); }
.logo-plenty { color: var(--orange-logo); }

.logo-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

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

/* ---------- layout ---------- */

.wrap {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

main {
  max-width: var(--text-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

main.wide { max-width: var(--wide-width); }

.grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-bottom: 1.5rem;
}

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

.center { text-align: center; }

.lede { font-size: 1.2rem; color: var(--muted); }

.muted { color: var(--muted); }

.small { font-size: 0.9rem; }

.note {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

/* WordPress image alignment classes, kept from the old content */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.clear { clear: both; }

@media (max-width: 40rem) {
  .alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
  h1 { font-size: 1.7rem; }
}

/* ---------- components ---------- */

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 999px;
}

.button:hover { background: #075a18; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.card h2 { margin-top: 0; font-size: 1.25rem; }
.card a { text-decoration: none; }
.card a:hover h2 { text-decoration: underline; }

.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.hero h1 { margin-bottom: 0.3em; }

.screens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.features h3 { margin-top: 0; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 1em;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- blog ---------- */

.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -0.25rem;
}

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

.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin: 0;
}

.post-list h2 { margin: 0 0 0.2em; font-size: 1.25rem; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 0.3em 0 0; }

.comments {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.comment {
  border-left: 3px solid var(--line);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1rem 0;
}

.comment .comment-reply { margin-left: 1.5rem; }

.post-nav {
  margin-top: 2.5rem;
  clear: both;
}

/* ---------- forms (Chicken Planner) ---------- */

.planner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(14rem, 1fr) 2fr;
  align-items: start;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 48rem) {
  .planner { grid-template-columns: 1fr; }
}

.planner-inputs {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.planner-inputs h2,
.planner-inputs h3 { margin-top: 0; }

.field {
  display: grid;
  grid-template-columns: 1fr 6rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.field.stack { grid-template-columns: 1fr; gap: 0.2rem; }

.field label { font-size: 0.95rem; }

.field input,
.field select {
  font: inherit;
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid #b9c2bc;
  border-radius: 6px;
  background: #fff;
}

.field input[type="number"] { text-align: right; }

.planner-output { font-size: 1.1rem; }
.planner-output h2 { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--tint);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.5rem;
}

.site-footer p { margin: 0.25rem 0; }

figure { margin: 0 0 1em; text-align: center; }
figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.4em; }

@media (max-width: 30rem) {
  .site-nav { gap: 0.25rem 1rem; font-size: 0.95rem; }
  .logo-name { font-size: 1.5rem; }
}

pre {
  white-space: pre-wrap;
  font-size: 0.85rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 1rem;
}
