/* อยู่บ้าน — yoobaan.club coming soon · Seven Days */
@font-face{font-family:"Plex Thai";src:url(fonts/plexthai-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"K2D";src:url(fonts/k2d-800.woff2) format("woff2");font-weight:800;font-display:swap}

/* พาเลต YooBaan Seven Days — 0 จันทร์ … 6 อาทิตย์ (อังคาร/พุธ ปรับเข้มขึ้นเล็กน้อยเพื่อ contrast) */
:root{--ground:#F5CE3E;--ink:#27221C}
[data-day="0"]{--ground:#F5CE3E;--ink:#27221C}
[data-day="1"]{--ground:#F29BB8;--ink:#6E1F27}
[data-day="2"]{--ground:#1F7A45;--ink:#FFF8E9}
[data-day="3"]{--ground:#E8834A;--ink:#40271D}
[data-day="4"]{--ground:#C7DEF3;--ink:#233671}
[data-day="5"]{--ground:#493371;--ink:#FAF3E7}
[data-day="6"]{--ground:#C92A30;--ink:#FFF6E4}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--ground);color:var(--ink);font-family:"Plex Thai",system-ui,sans-serif;font-weight:500;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}
html.animate{transition:background-color .4s ease,color .4s ease}
body{margin:0}

.screen{height:100vh;height:100svh;min-height:300px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;
  padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right),3.2vw) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left),3.2vw)}

.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;line-height:1.5}
header.bar{letter-spacing:.14em;padding-bottom:clamp(10px,2vh,18px);border-bottom:1px solid currentColor}
.foot{padding-top:clamp(10px,1.6vh,14px);border-top:1px solid currentColor;letter-spacing:.02em}

.hero{display:grid;place-content:center;justify-items:center;text-align:center;min-width:0}
.day-name{margin:0;font-size:clamp(15px,1.5vw,18px);line-height:1.5}
.brand{margin:0;font:800 min(22vw,34svh,232px)/1.35 "K2D",sans-serif;letter-spacing:-.048em;white-space:nowrap}
.opening{margin:clamp(8px,1.4vh,14px) 0 0;font-size:clamp(17px,1.8vw,22px);line-height:1.5}

.days{display:flex;justify-content:center;gap:clamp(0px,calc((100vw - 344px)/14),10px);padding-bottom:clamp(10px,2vh,18px)}
.days button{position:relative;width:44px;height:44px;display:grid;place-items:center;border:0;padding:0;background:none;border-radius:50%;cursor:pointer;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.days span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--ground);color:var(--ink);border:1.5px solid var(--ring);font-size:12px;line-height:1;transition:transform .15s}
.days{--ring:var(--ink)}
.days button:hover span{transform:scale(1.08)}
.days button[aria-pressed="true"] span{outline:2px solid var(--ring);outline-offset:3px}
.days button.today::after{content:"";position:absolute;left:50%;bottom:-4px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--ring)}
.days button:focus-visible{outline:2px dashed var(--ring);outline-offset:1px}

@media (max-width:640px){.mid{display:none}.bar{font-size:12px}header.bar{letter-spacing:.1em}}
@media (max-height:430px) and (orientation:landscape){
  .screen{padding-top:8px;padding-bottom:6px}
  header.bar,.foot{padding-block:4px}
  .brand{font-size:min(20vw,27svh);line-height:1.3}
  .day-name{font-size:14px}.opening{font-size:15px;margin-top:0}
  .days{padding-bottom:0}.days button{height:40px}.days span{width:30px;height:30px}
}
@media (prefers-reduced-motion:reduce){html.animate{transition:none}.days span{transition:none}}
