/* ============================================
   WEEKEND HOMESTEADING — DESIGN TOKENS
   Palette: wheat field at golden hour, pine, brick-rust, bark
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Karla:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --wheat-cream:   #F3EBD8;
  --paper:         #FBF6EC;
  --pine:          #3C4A34;
  --pine-deep:     #262F20;
  --rust:          #A8502E;
  --rust-deep:     #7E3A21;
  --bark:          #573C28;
  --gold:          #C9992F;
  --ink:           #2B2620;
  --ink-soft:      #5A5044;
  --line:          rgba(43, 38, 32, 0.14);

  /* Type */
  --font-display: "Fraunces", serif;
  --font-body: "Karla", sans-serif;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 6px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wheat-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine-deep);
  margin: 0 0 var(--space-2);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--space-2); color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 235, 216, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pine-deep);
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--rust); }

.nav-cta {
  background: var(--pine);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--pine-deep); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none; border: none;
    font-size: 1.6rem; cursor: pointer;
    color: var(--pine-deep);
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: var(--paper); }
.btn-primary:hover { background: var(--rust-deep); }
.btn-outline { background: transparent; border-color: var(--pine); color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--pine-deep); text-decoration: underline; padding: 0.4rem 0; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: var(--space-5) 0 0;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: var(--space-2); }
.hero-lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }

.horizon-scene { width: 100%; height: auto; }

/* horizon divider motif — used between sections */
.horizon-divider {
  width: 100%;
  height: 60px;
  display: block;
  margin: 0;
}

/* ============ SECTIONS ============ */
section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-alt { background: var(--paper); }
.section-dark {
  background: var(--pine-deep);
  color: var(--wheat-cream);
}
.section-dark h2, .section-dark h3 { color: var(--wheat-cream); }
.section-dark p { color: rgba(243,235,216,0.78); }

.center { text-align: center; }
.narrow { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ============ VALUES GRID ============ */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card-icon { width: 42px; height: 42px; margin-bottom: var(--space-2); color: var(--rust); }

.value-item {
  padding-left: var(--space-3);
  border-left: 3px solid var(--gold);
}
.value-item h3 { margin-bottom: 0.3em; }

/* ============ TIMELINE / HOW IT WORKS ============ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}

/* ============ EVENT CARDS ============ */
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.event-card-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.event-date {
  font-weight: 700;
  color: var(--rust);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.event-loc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: var(--space-2); }
.event-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: var(--space-2); }
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(60,74,52,0.1);
  color: var(--pine);
}

/* ============ FORMS ============ */
form { max-width: 640px; }
.field { margin-bottom: var(--space-3); }
label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--pine-deep);
}
.hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(168, 80, 46, 0.35);
  border-color: var(--rust);
}
textarea { resize: vertical; min-height: 110px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
legend { font-weight: 700; padding: 0 0.5rem; color: var(--pine-deep); }
.check-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.6rem; }
.check-row input { width: auto; margin-top: 0.3rem; }
.check-row label { font-weight: 500; margin-bottom: 0; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--pine-deep);
  color: rgba(243,235,216,0.85);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(243,235,216,0.15);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}
.site-footer h4 { color: var(--wheat-cream); font-size: 1rem; margin-bottom: var(--space-2); }
.site-footer a { color: rgba(243,235,216,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: rgba(243,235,216,0.55);
}

/* ============ MISC ============ */
.pill-note {
  display: inline-block;
  background: rgba(201,153,47,0.16);
  color: var(--bark);
  border: 1px solid rgba(201,153,47,0.4);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.callout {
  background: rgba(60,74,52,0.08);
  border-left: 4px solid var(--pine);
  padding: var(--space-3);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
