/* Vesperine House (fictional hotel), v5. Design concept by Gmax Media. Phone first.
   Surface built on the measured system of Le Sirenuse (research/templates/hotel/teardown-sirenuse.md):
   ONE ink on ONE ground, a centred 340 px column with 25 px gutters, an upright hairline display serif with a text
   serif at 17/1.3, uppercase action labels without tracking, full bleed media with radius 0, a fixed nav with the mark
   centred. Ours: the ground and the ink are the colour of the hour (js/main.js writes --bg --ink --deep --sun --on-sun
   --wash on :root), the clock is the H1, the sun arc, key tags and lamps are the objects. */
@font-face{font-family:"Noto Serif Display";src:url(../fonts/noto-serif-display-var.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url(../fonts/newsreader-var.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url(../fonts/newsreader-italic-var.woff2) format("woff2");font-weight:200 800;font-style:italic;font-display:swap}

:root{
  --bg:#8CCBE3; --ink:#0E2F4F; --deep:#74BBD7; --sun:#FFC83D; --wash:#FFFFFF; --on-sun:#0E2F4F;
  --display:"Noto Serif Display","Didot","Times New Roman",serif; --text:"Newsreader",Georgia,serif;
  --top:80px; --bar:64px; --pad:25px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:var(--top);-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font:400 17px/1.3 var(--text);font-optical-sizing:auto;font-variant-numeric:lining-nums;-webkit-font-smoothing:antialiased;padding-bottom:var(--bar);text-align:center}
img{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}

/* roles (measured): action label, section label, lead */
.act{font:500 15px/1.3 var(--text);text-transform:uppercase;text-decoration:none}
.label{font:400 17px/1.45 var(--text);text-transform:uppercase}
.lead{font:400 26px/1.3 var(--display);letter-spacing:-.5px;padding:0 var(--pad);margin:84px auto 0;max-width:680px;text-wrap:pretty}

/* nav: mark centred, menu left, the house clock right */
.top{position:fixed;inset:0 0 auto 0;height:var(--top);z-index:30;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 14px;background:var(--bg)}
.top-menu{justify-self:start;display:grid;gap:7px;width:26px;padding:10px 0}
.top-menu i{display:block;height:1.5px;background:var(--ink)}
.mark{display:grid;justify-items:center;gap:5px;text-decoration:none}
.mark-svg{width:34px;height:34px}
.mark-name{font:500 14px/1 var(--text);text-transform:uppercase;white-space:nowrap}
.chip{justify-self:end;display:flex;align-items:center;gap:7px;text-decoration:none;font:300 21px/1 var(--display);font-variant-numeric:tabular-nums lining-nums}
.chip-sun{width:13px;height:13px;border-radius:50%;background:var(--sun)}

/* the plate: the hour is the headline */
.day{padding-top:calc(var(--top) + 6px)}
.plate{padding:0 var(--pad)}
.clock{font:200 clamp(124px,37vw,150px)/.86 var(--display);letter-spacing:-.02em;font-variant-numeric:lining-nums tabular-nums;margin-top:4px;white-space:nowrap}
.say{font:400 26px/1.3 var(--display);letter-spacing:-.5px;margin:10px auto 0;min-height:2.6em;max-width:12.5em;text-wrap:balance}
.follow{display:inline-block;margin-top:8px;padding:6px 0;border-bottom:1.5px solid var(--ink)}

/* the dial: a solid arc, the sun, the full bleed terrace */
.dial{margin-top:14px}
.arc{position:relative;z-index:3;height:84px;margin:0 20px -34px;touch-action:pan-y;cursor:grab;outline:0}
.arc svg{position:absolute;inset:0;width:100%;height:100%}
.arc-line{fill:none;stroke:var(--ink);stroke-width:1.6;vector-effect:non-scaling-stroke}
.sun{position:absolute;left:0;top:0;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:var(--sun);transform:translate(20px,68px)}
.view{display:grid;height:260px;background:var(--deep)}
.view img{grid-area:1 / 1;width:100%;height:100%;min-height:0;object-fit:cover;object-position:50% 52%}
.view-cap{display:flex;align-items:baseline;justify-content:center;gap:12px;padding:10px var(--pad) 0;white-space:nowrap}
.view-time{font:300 30px/1.2 var(--display);font-variant-numeric:tabular-nums lining-nums}
.stops{display:flex;justify-content:space-between;padding:6px var(--pad) 0}
.stops button{padding:7px 0 5px;border-bottom:1.5px solid transparent}
.stops button.is-on{border-bottom-color:var(--ink)}

/* photographs: radius 0, multiplied onto the wash of the hour */
.ph{background:var(--wash)}
.ph img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}

/* rooms: the key board, a carousel 374 wide with 8 px peeks */
.rooms{padding-top:76px}
.rail{margin-top:18px;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:10px 8px 0;scroll-padding-left:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;outline:0}
.rail::-webkit-scrollbar{display:none}
.room{position:relative;flex:0 0 calc(100vw - 24px);max-width:520px;scroll-snap-align:start}
.room:last-child{margin-right:8px}
.room .ph{aspect-ratio:374 / 281}
.room:nth-child(1) img{object-position:50% 56%}
.room:nth-child(2) img{object-position:50% 58%}
.room:nth-child(3) img{object-position:50% 78%}
.room:nth-child(4) img{object-position:50% 62%}
.key{position:absolute;right:18px;top:-10px;width:46px;height:70px;border-radius:23px 23px 5px 5px;background:var(--sun);color:var(--on-sun);transform:rotate(5deg);transform-origin:50% 8px}
.key::before{content:"";position:absolute;left:50%;top:8px;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;background:var(--bg)}
.key i{display:block;padding-top:25px;font:italic 400 29px/1 var(--text)}
.sheet{padding:14px var(--pad) 0}
.dots{display:flex;justify-content:center;gap:9px}
.dots i{width:7px;height:7px;border-radius:50%;border:1.5px solid var(--ink)}
.dots i.is-on{background:var(--ink)}
.sheet-name{font:200 30px/1.2 var(--display);letter-spacing:1.8px;margin-top:12px}
.sheet-line{margin-top:6px}
.sheet .block{margin-top:16px;width:100%}

/* the one boxed control: a solid block, flush, radius 0 */
.block{display:flex;align-items:center;justify-content:center;height:50px;padding:0 18px;background:var(--ink);color:var(--bg);font:500 15px/1 var(--text);text-transform:uppercase;white-space:nowrap}
.block b{font-weight:500}
.block:active{opacity:.82}
.block .btn-b{display:none}
.block.is-done .btn-a{display:none}
.block.is-done .btn-b{display:inline}
.block.is-done{background:var(--sun);color:var(--on-sun)}

/* headings */
.h2{font:200 36px/1.3 var(--display);letter-spacing:-.5px;padding:0 var(--pad)}

/* the timetable: a centred list, the lit sun is now */
.hours{padding-top:84px}
.table{list-style:none;margin-top:20px}
.table li{display:flex;justify-content:center;align-items:baseline;gap:10px;min-height:42px;cursor:pointer}
.table b{font:300 22px/1.2 var(--display);letter-spacing:1px;font-variant-numeric:tabular-nums lining-nums}
.table b::before{content:"";display:inline-block;width:11px;height:11px;margin-right:9px;border-radius:50%;border:1.5px solid var(--ink)}
.table li.is-now b::before{background:var(--sun);border-color:var(--sun)}
.pics{margin-top:56px;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 8px}
.pic figcaption{margin-top:8px;font-size:15px;line-height:1.3}
.pic-a{grid-column:1 / 3}
.pic-a .ph{aspect-ratio:3 / 2}
.pic .ph{aspect-ratio:1 / 1}

/* nights: the lamp board */
.stay{padding-top:84px}
.cal{margin:10px auto 0;max-width:420px;padding:0 var(--pad)}
.cal-head{display:flex;align-items:center;justify-content:space-between;min-height:38px;text-align:left}
.cal-month{display:flex;align-items:center;gap:9px;font:300 22px/1.2 var(--display);letter-spacing:1px}
.cal-key{display:none;position:relative;width:19px;height:28px;border-radius:9.5px 9.5px 3px 3px;background:var(--sun);color:var(--on-sun);text-align:center;transform:rotate(-6deg)}
.cal-key::before{content:"";position:absolute;left:50%;top:4px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--bg)}
.cal-key i{display:block;padding-top:10px;font:italic 400 14px/1 var(--text);letter-spacing:0}
.cal.has-key .cal-key{display:block}
.lamps{display:grid;grid-template-columns:repeat(6,1fr);padding-top:6px}
.lamps button{height:50px;display:grid;justify-items:center;align-content:start;gap:5px;font:400 15px/1.3 var(--text);white-space:nowrap}
.lamps button::before{content:"";box-sizing:border-box;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--ink)}
.lamps button.on::before{background:var(--sun);border-color:var(--sun);outline:2px solid var(--sun);outline-offset:3px}
.lamps button.b::before{border:2px solid var(--sun);background:radial-gradient(circle,var(--sun) 0 3.5px,transparent 4px)}
.ledger-line{margin:34px auto 0;font:400 22px/1.3 var(--display);letter-spacing:-.3px;padding:0 var(--pad);max-width:17em;text-wrap:balance}
.stay-note{margin:14px auto 0;padding:0 var(--pad);max-width:22em;font-size:15px}

/* footer: centred single lines */
.foot{padding:96px var(--pad) 48px}
.foot-mark{width:84px;height:84px}
.foot-name{font:200 36px/1.3 var(--display);letter-spacing:-.5px;margin-top:14px}
.foot .label{margin-top:28px}
.foot-addr{margin-top:8px;line-height:1.9}
.foot-credit{margin:18px auto 0;font-size:15px;max-width:24em}

/* the stay bar: a deeper tone of the hour with a flush solid block */
.bar{position:fixed;inset:auto 0 0 0;height:var(--bar);z-index:40;display:flex;align-items:center;gap:10px;padding-left:18px;background:var(--deep);text-align:left}
.bar-key{display:none;flex:none;position:relative;width:27px;height:40px;border-radius:13.5px 13.5px 4px 4px;background:var(--sun);color:var(--on-sun);text-align:center;transform:rotate(-6deg)}
.bar-key::before{content:"";position:absolute;left:50%;top:5px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--deep)}
.bar-key i{display:block;padding-top:15px;font:italic 400 18px/1 var(--text)}
.bar.has-key .bar-key{display:block}
.bar-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.bar-k{font-size:15px;line-height:1.3;white-space:nowrap}
.bar-v{font:400 21px/1.2 var(--display);letter-spacing:-.3px;white-space:nowrap}
.block-bar{flex:none;height:100%;padding:0 18px;background:transparent;color:var(--ink);border-left:1.5px solid var(--ink)}
.block-bar.is-on{background:var(--ink);color:var(--deep)}
.block-bar.is-done{background:var(--sun);color:var(--on-sun);border-left-color:var(--sun)}

/* short viewports (landscape phones, embedded previews): each mechanic fits one screen */
@media (max-height:520px) and (max-width:899px){
  :root{--top:56px}
  .mark{gap:3px}
  .mark-svg{width:24px;height:24px}
  .clock{font-size:128px}
  .say{font-size:23px;margin-top:6px}
  .follow{margin-top:2px}
  .dial{margin-top:2px}
  .arc{margin-bottom:-42px}
  .view{height:204px}
  .view-cap{padding-top:5px}
  .stops button{padding:3px 0}
  .room .ph{aspect-ratio:374 / 176}
  .sheet{padding-top:10px}
  .sheet-name{margin-top:8px}
  .sheet .block{margin-top:10px;height:46px}
  .lamps button{height:45px}
  .h2{font-size:32px}
}

/* desktop: the same centred column, wider media */
@media (min-width:900px){
  :root{--top:96px;--bar:76px;--pad:48px}
  body{font-size:19px}
  .top{padding:0 40px}
  .mark-svg{width:44px;height:44px}
  .mark-name{font-size:17px}
  .chip{font-size:28px}
  .act{font-size:17px}
  .label{font-size:19px}
  .day{padding-top:calc(var(--top) + 30px)}
  .clock{font-size:clamp(190px,19vw,300px)}
  .say{font-size:40px;letter-spacing:-.8px}
  .dial{max-width:1100px;margin:40px auto 0}
  .arc{margin:0 40px -34px}
  .view{height:min(62vh,640px)}
  .view-time{font-size:44px}
  .stops{max-width:700px;margin:0 auto}
  .lead{font-size:40px;letter-spacing:-.8px;max-width:980px;margin-top:140px}
  .rooms,.hours,.stay{padding-top:150px}
  .rail{gap:16px;padding:14px 40px 0;scroll-padding-left:40px;margin-top:30px}
  .room{flex-basis:520px}
  .sheet{max-width:520px;margin:0 auto;padding-top:24px}
  .sheet-name{font-size:44px}
  .block{height:58px;font-size:17px}
  .h2,.foot-name{font-size:56px}
  .table li{min-height:60px;gap:16px}
  .table b{font-size:32px}
  .pics{max-width:1100px;margin:90px auto 0;grid-template-columns:1.5fr 1fr 1fr;gap:16px}
  .pic-a{grid-column:auto}
  .pic-a .ph,.pic .ph{aspect-ratio:4 / 5}
  .pic figcaption{font-size:17px}
  .cal{max-width:640px;margin-top:26px}
  .cal-month{font-size:30px}
  .lamps button{height:76px;font-size:18px;gap:8px}
  .lamps button::before{width:28px;height:28px}
  .ledger-line{font-size:32px}
  .stay-note,.foot-credit{font-size:17px}
  .bar{padding-left:40px}
  .bar-k{font-size:17px}
  .bar-v{font-size:26px}
  .block-bar{padding:0 44px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
