/* Living Light — typography-led editorial layout for My Southern Rentals.
   Time of day comes from tokens.css. No always-on WebGL. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  transition: background-color 0.8s ease, color 0.8s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--haze-deep); }
html[data-tod="dusk"] a:hover, html[data-tod="night"] a:hover { color: var(--glow); }

.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--surface); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 80;
}
.skip:focus { top: 0.5rem; }

/* Concept preview label — always visible */
.concept-banner {
  position: sticky; top: 0; z-index: 50;
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  background: var(--ink); color: var(--bg);
  padding: 0 1rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.site-header {
  position: sticky; top: var(--banner-h); z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1.1rem;
  background: var(--header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  color: inherit; text-decoration: none;
  min-width: 0; flex: 0 1 auto;
  white-space: nowrap;
}
.brand-mark {
  width: 1.7rem; height: 1.7rem; flex: 0 0 auto;
  border-radius: 0.3rem;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-clock {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav-links {
  display: flex; align-items: center; gap: 0.2rem 1rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a[aria-current="page"] { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 700;
  border: 0; border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.menu-btn, .menu-panel, .menu-backdrop { display: none; }

@media (max-width: 860px) {
  .nav-links, .header-clock { display: none; }
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    background: transparent; color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: 600 0.88rem var(--font-body);
    cursor: pointer;
  }
  .site-header .btn { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
  .brand-name { font-size: 0.95rem; max-width: 46vw; }
  .menu-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    z-index: 60; border: 0; opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
  .menu-panel {
    display: block; position: fixed; top: calc(var(--banner-h) + var(--header-h));
    right: 0; left: auto; width: min(20rem, 88vw);
    height: calc(100dvh - var(--banner-h) - var(--header-h));
    background: var(--surface); color: var(--ink);
    z-index: 70; padding: 1.25rem 1.4rem 2rem;
    transform: translateX(110%); transition: transform 0.22s ease;
    overflow: auto;
    box-shadow: var(--shadow) -8px 0 24px;
  }
  body.menu-open .menu-panel { transform: none; }
  .menu-panel a {
    display: block; color: var(--ink); text-decoration: none;
    font-weight: 600; padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .menu-meta { margin-top: 1.2rem; color: var(--ink-muted); font-size: 0.92rem; }
  .menu-meta a { display: inline; border: 0; padding: 0; color: var(--accent); }
}

/* Sky wash — CSS only, blue haze, not a 3D fly-in */
.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 42%, var(--sky-bot));
  isolation: isolate;
}
.sky::before, .sky::after {
  content: "";
  position: absolute; inset: -10% 0 auto 0; height: 70%;
  pointer-events: none; z-index: 0;
}
.sky::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--fog) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, var(--haze) 0%, transparent 65%);
  opacity: 0.55;
}
.sky::after {
  /* far ridge silhouette — decorative wash, not a scroll camera */
  background: linear-gradient(180deg, transparent 35%, var(--bg) 100%),
    radial-gradient(120% 60% at 50% 110%, var(--haze-deep) 0%, transparent 70%);
  opacity: 0.35;
  inset: auto 0 0 0; height: 45%;
}
.sky > * { position: relative; z-index: 1; }
html[data-tod="night"] .sky::before {
  background: radial-gradient(ellipse 50% 40% at 70% 10%, #dce6f2 0%, transparent 45%);
  opacity: 0.18;
}

.wrap { width: min(var(--page), calc(100% - 2.2rem)); margin: 0 auto; }
.hero { padding: 3.2rem 0 3.6rem; }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--haze-deep);
  margin: 0 0 0.8rem;
}
html[data-tod="dusk"] .kicker, html[data-tod="night"] .kicker { color: var(--glow); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero .dek {
  font-size: 1.15rem;
  max-width: 36rem;
  color: var(--ink-muted);
  margin: 0 0 1.6rem;
}
.tod-copy[hidden] { display: none !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }

/* Facts floor — typographic stats, not flip-flap */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem 1.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div { min-width: 0; }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stats span { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.15rem; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.section { padding: 3.2rem 0; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.lede { color: var(--ink-muted); max-width: var(--measure); margin: 0 0 1.6rem; }

/* Cabin picker — editorial photo cards, real exteriors */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 800px) { .picker { grid-template-columns: 1fr; } }
.cabin-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit; text-decoration: none;
  box-shadow: 0 10px 30px var(--shadow);
  transform: translateZ(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cabin-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--shadow); }
}
.cabin-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.cabin-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
.cabin-card .body { padding: 1.15rem 1.2rem 1.3rem; color: var(--ink); }
.cabin-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 0.25rem; color: var(--ink);
}
.cabin-card .line { margin: 0 0 0.7rem; color: var(--ink-muted); }
.cabin-card .meta { margin: 0; font-size: 0.9rem; color: var(--ink); font-weight: 600; }

/* Owner strip */
.owner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.owner strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; display: block; }
.owner p { margin: 0; color: var(--ink-muted); }
.owner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }

/* After dark — always has photographs, never an empty toggle prompt */
.after-dark .photos {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0.8rem;
}
@media (max-width: 700px) { .after-dark .photos { grid-template-columns: 1fr; } }
.after-dark figure { margin: 0; }
.after-dark figcaption {
  font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.4rem;
}
.after-dark .photos img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0.8rem; min-height: 14rem;
}

/* Arrival + rules */
.arrival, .rules {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.arrival h3, .rules h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; margin: 0 0 0.6rem; font-weight: 600;
}
.arrival ul, .rules ul { margin: 0; padding: 0; list-style: none; }
.arrival li, .rules li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.arrival li:first-child, .rules li:first-child { border-top: 0; }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.7rem 1rem;
}
.rules-grid b { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .split-2 { grid-template-columns: 1fr; } }

/* Walk-through */
.walk-scene {
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 1.6rem;
  align-items: center;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.walk-scene:first-child { border-top: 0; }
@media (max-width: 800px) {
  .walk-scene { grid-template-columns: 1fr; }
}
.walk-stage {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface-2);
}
.walk-stage img, .walk-stage .layers, .walk-stage .layers img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.walk-stage .layers img { pointer-events: none; will-change: transform; }
.walk-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.walk-copy p { margin: 0; color: var(--ink-muted); }

/* Amenities */
.amenity-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.7rem;
}
.amenity {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.85rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  font-weight: 600; font-size: 0.92rem;
}
.amenity svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.7; }
details.amenity-full { margin-top: 1rem; }
details.amenity-full summary {
  cursor: pointer; font-weight: 700; color: var(--accent);
}
.amenity-cols {
  columns: 2; gap: 2rem; margin-top: 0.8rem;
}
@media (max-width: 600px) { .amenity-cols { columns: 1; } }
.amenity-cols h4 { break-after: avoid; margin: 0.8rem 0 0.2rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.amenity-cols ul { margin: 0; padding-left: 1.1rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .reviews { grid-template-columns: 1fr; } }
blockquote.review {
  margin: 0; padding: 1.1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem;
}
blockquote.review p { margin: 0 0 0.8rem; }
blockquote.review footer { color: var(--ink-muted); font-size: 0.88rem; font-style: italic; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.5rem; }

/* FAQ / policies */
.faq details, .policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.9rem 1.1rem;
  margin: 0 0 0.55rem;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.5rem 0 0; color: var(--ink-muted); }

/* Forms — no overlapping FABs */
.book-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.book-demo h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.25rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 0.5rem; padding: 0.55rem 0.7rem;
}
textarea { min-height: 6rem; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--ink-muted); }
.form-status { margin: 0.8rem 0 0; font-weight: 600; }

/* Places */
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .place-grid { grid-template-columns: 1fr; } }
.place {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem; overflow: hidden;
  display: flex; flex-direction: column;
}
.place img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.place .body { padding: 0.9rem 1rem 1.1rem; }
.place h3 { font-family: var(--font-display); margin: 0 0 0.3rem; font-size: 1.25rem; }
.credit { font-size: 0.75rem; color: var(--ink-muted); margin: 0 0 0.35rem; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.placeholder-note {
  border: 1px dashed var(--accent);
  background: var(--surface);
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
footer.site-footer .brand-name { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.8rem 0; }
.footer-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.footer-contact a { color: var(--accent); }

.page-hero { padding: 2.4rem 0 1.4rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.6rem;
}
.lead-photo {
  border-radius: 1rem; overflow: hidden; margin: 0 0 1.6rem;
  aspect-ratio: 16/9; background: var(--surface-2);
}
.lead-photo img, .lead-photo .layers, .lead-photo .layers img {
  width: 100%; height: 100%; object-fit: cover;
}
.lead-photo { position: relative; }
.lead-photo .layers { position: absolute; inset: 0; }
.lead-photo .layers img { position: absolute; inset: 0; }

.notice { font-size: 0.88rem; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .cabin-card:hover { transform: none; }
  .walk-stage .layers img, .lead-photo .layers img { transform: none !important; }
}
.plain-list { margin: 1.4rem 0 0; padding-left: 1.1rem; }
.notice-top { margin-top: 1rem; }
.tight-top { margin-top: 1rem; }
.policy-card h3 { font-family: var(--font-display); margin: 0 0 0.6rem; font-weight: 600; }
.page-hero .stats { margin: 1rem 0 1.2rem; }
.site-header nav { margin-left: 0.6rem; }
@media (max-width: 860px) {
  .brand-name { max-width: none; }
  .site-header .btn .btn-wide { display: none; }
  .site-header .btn::after { content: none; }
}
@media (min-width: 861px) {
  .site-header .btn .btn-wide { display: inline; }
  .site-header .btn .btn-short { display: none; }
}
@media (max-width: 860px) {
  .brand { flex: 0 1 auto; }
  .brand-name {
    font-size: 0.8rem;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
  .menu-btn { padding: 0.35rem 0.65rem; }
}
.brand-wordmark {
  display: block;
  width: min(13.2rem, 42vw);
  height: 1.25rem;
  background: currentColor;
  color: var(--ink);
  -webkit-mask: url("/brand/wordmark/msr-porch-currentcolor.svg") left center / contain no-repeat;
  mask: url("/brand/wordmark/msr-porch-currentcolor.svg") left center / contain no-repeat;
}
@media (max-width: 860px) {
  .brand-wordmark { width: min(9.2rem, 38vw); height: 1.05rem; }
}
.amenity img.icon {
  width: 1.5rem; height: 1.5rem;
  /* stroke icons use currentColor — render via mask so they follow ink */
  background: currentColor;
  color: var(--ink);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.amenity-icon {
  display: block; width: 1.5rem; height: 1.5rem;
  background: currentColor; color: var(--ink);
}
.amenity-icon[data-icon="view"] { -webkit-mask: url("/brand/icons/mountain-view.svg") center/contain no-repeat; mask: url("/brand/icons/mountain-view.svg") center/contain no-repeat; }
.amenity-icon[data-icon="tub"] { -webkit-mask: url("/brand/icons/hot-tub.svg") center/contain no-repeat; mask: url("/brand/icons/hot-tub.svg") center/contain no-repeat; }
.amenity-icon[data-icon="fire"] { -webkit-mask: url("/brand/icons/wood-fireplace.svg") center/contain no-repeat; mask: url("/brand/icons/wood-fireplace.svg") center/contain no-repeat; }
.amenity-icon[data-icon="pit"] { -webkit-mask: url("/brand/icons/fire-pit.svg") center/contain no-repeat; mask: url("/brand/icons/fire-pit.svg") center/contain no-repeat; }
.amenity-icon[data-icon="lock"] { -webkit-mask: url("/brand/icons/self-check-in.svg") center/contain no-repeat; mask: url("/brand/icons/self-check-in.svg") center/contain no-repeat; }
.amenity-icon[data-icon="wifi"] { -webkit-mask: url("/brand/icons/wifi.svg") center/contain no-repeat; mask: url("/brand/icons/wifi.svg") center/contain no-repeat; }
.amenity-icon[data-icon="arcade"] { -webkit-mask: url("/brand/icons/arcade.svg") center/contain no-repeat; mask: url("/brand/icons/arcade.svg") center/contain no-repeat; }
.amenity-icon[data-icon="swing"] { -webkit-mask: url("/brand/icons/swings.svg") center/contain no-repeat; mask: url("/brand/icons/swings.svg") center/contain no-repeat; }
