/* Clucksi Farm Atlas — field notebook landing */

:root {
  --tractor-red: #d63a2e;
  --deere-green: #3a7a29;
  --harvest-gold: #e8b33b;
  --sky-blue: #3d91cc;
  --soil-brown: #6e4a2e;
  --wheat-cream: #f5ede0;
  --corn-silk: #fcf7e6;
  --charcoal: #1f1f24;
  --steel: #737880;
  --barn-red: #99241c;
  --clay-orange: #f28c3d;
  --forest-deep: #1c4733;
  --hay-yellow: #fcdc59;
  --dusty-lavender: #b8a8d1;
  --paper: #faf6ee;
  --ink: #2a241c;
  --ink-soft: #5c5348;
  --line: rgba(110, 74, 46, 0.14);
  --shadow: 0 18px 50px rgba(42, 36, 28, 0.12);
  --max: 1080px;
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(61, 145, 204, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 35% at 95% 5%, rgba(232, 179, 59, 0.16), transparent 50%),
    linear-gradient(180deg, var(--corn-silk) 0%, var(--wheat-cream) 40%, var(--paper) 100%);
  min-height: 100vh;
}

.field-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(110, 74, 46, 0.04) 28px,
      rgba(110, 74, 46, 0.04) 29px
    );
  z-index: 0;
}

a { color: var(--deere-green); text-decoration: none; }
a:hover { color: var(--barn-red); }

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

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
  background: rgba(252, 247, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon { font-size: 1.4rem; }

.masthead-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.masthead-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.masthead-links a:hover { color: var(--tractor-red); }

.menu-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-trigger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Main */
main {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  margin: 0 0 1rem;
}

h1 em {
  font-style: italic;
  color: var(--tractor-red);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin: 0 0 0.85rem;
  max-width: 24ch;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deere-green);
  margin: 0 0 0.65rem;
}

.section-lead {
  max-width: 60ch;
  margin: 0 0 2rem;
  font-size: 1.04rem;
}

/* Hero spread */
.spread-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  gap: 2rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin: 0 0 0.5rem;
}

.spread-lead {
  max-width: 54ch;
  margin: 0 0 1.25rem;
}

.spread-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.spread-facts li {
  display: flex;
  flex-direction: column;
}

.spread-facts strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
}

.spread-facts span {
  font-size: 0.82rem;
  color: var(--steel);
}

.spread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.action {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.3rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action:hover { transform: translateY(-1px); }

.action-solid {
  background: linear-gradient(135deg, var(--tractor-red), var(--barn-red));
  color: #fff;
  box-shadow: 0 8px 24px rgba(214, 58, 46, 0.28);
}

.action-solid:hover { color: #fff; }

.action-outline {
  border: 2px solid var(--deere-green);
  color: var(--deere-green);
  background: rgba(58, 122, 41, 0.06);
}

/* Spec plate */
.spec-plate {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.spec-plate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--tractor-red), var(--harvest-gold), var(--deere-green));
}

.spec-plate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.spec-plate-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.spec-plate-cat {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(214, 58, 46, 0.1);
  color: var(--tractor-red);
}

.spec-plate-title {
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
}

.spec-plate-tag {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--steel);
  font-style: italic;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.spec-grid div {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--corn-silk);
  border: 1px solid var(--line);
}

.spec-grid dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.2rem;
}

.spec-grid dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.spec-plate-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--steel);
}

/* Ribbon band */
.ribbon-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.ribbon-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.ribbon-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ribbon-chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ribbon-chip:hover {
  border-color: var(--harvest-gold);
  color: var(--ink);
}

.ribbon-chip.is-active {
  background: var(--deere-green);
  border-color: var(--deere-green);
  color: #fff;
}

.ribbon-blurb {
  margin: 0;
  max-width: 62ch;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--harvest-gold);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Tab panels */
.barn-section,
.compare-section,
.heritage-strip,
.legal-section,
.support-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.tab-panels {
  display: grid;
  gap: 1rem;
}

.tab-panel {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 6px 20px rgba(42, 36, 28, 0.06);
}

.tab-glyph {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.tab-panel p { margin: 0; }

.tab-atlas { border-top: 4px solid var(--tractor-red); }
.tab-brands { border-top: 4px solid var(--deere-green); }
.tab-fleet { border-top: 4px solid var(--clay-orange); }
.tab-learn { border-top: 4px solid var(--sky-blue); }
.tab-profile { border-top: 4px solid var(--dusty-lavender); }

/* Compare */
.compare-section {
  background: rgba(255, 255, 255, 0.5);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}

.compare-stage {
  display: grid;
  gap: 1.25rem;
}

.compare-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--line);
}

.compare-side-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.35rem;
}

.compare-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.compare-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.compare-specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--corn-silk);
  font-size: 0.9rem;
}

.compare-specs span { color: var(--steel); }
.compare-specs strong { color: var(--ink); }

.compare-left { border-top: 4px solid var(--tractor-red); }
.compare-right { border-top: 4px solid var(--deere-green); }

.compare-controls {
  padding: 0.5rem 0;
}

#compareSlider {
  width: 100%;
  accent-color: var(--harvest-gold);
}

.compare-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.compare-hint {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Heritage */
.heritage-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.heritage-timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--line);
}

.heritage-timeline time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--harvest-gold);
  padding-top: 0.15rem;
}

.heritage-timeline p {
  margin: 0;
}

/* Legal */
.legal-lead strong { color: var(--ink); }

.legal-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sky-blue);
  margin: 0 0 1.5rem;
}

.legal-blocks {
  display: grid;
  gap: 0.85rem;
}

.legal-blocks article {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.legal-blocks p { margin: 0; }

.legal-blocks a { word-break: break-all; }

/* Support */
.support-sla {
  font-size: 0.92rem;
  margin: -0.5rem 0 1.25rem;
  color: var(--steel);
}

.support-cards {
  display: grid;
  gap: 0.85rem;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 2px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.support-card:hover {
  border-color: var(--deere-green);
  transform: translateY(-2px);
}

.support-card span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.support-card strong {
  font-size: 1rem;
  color: var(--ink);
}

.support-card:hover strong { color: var(--tractor-red); }

/* Footer */
.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 2px solid var(--line);
  display: grid;
  gap: 1rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.foot-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.foot-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--steel);
}

/* Responsive */
@media (min-width: 768px) {
  .spread-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 3.5rem;
  }

  .tab-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-panel:last-child {
    grid-column: span 2;
    max-width: calc(50% - 0.5rem);
    justify-self: center;
  }

  .compare-stage {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .compare-controls {
    min-width: 200px;
    padding: 0 0.5rem;
  }

  .support-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .heritage-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .menu-trigger { display: flex; }

  .masthead-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: rgba(252, 247, 230, 0.98);
    border-bottom: 2px solid var(--line);
  }

  .masthead-links.is-open { display: flex; }

  .tab-panel:last-child {
    max-width: none;
  }
}
