/* Deer Creek Campground
   Palette: pine #1C3A2E, hemlock #2F6B4F, fog #F2F4F0, ink #17201B, sun #E8B84A
   Type: Bitter (headings), Source Sans 3 (body). Both self-hosted, SIL OFL. */

@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #1C3A2E;
  --pine-deep: #142B22;
  --hemlock: #2F6B4F;
  --moss: #4E6B5C;
  --mist: #C9D6CF;
  --fog: #F2F4F0;
  --line: #DCE2DD;
  --white: #FFFFFF;
  --ink: #17201B;
  --ink-soft: #46524B;
  --sun: #E8B84A;
  --sun-hover: #F1C766;

  --font-head: "Bitter", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--pine);
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 64ch; }
a { color: var(--hemlock); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-hover); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-pine { background: var(--pine); color: var(--white); }
.btn-pine:hover { background: var(--hemlock); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--pine-deep); color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem;
}
.wordmark-mark { width: 1.6rem; height: 1.6rem; color: var(--sun); flex: none; }
.topbar-call {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  color: var(--white); text-decoration: none; font-weight: 700; white-space: nowrap;
  padding: 0.45rem 0.85rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08);
}
.topbar-call:hover { background: rgba(255, 255, 255, 0.16); }
.topbar-call-label { color: var(--sun); }
@media (max-width: 30rem) {
  .wordmark span { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--pine);
  color: var(--white);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(7.5rem, 17vw, 14rem);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-place { color: var(--mist); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.75rem; }
.hero-title {
  color: var(--white);
  font-size: clamp(2.75rem, 1.4rem + 6.4vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1.25rem;
  max-width: 12ch;
}
.hero-lede { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); color: #E4ECE7; max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.75rem; }
.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  font-weight: 600; color: var(--mist);
}
.hero-facts li { padding: 0 1rem; border-left: 1px solid rgba(201, 214, 207, 0.4); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-ridges { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(7rem, 19vw, 17rem); display: block; }
.ridge-far { fill: #264839; }
.ridge-mid { fill: #345C4B; }
.ridge-near { fill: var(--white); }

@media (max-width: 30rem) {
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; gap: 0.35rem; }
  .hero-facts li { padding: 0; border: 0; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-fog { background: var(--fog); }
.section-pine { background: var(--pine); color: var(--white); }
.section-pine h2, .section-pine h3 { color: var(--white); }

.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
  .split-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
}
.split-main p { color: var(--ink-soft); }

/* Rating */
.rating {
  border-top: 4px solid var(--sun);
  background: var(--fog);
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.rating-score { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.rating-number { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--pine); line-height: 1; }
.rating-stars { color: #B98A1A; font-size: 1.5rem; letter-spacing: 0.1em; }
.rating-caption { color: var(--ink-soft); margin-bottom: 0.75rem; }
.rating-link { font-weight: 700; }

/* Rates and details */
.details { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 52rem) { .details { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem; } }
.rate-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; align-items: flex-start;
}
.rate-label { font-weight: 700; color: var(--moss); margin-bottom: 0.25rem; }
.rate-value { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--pine); line-height: 1.1; margin-bottom: 1.5rem; }
.rate-value span { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--ink-soft); }
.rate-value-call { font-size: 1.75rem; }

.spec-list { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.spec { display: grid; gap: 0.15rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); }
.spec:first-child { border-top: 0; }
@media (min-width: 36rem) { .spec { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; } }
.spec dt { font-weight: 700; color: var(--pine); }
.spec dd { margin: 0; color: var(--ink-soft); }
.details-note { margin-top: 1.5rem; color: var(--ink-soft); }

/* Location */
.address { font-style: normal; font-size: 1.25rem; line-height: 1.5; margin-bottom: 0.75rem; }
.address-name { display: block; font-weight: 700; color: var(--pine); }
.address-phone { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.map { min-height: 20rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--fog); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }

/* Contact */
.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; } }
.contact-intro p { color: #DCE6E0; }
.contact-phone {
  display: inline-block; margin-top: 0.5rem;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.5vw, 2.75rem);
  color: var(--sun); text-decoration: none; letter-spacing: -0.01em;
}
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem);
}
.section-pine .contact-card h3 { color: var(--pine); }
.contact-card p { color: var(--ink-soft); }
.contact-card:focus { outline: none; }

/* Form */
.form .field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.form label { font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1.125rem; color: var(--ink);
  width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem;
  border: 1.5px solid #9AA8A0; border-radius: var(--radius); background: var(--white);
}
.form textarea { resize: vertical; min-height: 7rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--pine); }
.form input:user-invalid, .form select:user-invalid { border-color: #A63D2F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 1rem 0 0; font-weight: 600; }
.form-msg-error { color: #A63D2F; }
.form-msg:focus { outline: none; }

/* Footer */
.footer { background: var(--pine-deep); color: var(--mist); padding: 2.5rem 0; font-size: 1rem; }
.footer a { color: var(--white); }
.footer p { margin: 0 0 0.35rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-name { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.125rem; }
.footer-meta { text-align: left; }
@media (min-width: 40rem) { .footer-meta { text-align: right; } }
