/* Rural Land Reality Check — styles */

:root {
  --bg: #faf7f0;
  --bg-alt: #f2ecdd;
  --card: #ffffff;
  --text: #2a2f27;
  --text-muted: #5b6156;
  --forest: #2f4a3c;
  --forest-dark: #223a2e;
  --clay: #b8763f;
  --clay-dark: #9c5f2e;
  --border: #e2dbc8;
  --focus: #1f6fb2;
  --radius: 14px;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  color: var(--forest-dark);
  line-height: 1.2;
}

a {
  color: var(--forest);
}

a:hover {
  color: var(--clay-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Hero */

.hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(47, 74, 60, 0.06) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(184, 118, 63, 0.07) 0, transparent 45%),
    repeating-radial-gradient(circle at 50% 40%, transparent 0, transparent 38px, rgba(47, 74, 60, 0.05) 39px, transparent 40px),
    var(--bg-alt);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest);
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

.intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 1.75rem;
}

.trust-line {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
}

.btn-primary:hover {
  background: var(--forest-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: #fff;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* Sections */

.why-section,
.tool-section,
.result-section,
.sources-section {
  padding: 3rem 0;
}

.why-section {
  background: var(--bg);
}

.why-section h2,
.tool-section h2,
.result-section h2,
.sources-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tool-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Tool card */

.tool-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.question {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.question:last-of-type {
  margin-bottom: 1.25rem;
}

.question > label,
.question legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--forest-dark);
  padding: 0;
}

select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.helper {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.98rem;
}

.option:hover {
  border-color: var(--forest);
}

.option input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(184, 118, 63, 0.08);
  border-left: 3px solid var(--clay);
  border-radius: 4px;
}

/* Result */

.result-section {
  background: var(--bg);
}

.result-subline {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.result-group {
  margin-bottom: 1.75rem;
}

.result-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--clay-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--forest);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.result-card .item-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--forest-dark);
}

#start-again {
  margin-top: 1rem;
}

/* Sources */

.sources-list {
  padding-left: 1.25rem;
}

.sources-list li {
  margin-bottom: 0.5rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Icons (inline SVG currentColor) */
.action-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .tool-card {
    padding: 1.25rem;
  }
}
