/* Mariann's 11/18 requests (Living Light): logo home link, script title, named phone nav,
   falling-snow hero, per-night calendar prices, tax lines. Loaded after the page CSS. */
@font-face {
  font-family: "Norican";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/norican-400.woff2") format("woff2");
}
:root { --font-script: "Norican", "Brush Script MT", cursive; --logo-blue: #41607f; }

/* ---------- Logo in the top-left home link ---------- */
.site-header .brand { display: flex; align-items: center; min-width: 0; }
.brand-logo {
  display: block;
  height: 2.15rem;
  aspect-ratio: 560 / 96;
  flex: 0 0 auto;
  /* Dark header: the logo shape tinted light (house icon slightly dimmer than the script). */
  background: linear-gradient(90deg, #b7c3cb 0 15.8%, #e6edf4 15.8% 100%);
  -webkit-mask: url("/brand/client/msr-logo-header.png") left center / contain no-repeat;
  mask: url("/brand/client/msr-logo-header.png") left center / contain no-repeat;
}
/* Light ("paper") headers and the inner pages show the logo in its own colors. */
body.cine[data-chrome="paper"] .brand-logo,
body:not(.cine) .site-header .brand-logo {
  background: url("/brand/client/msr-logo-header.png") left center / contain no-repeat;
  -webkit-mask: none; mask: none;
}

/* ---------- Opener title in the logo's script ---------- */
.chapter-opener .display.display-script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 0.98;
  font-size: clamp(3.4rem, 10.6vw, 8.4rem);
  color: #f7f3ec;
  text-shadow: 0 2px 2px rgba(20, 34, 52, 0.35), 0 6px 30px rgba(20, 34, 52, 0.55);
}
.chapter-opener .display.display-script { padding-left: 0.1em; }
.chapter-opener .display.display-script .line { overflow: visible; padding: 0 0.06em 0.02em 0; }
.chapter-opener .display.display-script .line:nth-child(2) { margin-left: 0.32em; }
.chapter-opener .display.display-script .line:nth-child(3) { margin-left: 0.64em; }
.chapter-opener .subhead { font-family: var(--font-display); }

/* ---------- Falling-snow mountain hero (generic; cabins live under Cabins) ---------- */
.chapter-opener .fly-stack {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, #8fa7bd 0%, #c9d6e1 55%, #e9eef2 100%);
}
.chapter-opener .fly-stack canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.chapter-opener .fly-stack .scrim {
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.58) 0%, rgba(8, 14, 22, 0.32) 42%, rgba(8, 14, 22, 0) 72%),
    linear-gradient(180deg, rgba(8, 14, 22, 0.32) 0%, rgba(8, 14, 22, 0) 30%, rgba(8, 14, 22, 0.1) 60%, rgba(8, 14, 22, 0.55) 100%);
}
@media (max-width: 700px) {
  .chapter-opener .display.display-script { font-size: clamp(3rem, 15vw, 4.6rem); }
  .chapter-opener .fly-stack .scrim {
    background: linear-gradient(180deg, rgba(8, 14, 22, 0.3) 0%, rgba(8, 14, 22, 0.05) 26%, rgba(8, 14, 22, 0.45) 58%, rgba(8, 14, 22, 0.78) 100%);
  }
}

/* ---------- Phone + tablet: named links (like the computer) instead of numbered chapters ---------- */
@media (max-width: 860px) {
  :root { --header-h: 5.75rem; }
  .site-header {
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 0;
    padding-top: 0; padding-bottom: 0;
  }
  .site-header > .brand, .site-header > .btn, .site-header > .menu-btn { margin-top: 0.62rem; }
  .site-header > .brand { height: 2.2rem; margin-right: auto; }
  .brand-logo { height: 1.75rem; max-width: 52vw; }
  .site-header > .menu-btn { display: none; }
  .site-header > nav {
    order: 9;
    flex: 0 0 calc(100% + 2.2rem);
    margin: 0.55rem -1.1rem 0;
    height: 2.35rem;
    display: flex; align-items: center;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    border-top: 1px solid rgba(243, 239, 230, 0.14);
    padding: 0 1rem;
  }
  .site-header > nav::-webkit-scrollbar { display: none; }
  body.cine[data-chrome="paper"] .site-header > nav, body:not(.cine) .site-header > nav { border-top-color: var(--line); }
  .site-header .nav-links {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
  }
  .site-header .nav-links a { font-size: 0.86rem; font-weight: 650; padding: 0.4rem 0; }
  .site-header .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
  /* The numbered chapter row is replaced by the named links above. */
  .progress { display: none !important; }
}

/* ---------- Cabin pages: per-night prices on the calendar, discount code, tax lines ---------- */
.booking-card .cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.02; gap: 0.05rem; }
.booking-card .cal-day .cal-price { font-size: 0.58rem; font-weight: 600; color: var(--ink-muted); letter-spacing: -0.01em; }
.booking-card .cal-day.start .cal-price, .booking-card .cal-day.end .cal-price { color: inherit; opacity: 0.85; }
.booking-card .cal-day:disabled .cal-price { display: none; }
.booking-card .code-field { display: block; margin: 0.7rem 0 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--ink-muted); }
.booking-card .code-field input {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.7rem;
  border: 1px solid var(--line); border-radius: 0.6rem; background: var(--surface, #fff);
  font: 600 0.92rem var(--font-body); color: var(--ink); text-transform: uppercase;
}
.price-break li small { display: block; font-size: 0.72rem; color: var(--ink-muted); font-weight: 500; }
.price-break li.tax span:first-child { color: var(--ink-muted); }
.price-break li.discount span:last-child { color: #2f6b45; }
.price-break li.note { font-size: 0.84rem; color: var(--ink-muted); }
.price-break li.error { color: #9b2c1c; }
