/* ==========================================================================
   WA Family Camping 2026 — Stylesheet
   Warm earthy palette, mobile-first, readable, no framework.
   ========================================================================== */

/* -------- Tokens -------- */
:root {
  --forest: #2d4a2b;
  --forest-deep: #1f3620;
  --forest-soft: #4a6b48;
  --sand: #d4c5a9;
  --sand-light: #ece4d0;
  --cream: #faf7ef;
  --bark: #5a4a3a;
  --bark-light: #8a7a68;
  --ink: #22201c;
  --accent: #c47c3f;
  --accent-soft: #e9b074;
  --danger: #a14444;
  --success: #4a7a3a;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(34, 32, 28, 0.08);
  --shadow-md: 0 4px 14px rgba(34, 32, 28, 0.1);
  --shadow-lg: 0 10px 30px rgba(34, 32, 28, 0.12);

  --max-content: 960px;
}

/* -------- Reset-ish -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 0.25em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; font-weight: 600; color: var(--forest); text-transform: uppercase; letter-spacing: 0.04em; }

p { margin: 0 0 1em; }

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

/* -------- Hero -------- */
.hero {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 60%, var(--forest-soft) 100%);
  color: var(--cream);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle tree-line vignette */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.06), transparent 50%),
                    radial-gradient(ellipse at 100% 100%, rgba(255,255,255,0.04), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
}
.hero h1 { color: var(--cream); }
.hero .lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(250, 247, 239, 0.92);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.5em;
}

.trip-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}
.fact {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}
.fact-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.25em;
}
.fact-value { font-weight: 600; color: var(--cream); }

.date-windows {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.date-windows ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.date-windows li {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.badge {
  background: var(--accent);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.urgency {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(196, 124, 63, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--cream);
}

/* -------- Sections -------- */
main { padding: 0 1.5rem; }
.section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 3rem 0;
  border-bottom: 1px solid var(--sand);
}
.section:last-of-type { border-bottom: none; }
.section-sub { color: var(--bark); margin-top: -0.5em; max-width: 52ch; }

/* -------- Property cards -------- */
.property {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  border: 1px solid var(--sand-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.property:hover { box-shadow: var(--shadow-lg); }
.property.featured { border-left: 6px solid var(--accent); }
.property.compact { padding: 1.25rem; }

.rank {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  width: 3rem;
  padding-top: 0.25rem;
}
.property.compact .rank { font-size: 1.5rem; color: var(--forest-soft); }

.property .content h3 { margin-bottom: 0.25em; }
.property .location {
  font-family: -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--bark-light);
  display: block;
  margin-top: 0.15em;
}

.pitch {
  font-size: 1.05rem;
  background: var(--sand-light);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  margin: 0.75rem 0 1rem;
}
.property.compact .pitch { background: transparent; padding: 0; font-size: 1rem; }

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.grid-two h4 { margin-top: 0; }
.grid-two p { font-size: 0.95rem; margin: 0; }

/* Facts definition list */
dl.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}
dl.facts div { display: flex; flex-direction: column; }
dl.facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark-light);
  margin-bottom: 0.15em;
}
dl.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* -------- Vote widget -------- */
.vote-widget {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--forest-deep);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: var(--cream);
}
.vote-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.thumb-btn, .star-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--cream);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.15s ease;
  line-height: 1;
}
.thumb-btn:hover, .star-btn:hover { background: rgba(255,255,255,0.1); }
.thumb-btn.active-up { background: var(--success); border-color: var(--success); }
.thumb-btn.active-down { background: var(--danger); border-color: var(--danger); }

.star-group { display: inline-flex; gap: 0.15rem; }
.star-btn { padding: 0.3rem 0.4rem; font-size: 1.2rem; border: none; }
.star-btn.filled { color: var(--accent-soft); }
.star-btn:not(.filled) { color: rgba(255,255,255,0.35); }

/* -------- Other list layout -------- */
.other-list { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .other-list { grid-template-columns: 1fr 1fr; }
}
.property.compact { grid-template-columns: auto 1fr; }
.property.compact .content h3 { font-size: 1.1rem; }

/* -------- Timeline -------- */
ol.timeline {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
ol.timeline li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--forest-soft);
  box-shadow: var(--shadow-sm);
}
ol.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: Georgia, serif;
}

ul.plain-list {
  list-style: disc;
  padding-left: 1.25rem;
}
ul.plain-list li { margin-bottom: 0.3em; }

/* -------- Share section -------- */
.share-section { background: var(--sand-light); border-radius: var(--radius-lg); padding: 2rem; margin: 3rem 0; }
.share-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }

.btn-primary, .btn-secondary {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); background: var(--forest-deep); }
.btn-secondary {
  background: transparent;
  color: var(--bark);
  border: 1px solid var(--bark-light);
}
.btn-secondary:hover { background: rgba(0,0,0,0.05); }

.share-preview {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  min-height: 1.5rem;
  color: var(--ink);
  border: 1px solid var(--sand);
}
.share-preview:empty { display: none; }
.share-preview.success { border-color: var(--success); background: #f3f8ef; }

/* -------- Footer -------- */
.site-footer {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  color: var(--bark-light);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer .small { font-size: 0.8rem; margin-top: 0.5em; }

/* -------- Responsive tweaks -------- */
@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  main { padding: 0 1rem; }
  .property { grid-template-columns: 1fr; padding: 1.25rem; }
  .rank { font-size: 1.5rem; padding-top: 0; }
  .share-section { padding: 1.5rem; }
}
