/* ============================================================
   Jøvika Lodge — design tokens
   Grounded in the property's own photography: forest canopy green,
   the hillside cabin's rust roof, warm pine interior panelling.
   ============================================================ */
:root{
  --spruce-900:#20291b;
  --spruce-700:#3a4830;
  --spruce-600:#4b5c3d;
  --timber:#c89456;
  --timber-dim:#a97d47;
  --paper:#f4efe3;
  --paper-dim:#e9e1d0;
  --rust:#b1502f;
  --rust-dim:#8f3f24;
  --ink:#211d16;
  --cream:#f4efe3;
  --line:rgba(33,29,22,0.12);
  --line-on-dark:rgba(244,239,227,0.16);
  --shadow:0 18px 40px rgba(20,16,8,0.18);
  --radius:3px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto;} }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Karla',ui-sans-serif,system-ui,sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,.display{
  font-family:'Fraunces',ui-serif,Georgia,serif;
  font-weight:640;
  font-optical-sizing:auto;
  letter-spacing:-0.01em;
  line-height:1.06;
  margin:0;
  text-wrap:balance;
}
em{
  font-style:italic;
  color:inherit;
}
p{margin:0;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
button{font-family:inherit;cursor:pointer;}

.mono{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-variant-numeric:tabular-nums;
}

.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--timber-dim);
}

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

.wrap{max-width:1180px;margin:0 auto;padding-inline:clamp(1.25rem,4vw,3rem);}

/* ---------- Ledger strip (signature element) ---------- */
.ledger{
  background:var(--spruce-900);
  color:var(--paper-dim);
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem;
  letter-spacing:0.03em;
  border-bottom:1px solid var(--line-on-dark);
}
.ledger .wrap{
  display:flex;
  align-items:center;
  gap:0.6rem 1.6rem;
  flex-wrap:wrap;
  padding-block:0.55rem;
}
.ledger .tag{color:var(--timber);text-transform:uppercase;letter-spacing:0.12em;font-size:0.66rem;}
.ledger .items{display:flex;gap:1.4rem;flex-wrap:wrap;}
.ledger .item{display:flex;align-items:center;gap:0.4rem;white-space:nowrap;}
.dot{width:6px;height:6px;border-radius:50%;background:#7fae5e;flex:none;}
.dot.busy{background:var(--rust);}
.dot.live{animation:pulse 2.4s ease-in-out infinite;}
@media (prefers-reduced-motion:reduce){ .dot.live{animation:none;} }
@keyframes pulse{
  0%,100%{opacity:1;}
  50%{opacity:0.35;}
}
.item.is-busy{color:var(--rust);text-decoration:line-through;text-decoration-color:rgba(177,80,47,0.5);}

/* ---------- Header / nav ---------- */
header.site{
  position:sticky;top:0;z-index:30;
  background:var(--spruce-900);
  border-bottom:1px solid var(--line-on-dark);
}
header.site .wrap{
  display:flex;align-items:center;justify-content:space-between;
  padding-block:1rem;
}
.wordmark{
  font-family:'Fraunces',serif;
  font-weight:640;
  font-size:1.35rem;
  color:var(--paper);
}
.wordmark small{
  display:block;font-family:'IBM Plex Mono',monospace;font-weight:400;
  font-size:0.6rem;letter-spacing:0.16em;color:var(--timber);text-transform:uppercase;margin-top:0.15rem;
}
nav.links{display:flex;gap:clamp(1rem,3vw,2rem);list-style:none;margin:0;padding:0;}
nav.links a{
  font-size:0.86rem;color:var(--paper-dim);
  padding-bottom:0.3rem;border-bottom:1px solid transparent;
}
nav.links a:hover,nav.links a.current{color:var(--paper);border-color:var(--rust);}
.nav-cta{display:flex;align-items:center;gap:1.25rem;}
.lang-switch{
  font-family:'IBM Plex Mono',monospace;font-size:0.68rem;letter-spacing:0.05em;
  color:var(--paper-dim);border:1px solid var(--line-on-dark);border-radius:3px;
  padding:0.3rem 0.55rem;text-decoration:none;
}
.lang-switch:hover{color:var(--paper);border-color:var(--timber);}
.mobile-menu .lang-switch{display:inline-block;margin-top:0.75rem;width:fit-content;}

.menu-toggle{
  display:none;background:none;border:1px solid var(--line-on-dark);border-radius:3px;
  width:2.4rem;height:2.4rem;flex-direction:column;align-items:center;justify-content:center;gap:4px;
}
.menu-toggle span{width:1.1rem;height:2px;background:var(--paper);display:block;transition:transform .18s ease, opacity .18s ease;}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
@media (prefers-reduced-motion:reduce){ .menu-toggle span{transition:none;} }

.mobile-menu{display:none;}

.btn{
  display:inline-flex;align-items:center;gap:0.5rem;
  border:none;border-radius:var(--radius);
  font-weight:700;font-size:0.82rem;letter-spacing:0.02em;
  padding:0.75rem 1.4rem;
  transition:transform .12s ease, background-color .15s ease;
}
.btn:active{transform:translateY(1px);}
.btn-rust{background:var(--rust);color:var(--cream);}
.btn-rust:hover{background:var(--rust-dim);}
.btn-outline{background:transparent;border:1px solid var(--line-on-dark);color:var(--paper);}
.btn-outline:hover{border-color:var(--timber);color:var(--timber);}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--line);}
.btn-ghost:hover{border-color:var(--rust);color:var(--rust-dim);}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:min(88vh,760px);
  display:flex;align-items:flex-end;
  background:var(--spruce-900);
  overflow:hidden;
}
.hero video, .hero img.fallback{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0.72;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(32,41,27,0.15) 0%, rgba(32,41,27,0.55) 68%, rgba(32,41,27,0.92) 100%);
}
.hero .wrap{position:relative;z-index:1;padding-bottom:clamp(2.5rem,6vw,4.5rem);width:100%;}
.hero h1{
  color:var(--cream);
  font-size:clamp(2.3rem,5.4vw,4rem);
  max-width:15ch;
  margin-bottom:1.1rem;
}
.hero h1 em{color:var(--timber);font-style:italic;}
.hero p.lede{
  color:var(--paper-dim);max-width:46ch;font-size:1.05rem;margin-bottom:1.75rem;
}
.hero .actions{display:flex;gap:1rem;flex-wrap:wrap;}

/* ---------- Sections ---------- */
section{padding-block:clamp(3.5rem,7vw,6rem);}
.section-head{max-width:56ch;margin-bottom:clamp(2rem,5vw,3rem);}
.section-head h2{font-size:clamp(1.7rem,3.2vw,2.4rem);margin-top:0.4rem;}
.section-head p{color:var(--spruce-700);margin-top:0.75rem;font-size:1rem;}

.band-dark{background:var(--spruce-900);color:var(--paper);}
.band-dark .section-head p{color:var(--paper-dim);}
.band-dark .eyebrow{color:var(--timber);}

/* highlight trio */
.highlights{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);
}
.highlights .card{background:var(--paper);padding:2rem;}
.highlights .card svg{width:28px;height:28px;stroke:var(--rust);margin-bottom:1rem;}
.highlights h3{font-size:1.1rem;margin-bottom:0.5rem;}
.highlights p{color:var(--spruce-700);font-size:0.92rem;}
@media (max-width:760px){ .highlights{grid-template-columns:1fr;} }

/* accommodation cards */
.stay-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;}
@media (max-width:820px){ .stay-grid{grid-template-columns:1fr;} }
.stay-card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;
}
.stay-card .photo{aspect-ratio:4/3;overflow:hidden;background:var(--paper-dim);}
.stay-card .photo img{width:100%;height:100%;object-fit:cover;}
.stay-card .body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;gap:0.6rem;flex:1;}
.stay-card h3{font-size:1.3rem;}
.stay-card .meta{color:var(--spruce-700);font-size:0.84rem;}
.stay-card .desc{color:var(--spruce-700);font-size:0.92rem;line-height:1.55;flex:1;}
.stay-card .foot{
  display:flex;align-items:center;justify-content:space-between;
  border-top:1px solid var(--line);padding-top:1rem;margin-top:0.4rem;
}
.stay-card .price{font-size:1.05rem;color:var(--rust-dim);}
.stay-card .price small{display:block;font-family:'Karla',sans-serif;font-size:0.68rem;color:var(--spruce-700);font-weight:400;}

/* activities list */
.activity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line-on-dark);border:1px solid var(--line-on-dark);}
@media (max-width:820px){ .activity-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .activity-grid{grid-template-columns:1fr;} }
.activity-grid .cell{background:var(--spruce-900);padding:1.5rem;}
.activity-grid h3{color:var(--cream);font-size:1.02rem;margin-bottom:0.4rem;font-family:'Fraunces',serif;font-weight:600;}
.activity-grid p{color:var(--paper-dim);font-size:0.86rem;line-height:1.5;}

/* info list (rules / access) */
.info-cols{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;}
@media (max-width:760px){ .info-cols{grid-template-columns:1fr;} }
.info-cols h3{font-size:1.05rem;margin-bottom:0.9rem;}
.info-cols ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.6rem;}
.info-cols li{
  padding-left:1.1rem;position:relative;color:var(--spruce-700);font-size:0.92rem;line-height:1.5;
}
.info-cols li::before{content:"—";position:absolute;left:0;color:var(--timber-dim);}

/* gallery */
.gallery-grid{
  display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:180px;gap:0.5rem;
}
.gallery-grid a{display:block;overflow:hidden;border-radius:2px;}
.gallery-grid img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease;}
.gallery-grid a:hover img{transform:scale(1.05);}
@media (prefers-reduced-motion:reduce){ .gallery-grid a:hover img{transform:none;} }
.gallery-grid .tall{grid-row:span 2;}
@media (max-width:820px){ .gallery-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ .gallery-grid{grid-template-columns:1fr;grid-auto-rows:220px;} }

/* footer */
footer.site{background:var(--spruce-900);color:var(--paper-dim);padding-block:3rem 2rem;}
footer.site .top{
  display:flex;justify-content:space-between;gap:2rem;flex-wrap:wrap;
  padding-bottom:2rem;border-bottom:1px solid var(--line-on-dark);margin-bottom:1.5rem;
}
footer.site .wordmark{margin-bottom:0.6rem;}
footer.site .col h4{
  font-family:'IBM Plex Mono',monospace;font-size:0.68rem;letter-spacing:0.12em;
  text-transform:uppercase;color:var(--timber);margin-bottom:0.8rem;
}
footer.site .col a, footer.site .col p{display:block;font-size:0.88rem;margin-bottom:0.45rem;color:var(--paper-dim);}
footer.site .col a:hover{color:var(--cream);}
footer.site .bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:0.75rem;font-size:0.76rem;color:rgba(244,239,227,0.55);}

/* ---------- Booking modal ---------- */
.overlay{
  position:fixed;inset:0;background:rgba(15,12,8,0.62);backdrop-filter:blur(2px);
  display:flex;align-items:center;justify-content:center;padding:1.25rem;z-index:100;
  opacity:0;pointer-events:none;transition:opacity .2s ease;
}
.overlay.open{opacity:1;pointer-events:auto;}
.sheet{
  background:var(--paper);border-radius:6px;box-shadow:var(--shadow);
  width:100%;max-width:880px;max-height:min(88vh,740px);overflow:hidden;
  display:flex;flex-direction:column;
  transform:translateY(16px) scale(0.98);transition:transform .2s ease;
}
.overlay.open .sheet{transform:translateY(0) scale(1);}
@media (prefers-reduced-motion:reduce){ .overlay,.sheet{transition:none;} }

.sheet-head{
  background:var(--spruce-900);color:var(--paper);
  padding:1.3rem 1.6rem;display:flex;justify-content:space-between;align-items:flex-start;
}
.sheet-head h2{font-size:1.4rem;color:var(--cream);}
.sheet-head .sub{font-family:'IBM Plex Mono',monospace;font-size:0.74rem;color:var(--timber);margin-top:0.35rem;}
.sheet-head .close{background:none;border:none;color:var(--paper-dim);font-size:1.5rem;line-height:1;}
.sheet-head .close:hover{color:var(--cream);}

.sheet-body{display:grid;grid-template-columns:1.05fr 1fr;overflow-y:auto;}
@media (max-width:640px){ .sheet-body{grid-template-columns:1fr;} }
.cal-pane{padding:1.4rem 1.6rem;border-right:1px solid var(--line);}
@media (max-width:640px){ .cal-pane{border-right:none;border-bottom:1px solid var(--line);} }
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.8rem;}
.cal-head .month{font-family:'IBM Plex Mono',monospace;font-size:0.84rem;}
.cal-nav button{background:none;border:1px solid var(--line);width:1.7rem;height:1.7rem;border-radius:3px;color:var(--spruce-700);}
.cal-nav button:hover{border-color:var(--rust);color:var(--rust-dim);}
.dow{display:grid;grid-template-columns:repeat(7,1fr);font-family:'IBM Plex Mono',monospace;font-size:0.62rem;color:var(--spruce-700);text-align:center;margin-bottom:0.35rem;}
.cgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;}
.cday{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-family:'IBM Plex Mono',monospace;font-size:0.76rem;border-radius:3px;cursor:pointer;}
.cday.blank{visibility:hidden;}
.cday.unavailable{color:#b8b0a0;text-decoration:line-through;cursor:not-allowed;}
.cday:not(.unavailable):not(.blank):hover{background:var(--paper-dim);}
.cday.in-range{background:var(--paper-dim);}
.cday.range-end{background:var(--rust);color:var(--cream);font-weight:700;}
.cal-note{font-size:0.74rem;color:var(--spruce-700);margin-top:0.9rem;line-height:1.5;}

.book-pane{padding:1.4rem 1.6rem;display:flex;flex-direction:column;gap:1rem;}
.room-opt{
  display:flex;align-items:center;gap:0.85rem;border:1px solid var(--line);border-radius:3px;
  padding:0.7rem 0.85rem;cursor:pointer;
}
.room-opt:hover{border-color:var(--timber);}
.room-opt.selected{border-color:var(--rust);background:rgba(177,80,47,0.06);}
.room-opt .radio{width:1rem;height:1rem;border-radius:50%;border:1.5px solid var(--spruce-700);flex:none;position:relative;}
.room-opt.selected .radio{border-color:var(--rust);}
.room-opt.selected .radio::after{content:"";position:absolute;inset:2.5px;border-radius:50%;background:var(--rust);}
.room-opt .info{flex:1;min-width:0;}
.room-opt .info .name{font-weight:700;font-size:0.9rem;}
.room-opt .info .meta{font-size:0.72rem;color:var(--spruce-700);}
.room-opt .price{font-family:'IBM Plex Mono',monospace;font-size:0.82rem;text-align:right;white-space:nowrap;color:var(--rust-dim);}
.room-opt.is-unavailable{opacity:0.4;cursor:not-allowed;}
.room-opt.is-unavailable .price{text-decoration:line-through;}

.summary{margin-top:auto;border-top:1px solid var(--line);padding-top:0.9rem;display:flex;justify-content:space-between;align-items:center;font-size:0.86rem;}
.summary .total{font-family:'IBM Plex Mono',monospace;font-size:1.05rem;color:var(--rust-dim);}
.summary .total small{display:block;font-family:'Karla',sans-serif;color:var(--spruce-700);font-size:0.66rem;font-weight:400;}

.sheet-foot{padding:1rem 1.6rem;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:1rem;}
.sheet-foot .note{font-size:0.7rem;color:var(--spruce-700);max-width:32ch;line-height:1.4;}

/* demo banner (kept consistent w/ project convention) */
.demo-banner{
  background:repeating-linear-gradient(135deg,#1a1108,#1a1108 10px,#150e07 10px,#150e07 20px);
  border-bottom:1px solid rgba(200,148,86,0.4);
  color:var(--timber);font-family:'IBM Plex Mono',monospace;font-size:0.7rem;
  text-align:center;padding:0.5rem 1rem;
}
.demo-banner b{color:var(--cream);}
.demo-banner a{text-decoration:underline;color:var(--cream);}

@media (max-width:760px){
  nav.links{display:none;}
  .menu-toggle{display:flex;}
  .mobile-menu{
    display:flex;flex-direction:column;
    max-height:0;overflow:hidden;
    border-top:0 solid var(--line-on-dark);
    transition:max-height .22s ease;
  }
  .mobile-menu.open{max-height:16rem;border-top-width:1px;}
  .mobile-menu a{
    padding:0.9rem clamp(1.25rem,4vw,3rem);color:var(--paper-dim);
    border-bottom:1px solid var(--line-on-dark);font-size:0.92rem;
  }
  .mobile-menu a.current{color:var(--timber);}
  @media (prefers-reduced-motion:reduce){ .mobile-menu{transition:none;} }
}
