/* Land Farm Heritage - seller site. Hand-written static rebuild of the Carrd page (2026-09-28). */

:root {
  --olive: #5C6900;       /* button */
  --olive-hover: #43AD00; /* button hover */
  --focus: #78DB70;       /* field focus border */
  --tan: #D4CCA7;         /* fallback page color */
  --wash: rgba(209, 200, 148, 0.89);
  --panel: rgba(255, 255, 255, 0.851);
  --field-bg: #E8E8E8;
  --field-border: #575757;
  --spacing: 1.25rem;
  color-scheme: light only;
}

/* Carrd root sizes: 16pt > 1680px, 12pt <= 1680px, 10pt <= 980px (mobile-first below) */
html { font-size: 10pt; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (min-width: 981px) { html { font-size: 12pt; } }
@media (min-width: 1681px) { html { font-size: 16pt; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-color: var(--tan);
  color: #000;
}

/* Fixed background photo + tan wash. A fixed pseudo-element works on iOS, unlike background-attachment: fixed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--wash), var(--wash)), url("images/bg.jpg");
  background-size: auto, cover;
  background-position: 0 0, center;
  background-repeat: repeat, no-repeat;
}

.wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 1rem;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35rem;
  max-width: 100%;
  background-color: var(--panel);
  text-align: center;
  padding: 2.5rem 1rem;
}

.main > .inner { width: 100%; }

section[hidden] { display: none !important; }
section > * { margin: 0 auto; }
section > * + * { margin-top: var(--spacing); }

/* Logo */
.logo { display: block; width: 11rem; max-width: 100%; }
.logo img { display: block; width: 100%; height: auto; }

/* Heading "Sell Your Land" */
.h-sell {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-size: 2em;
  line-height: 1.125;
  letter-spacing: -0.153125rem;
  color: #303030;
}
@media (min-width: 361px) { .h-sell { font-size: 2.5em; } }
@media (min-width: 737px) { .h-sell { letter-spacing: -0.175rem; } }

/* Intro paragraphs */
.intro {
  font-family: "Gelasio", Georgia, serif;
  font-weight: 400;
  font-size: 0.875em;
  line-height: 0.875;
  letter-spacing: -0.04375rem;
  color: #383838;
}
@media (min-width: 737px) { .intro { letter-spacing: -0.05rem; } }
.intro p { margin: 0; line-height: inherit; }
.intro p + p { margin-top: 1rem; }
/* 0.875 line-height clips on narrow screens when lines wrap; give wrapped lines room */
@media (max-width: 736px) { .intro { line-height: 1.35; } }

/* Form */
.form-wrap { width: 23rem; max-width: 100%; text-align: left; }
.form-wrap form { margin: 0; }
.field + .field { margin-top: 0.375rem; }

.field label {
  display: block;
  margin: 0.25rem 0 0.28125rem 0;
  padding-left: 0.05rem;
  font-family: "Gelasio", Georgia, serif;
  font-weight: 500;
  font-size: 1em;
  line-height: 1.25;
  letter-spacing: 0.05rem;
  color: #000;
}

.field input {
  display: block;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  padding: 0 0.525rem;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.125em;
  letter-spacing: -0.025rem;
  color: #000;
  background-color: var(--field-bg);
  border: 1px dashed var(--field-border);
  border-radius: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: rgba(0, 0, 0, 0.55); opacity: 1; }
.field input:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field input[aria-invalid="true"] { border-color: #B3261E; }

/* Phones: 16px text stops iOS zoom-on-focus; taller fields are easier to tap. */
@media (max-width: 736px) {
  .field input { font-size: 16px; height: 2.5rem; }
}

/* Honeypot (www-url): off-screen, not display:none, so simple bots still fill it */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.actions { margin-top: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 100%;
  max-width: 32rem;
  height: 3.5rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  background-color: var(--olive);
  color: #FFFFFF;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: -0.075rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.btn:hover, .btn:focus-visible { background-color: var(--olive-hover); }
.btn:focus-visible { outline: 2px solid #303030; outline-offset: 2px; }
.btn[disabled] { cursor: default; opacity: 0.85; }
.btn svg { width: 0.85em; height: 0.85em; fill: currentColor; flex: none; }
.btn .spinner {
  display: none;
  width: 1em; height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-busy .label, .btn.is-busy svg { display: none; }
.btn.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .spinner { animation-duration: 2.4s; } }

/* Status messages (validation, failure, demo mode) */
.form-msg { display: none; margin-top: 0.75rem; padding: 0.6rem 0.75rem; font-family: "Gelasio", Georgia, serif; font-size: 0.95em; line-height: 1.4; }
.form-msg.error { display: block; background: #FBEAEA; color: #8A1C15; border: 1px solid #E3B5B1; }
.form-msg.demo  { display: block; background: #FFF7D6; color: #5A4A00; border: 1px dashed #B59B2A; }

.demo-banner {
  display: none;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 0.85em;
  line-height: 1.4;
  background: #FFF7D6;
  color: #5A4A00;
  border: 1px dashed #B59B2A;
}
.demo-banner.show { display: block; }

/* Thank-you section (#done) */
.done-box { width: 23rem; max-width: 100%; padding: 2rem; }
.done-box > * { margin: 0; }
.done-box > * + * { margin-top: 1.25rem; }
.h-thanks {
  font-family: "Gelasio", Georgia, serif;
  font-weight: 700;
  font-size: 2em;
  line-height: 0.875;
  letter-spacing: 0.0875rem;
  color: #454545;
}
@media (min-width: 361px) { .h-thanks { font-size: 2.125em; } }
@media (min-width: 737px) { .h-thanks { letter-spacing: 0.1rem; } }
.done-text {
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-weight: 300;
  font-size: 1.125em;
  line-height: 1.5;
  color: #2E2E2E;
}

/* 404 page */
.nf-text { font-family: "Gelasio", Georgia, serif; font-size: 1em; line-height: 1.5; color: #383838; }
.nf-text a { color: var(--olive); }

/* Spacing steps from the Carrd page */
@media (max-width: 480px) { :root { --spacing: 1.09375rem; } }
@media (max-width: 360px) { :root { --spacing: 0.9375rem; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
