/* The Castle @ Jackson Hole — castlejh.com one-page (PRIVATE LOCAL PREVIEW, 30 Nov 2026).
   Stone-and-pine lodge palette. System fonts only. No third-party CDNs, fonts, or tracking. */

:root {
  --bg: #F3EEE6;
  --bg-header: #EBE4D6;
  --surface: #FFFBF5;
  --ink: #2A241C;
  --ink-soft: #5C534A;
  --line: #D4C8B6;
  --stone: #8A7460;
  --pine: #2F4A3C;
  --pine-dark: #22362C;
  --copper: #8B5A3C;
  --copper-dark: #6E452E;
  --gold: #B8956A;
  --focus: #22362C;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", Times, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 62rem;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; border: 0; display: block; }

a {
  color: var(--copper);
  text-underline-offset: 0.15em;
}
a:hover, a:focus-visible { color: var(--copper-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ----- Header ----- */
.site-header {
  background: var(--bg-header);
  text-align: center;
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}

.brand { margin: 0 auto; max-width: 11rem; }
.logo {
  display: block;
  margin: 0 auto;
  width: min(9.75rem, 58%);
  height: auto;
}

.tagline {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.nav {
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a:focus-visible {
  color: var(--pine-dark);
  border-bottom-color: var(--gold);
}

/* ----- Hero ----- */
.hero {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #1A1713;
  position: relative;
}
.hero img {
  width: 100%;
  max-height: 36rem;
  object-fit: cover;
  object-position: center 60%;
}
.hero-caption {
  margin: 0;
  padding: 0.65rem 1.25rem 0.85rem;
  text-align: center;
  font-size: 0.92rem;
  color: #EDE4D6;
  background: #1A1713;
}

/* ----- Main ----- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2.5rem;
}

section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.6rem;
  margin: 1.15rem 0;
  border: 1px solid var(--line);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  text-align: center;
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  text-align: center;
}

h3 {
  margin: 1.25rem 0 0.55rem;
  font-size: 1.2rem;
}
h3:first-child { margin-top: 0; }

.lede {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
}

.rule {
  display: block;
  width: 3.25rem;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.15rem;
  border: 0;
}

.intro p, .notes p, .legal p { margin: 0 0 0.9rem; }
.intro p:last-child, .notes p:last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.facts li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pine-dark);
}

/* ----- Rate box ----- */
.rate {
  background: #fff;
  border: 1.5px solid var(--pine);
  border-radius: 12px;
  padding: 1.15rem 1rem 1.2rem;
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}
.rate .amount {
  display: block;
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--pine-dark);
  line-height: 1.15;
}
.rate .period {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.rate ul {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  color: var(--ink);
}
.rate li { margin: 0.2rem 0; }

/* ----- Amenities ----- */
.amenity-groups {
  display: grid;
  gap: 0.85rem 1.5rem;
}
.amenity-groups h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.amenity-groups ul {
  margin: 0;
  padding-left: 1.15rem;
}
.amenity-groups li { margin: 0.15rem 0; }

.notes ul {
  margin: 0;
  padding-left: 1.2rem;
}
.notes li { margin: 0.4rem 0; }

/* ----- Gallery ----- */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #1A1713;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery button:hover, .gallery button:focus-visible {
  box-shadow: 0 0 0 2px var(--pine);
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 16, 12, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 3.5rem 2.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 6.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox .caption {
  color: #EDE4D6;
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  max-width: 50rem;
}
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #F3EEE6;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.lightbox .close {
  top: 0.6rem;
  right: 0.75rem;
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
}
.lightbox .prev,
.lightbox .next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.65rem;
}
.lightbox .prev { left: 0.25rem; }
.lightbox .next { right: 0.25rem; }
.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover,
.lightbox .close:focus-visible,
.lightbox .prev:focus-visible,
.lightbox .next:focus-visible { color: #fff; }

body.lb-open { overflow: hidden; }

/* ----- Contact ----- */
.contact-box { text-align: center; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin: 0.35rem 0 0.85rem;
}
.btn:hover, .btn:focus-visible { background: var(--pine-dark); color: #fff; }
.contact-email {
  margin: 0.25rem 0 0;
  font-size: 0.98rem;
}

/* ----- Legal pages ----- */
.legal-header {
  background: var(--bg-header);
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.legal-header .logo { width: min(7.5rem, 42%); }
.legal-header .back {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.legal-header .back:hover { color: var(--pine-dark); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.4rem 0; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: #EDE4D6;
  text-align: center;
  padding: 1.75rem 1.25rem 2rem;
  font-size: 0.92rem;
}
.site-footer a { color: #F0D7B8; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 0.85rem;
}
.copyright { margin: 0 0 0.5rem; color: #C9BBA6; }
.mail-address { margin: 0; color: #C9BBA6; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (min-width: 600px) {
  section { padding: 1.75rem 1.75rem 1.85rem; }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .amenity-groups {
    grid-template-columns: 1fr 1fr;
  }
  h1 { font-size: 2.15rem; }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
  h2 { font-size: 1.9rem; }
  .amenity-groups {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
