/* My Go Bag: the trail picture is the world; text sits on a dusk gradient laid over it so it stays readable.
   Warm lamplight gold for the one thing to do, every app tile wearing its own colours.
   Fraunces for the name, system sans for the rest. */
:root{
  --night:#14161c; --wall:#1c1f27; --wall-2:#242833; --line:#2e3340;
  --ink:#f1ede4; --muted:#a3a092; --lamp:#f2c46d; --lamp-ink:#1d1606; --warn:#e2816f;
  --display:"Fraunces",Georgia,"Times New Roman",serif;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0}
body{min-height:100dvh;background:var(--night);color:var(--ink);
  font:16px/1.5 var(--body);
  padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--lamp);outline-offset:3px}
[hidden]{display:none!important}

/* ---------- the trail picture ---------- */
.scene{position:fixed;inset:0;z-index:-1;background:#2a3a4a url(/img/trail.jpg) center 60%/cover no-repeat}
/* phones held upright get the tall picture made for them: sky up top, the two of them in the middle, the trail below */
@media (orientation:portrait) and (max-width:900px){.scene{background-image:url(/img/trail-tall.jpg);background-position:center top}}
.scene::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(14,20,30,.5) 0%,rgba(14,20,30,.08) 24%,rgba(14,20,30,0) 50%,rgba(14,20,30,.25) 85%,rgba(14,20,30,.45) 100%)}
.pack{display:block;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45))}

/* ---------- sign in ---------- */
.door{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 22px;text-align:center}
.door{justify-content:flex-end;padding-bottom:max(48px,12vh)}
.doorTop{display:flex;flex-direction:column;align-items:center}
.door .pack{width:92px;height:92px;margin-bottom:14px}
.door h1{font:600 40px/1.05 var(--display);margin:0 0 6px;letter-spacing:-.01em;text-shadow:0 2px 14px rgba(0,0,0,.55)}
.door p{color:#e9e4d6;margin:0 0 22px;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.door form{width:100%;max-width:320px;display:flex;flex-direction:column;gap:12px}
.door input{width:100%;font:inherit;font-size:18px;padding:15px 16px;border-radius:14px;border:1.5px solid var(--line);
  background:rgba(20,24,32,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--ink);text-align:center;letter-spacing:.04em}
.door input:focus{outline:none;border-color:var(--lamp)}
.lampbtn{min-height:54px;border:0;border-radius:14px;background:var(--lamp);color:var(--lamp-ink);font-weight:700;font-size:17px}
.lampbtn:disabled{opacity:.6}
.err{color:#ffb4a6;text-shadow:0 1px 6px rgba(0,0,0,.7);min-height:24px;font-size:15px;margin:0}

/* ---------- home ---------- */
.home{max-width:880px;margin:0 auto;padding:34px 20px 60px}
.home header{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.home header .pack{width:52px;height:52px;flex:none}
.home h1{font:600 clamp(34px,8vw,46px)/1 var(--display);margin:0;letter-spacing:-.015em;text-shadow:0 2px 16px rgba(0,0,0,.55)}
.greet{color:#efe9da;margin:10px 0 0;font-size:17px;max-width:30ch;text-shadow:0 1px 10px rgba(0,0,0,.65)}
/* leave the middle of the picture (the path and the arch) open before the tiles start */
.rooms{margin-top:clamp(140px,34vh,320px)}
@media (orientation:portrait) and (max-width:900px){.rooms{margin-top:50vh}.door{justify-content:space-between;padding-top:max(36px,6vh);padding-bottom:max(28px,5vh)}.door .pack{width:64px;height:64px;margin-bottom:6px}.door h1{font-size:36px}}
.rooms{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media (min-width:640px){.rooms{grid-template-columns:repeat(3,1fr);gap:18px}}
@media (min-width:1000px){.home{max-width:600px}.rooms{grid-template-columns:repeat(3,1fr);gap:14px;margin-top:30vh}.room h2{font-size:18px}}
.room{position:relative;display:flex;flex-direction:column;justify-content:space-between;aspect-ratio:1/1.08;padding:16px;border-radius:22px;
  text-decoration:none;background:var(--bg);color:var(--fg);overflow:hidden;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 10px 24px rgba(0,0,0,.28);transition:transform .12s ease}
.room:active{transform:scale(.97)}
.room .glyph{width:46px;height:46px}
.room h2{font:600 21px/1.1 var(--display);margin:0 0 4px}
.room p{margin:0;font-size:13px;line-height:1.35;opacity:.75}
.room.empty{background:rgba(20,24,32,.35);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1.5px dashed rgba(255,255,255,.35);box-shadow:none;color:#e6e0d2;justify-content:center;align-items:center;text-align:center}
.room.empty p{opacity:1;max-width:14ch}
.foot{text-shadow:0 1px 6px rgba(0,0,0,.7);margin-top:40px;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;color:#c9c3b4;font-size:14px}
.foot .links{display:flex;gap:8px;flex-wrap:wrap}
.ghost{background:rgba(20,24,32,.55);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:9px 14px;min-height:40px;color:var(--muted);font-size:14px}
.ghost:hover{color:var(--ink);border-color:var(--muted)}
.ghost.armed{color:var(--warn);border-color:var(--warn)}
.tip{background:rgba(20,24,32,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:14px 16px;margin-top:26px;color:var(--muted);font-size:14px}
.tip b{color:var(--ink)}
.tip button{background:none;border:0;color:var(--muted);text-decoration:underline;padding:0 0 0 6px;font-size:13px}

/* frosted panel behind the title and greeting so they read clearly over the picture */
.hello,.doorTop{background:rgba(16,22,34,.34);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);
  border:1px solid rgba(255,255,255,.18);border-radius:22px;box-shadow:0 8px 28px rgba(0,0,0,.22);text-align:center}
.hello{padding:18px 20px 16px;max-width:440px;margin:0 auto}
.hello header{justify-content:center;margin-bottom:0}
.hello .greet{margin:8px auto 0;max-width:32ch}
.doorTop{padding:16px 22px 14px;width:100%;max-width:340px}
.doorTop p{margin:0}
