/* ==========================================================
   LIFE, DIRECTED — Y2K desktop OS skin (prototype)
   Palette + anatomy from the y2k-chrome-design contract.
   Sections: [1] base  [2] desktop  [3] windows  [4] taskbar
             [5] start menu  [6] old-videosite (Sessions)
   ========================================================== */
:root{
  --silver:#d8d4cc; --silver-hi:#f4f2ee; --silver-lo:#9a968e;
  --deepblue:#0a246a; --winblue:#3a6ea5; --aqua:#7fd4ff;
  --violet:#6a3ab2; --ink:#1c1c3a;
  --title1:#0f3bb3; --title2:#4f8ef7;
}
*{box-sizing:border-box; margin:0; padding:0;}
html,body{height:100%;}
body{
  font-family:Tahoma, Verdana, Geneva, sans-serif;
  color:var(--ink); font-size:13px;
  background:#5aa7e8;
}

/* ---------- [1] shared ---------- */
img{image-rendering:auto;}
a{color:var(--deepblue);}
::selection{background:var(--aqua);}

/* ---------- [2] desktop ---------- */
.desktop{
  position:fixed; inset:0; overflow:hidden;
  background:
    linear-gradient(180deg,#0a246a 0%,#2f6fc4 22%,#63a9e8 46%,#a5d4f5 62%,#d9efff 74%,#f3fbff 100%);
}
.cloud{
  position:absolute;
  image-rendering:pixelated;
  opacity:.92;
  pointer-events:none;
}
.cloud.c1{width:340px; top:9%;  left:6%;  animation:drift 90s linear infinite;}
.cloud.c2{width:240px; top:24%; left:52%; animation:drift 130s linear infinite reverse;}
.cloud.c3{width:420px; top:47%; left:20%; animation:drift 170s linear infinite;}
.cloud.c4{width:180px; top:16%; left:78%; animation:drift 110s linear infinite;}
@keyframes drift{
  from{transform:translateX(-12vw);}to{transform:translateX(112vw);}
}
@media (prefers-reduced-motion:reduce){ .cloud{animation:none;} }

.hill{
  position:absolute; left:0; right:0; bottom:0; width:100%; height:20vh; min-height:120px;
  image-rendering:pixelated; pointer-events:none; z-index:1;
}
/* desktop icons */
.desk-icons{
  position:absolute; top:14px; left:10px; z-index:2;
  display:flex; flex-direction:column; flex-wrap:wrap;
  max-height:calc(100% - 70px); gap:10px 6px; align-content:flex-start;
}
.dicon{
  width:88px; text-align:center; cursor:pointer;
  text-decoration:none; border:1px dotted transparent; padding:5px 2px;
}
.dicon svg{width:46px; height:46px; display:block; margin:0 auto 4px;
  filter:drop-shadow(2px 2px 0 rgba(10,36,106,.35));}
.dicon span{
  display:inline-block; font-size:11px; font-weight:bold; color:#fff;
  text-shadow:1px 1px 2px rgba(10,36,106,.9), 0 0 6px rgba(10,36,106,.7);
  padding:1px 4px; line-height:1.35;
}
.dicon:hover span, .dicon:focus-visible span{background:var(--deepblue); outline:1px dotted #fff;}
.bin{position:absolute; right:12px; bottom:58px; z-index:2;}

/* ---------- [3] windows ---------- */
.win{
  position:absolute; z-index:5;
  background:var(--silver);
  border:2px solid;
  border-color:var(--silver-hi) var(--silver-lo) var(--silver-lo) var(--silver-hi);
  box-shadow:4px 4px 0 rgba(10,36,106,.35);
  min-width:270px; max-width:min(560px,92vw);
}
.titlebar{
  display:flex; align-items:center; gap:8px; cursor:default; user-select:none;
  background:linear-gradient(180deg,var(--title2) 0%,var(--title1) 8%,#0a246a 90%);
  color:#fff; font-weight:bold; font-size:12px;
  padding:4px 6px; text-shadow:1px 1px 2px #001142;
}
.titlebar .ico{width:14px; height:14px; flex:0 0 auto;
  background:linear-gradient(135deg,#fff,var(--aqua) 55%,#1d5fd0);
  border:1px solid #fff; border-radius:2px;}
.titlebar .t{flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.btns{display:flex; gap:3px;}
.btns span{
  width:18px; height:16px; line-height:14px; text-align:center; font-size:10px;
  background:linear-gradient(180deg,#fff,#cfd8e8);
  border:1.5px solid; border-color:#fff #678 #678 #fff; color:var(--deepblue);
}
.winbody{padding:14px 16px; font-size:12.5px; line-height:1.55; background:#fff;
  border:1px solid; border-color:var(--silver-lo) #fff #fff var(--silver-lo);
  max-height:min(58vh,430px); overflow:auto;}
.winbody h3{font-size:13px; color:var(--deepblue); margin:12px 0 6px;
  text-transform:uppercase; letter-spacing:1px;}
.winbody h3:first-child{margin-top:0;}
.winbody p{margin:6px 0;}
.winbody .menubar{display:flex; gap:14px; font-size:11px; color:var(--ink);
  border-bottom:1px solid var(--silver-lo); padding:0 0 5px; margin-bottom:8px;}
.doclist{list-style:none; margin:8px 0;}
.doclist li{margin:2px 0;}
.doclist a{
  display:flex; gap:8px; align-items:baseline; text-decoration:none; color:var(--ink);
  padding:4px 6px; border:1px solid transparent;
}
.doclist a:hover{background:#dcebf9; border-color:#9a968e;}
.doclist .n{font-family:Courier New,monospace; font-weight:bold; color:var(--violet); font-size:11px;}
.statusbar{
  font-size:10.5px; color:#333; padding:3px 8px;
  border-top:1px solid var(--silver-lo); background:var(--silver);
}

/* ---------- [4] taskbar ---------- */
.taskbar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  display:flex; align-items:center; gap:6px;
  background:linear-gradient(180deg,#4a7bd8,#1c48a8 60%,#16397f);
  border-top:2px solid #8fb0ee;
  padding:4px 8px; font-size:11px; color:#fff;
}
.start{
  font-weight:bold; font-style:italic; padding:4px 12px; cursor:pointer;
  background:linear-gradient(180deg,#7fce6a,#2f8a1d);
  border:1.5px solid; border-color:#b7f0a8 #14520a #14520a #b7f0a8;
  border-radius:6px 3px 3px 6px; color:#fff; text-shadow:1px 1px 1px #0c3a04;
  display:inline-flex; align-items:center; gap:6px;
}
.start:hover{filter:brightness(1.12);}
.start .flag{font-size:14px;}
.quick{display:flex; gap:4px; align-items:center;}
.quick a{
  display:inline-block; padding:4px 9px; text-decoration:none; color:#fff;
  background:linear-gradient(180deg,#6f9cee,#2c57b8);
  border:1.5px solid; border-color:#a9c6f5 #142f6e #142f6e #a9c6f5; border-radius:3px;
}
.quick a:hover{background:linear-gradient(180deg,#8fb5f5,#3d6ad0);}
.quick a[aria-current="page"]{outline:1px dotted #fff;}
.tasktabs{flex:1; overflow:hidden; white-space:nowrap;}
.tray{
  background:linear-gradient(180deg,#1c48a8,#0e2f77); border-left:1px solid #8fb0ee;
  padding:4px 10px; font-weight:bold; display:flex; gap:10px; align-items:center;
}
#clock{font-variant-numeric:tabular-nums; min-width:86px; text-align:center;}

/* ---------- [5] start menu ---------- */
.startmenu{
  position:fixed; left:6px; bottom:40px; z-index:70;
  width:300px; display:none;
  background:var(--silver);
  border:2px solid;
  border-color:var(--silver-hi) var(--silver-lo) var(--silver-lo) var(--silver-hi);
  box-shadow:5px 5px 0 rgba(10,36,106,.4);
}
.startmenu.open{display:flex;}
.sm-side{
  width:34px; flex:0 0 auto;
  background:linear-gradient(180deg,var(--title2),var(--title1) 40%,#0a246a);
  position:relative; overflow:hidden;
}
.sm-side b{
  position:absolute; bottom:8px; left:50%; transform:translateX(-50%) rotate(180deg);
  writing-mode:vertical-rl; color:#fff; font-size:13px; font-style:italic;
  text-shadow:1px 1px 2px #001142; white-space:nowrap;
}
.sm-main{flex:1; padding:4px 0; font-size:12.5px;}
.sm-head{
  padding:6px 12px 4px; font-size:10px; font-weight:bold; letter-spacing:2px;
  text-transform:uppercase; color:var(--winblue); border-bottom:1px solid var(--silver-lo);
}
.sm-item{
  display:flex; align-items:center; gap:10px; padding:7px 12px;
  text-decoration:none; color:var(--ink); cursor:pointer;
}
.sm-item:hover{background:var(--deepblue); color:#fff;}
.sm-item svg{width:22px; height:22px; flex:0 0 auto;}
.sm-sep{height:1px; background:var(--silver-lo); margin:4px 8px;}
.sm-foot{
  border-top:1px solid var(--silver-lo); padding:6px 12px; font-size:11px;
  color:#444; display:flex; justify-content:space-between;
}

/* ---------- [6] Sessions — old video site ---------- */
body.vsite{background:#f5f5f5; overflow-y:auto; padding-bottom:70px;}
.vtop{
  display:flex; align-items:center; gap:16px; padding:10px 18px;
  background:linear-gradient(180deg,#f7f7f7,#dedede 88%,#c9c9c9);
  border-bottom:1px solid #999;
}
.vlogo{
  font-size:26px; font-weight:900; letter-spacing:-1px; text-decoration:none;
  background:linear-gradient(180deg,#fff 0%,#b9cbe8 35%,#5472ab 50%,#c7dcf7 62%,#fff 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(1px 1px 0 rgba(10,36,106,.45));
  display:flex; align-items:center; gap:6px; font-style:italic;
}
.vlogo .play{
  display:inline-block; width:24px; height:18px; border-radius:4px;
  background:linear-gradient(135deg,#ff9a3d,#e0471d);
  box-shadow:inset 0 1px 0 #ffd2a8, 1px 1px 0 rgba(0,0,0,.3);
  color:#fff; font-size:11px; line-height:19px; text-align:center;
  -webkit-text-fill-color:#fff;
}
.vsearch{flex:1; display:flex; gap:6px; max-width:560px;}
.vsearch input{
  flex:1; padding:6px 10px; font-family:inherit; font-size:13px;
  border:2px inset #b5b5b5; background:#fff; outline:none;
}
.vsearch button{
  padding:6px 16px; font:bold 12px Tahoma,sans-serif; cursor:pointer;
  background:linear-gradient(180deg,#fff,#d3d3d3);
  border:2px solid; border-color:#fff #808080 #808080 #fff;
}
.vsearch button:active{border-color:#808080 #fff #fff #808080;}
.vaccount{font-size:11px; color:#444;}
.vaccount a{color:#06c;}
.vtabs{
  display:flex; gap:2px; padding:0 18px; background:linear-gradient(180deg,#fbfbfb,#e8e8e8);
  border-bottom:1px solid #999; font-size:12px;
}
.vtab{padding:7px 18px 6px; text-decoration:none; color:#03c; position:relative; top:1px;}
.vtab.on{
  background:#fff; border:1px solid #999; border-bottom:1px solid #fff; font-weight:bold; color:#000;
}
.vlayout{
  display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:20px;
  max-width:980px; margin:18px auto; padding:0 16px; align-items:start;
}
.vmain{min-width:0;}
.playerbox{
  background:#000; border:1px solid #444; position:relative; aspect-ratio:4/3;
  max-height:430px; margin:0 auto; overflow:hidden;
}
.playerbox a{display:block; height:100%; position:relative; text-decoration:none;}
.playerbox img{width:100%; height:100%; object-fit:cover; display:block; opacity:.85;}
.playerbox img:hover{opacity:1;}
.playbig{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  pointer-events:none;
}
.playbig span{
  display:flex; align-items:center; justify-content:center;
  width:78px; height:56px; border-radius:12px; font-size:26px; color:#fff;
  background:rgba(10,10,10,.62); border:2px solid rgba(255,255,255,.85);
  text-shadow:1px 1px 2px #000;
}
.playerbox figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:6px 10px;
  font-size:11px; color:#ddd; background:rgba(0,0,0,.55);
}
.vtitle{font-size:20px; font-weight:bold; margin:12px 0 2px; line-height:1.25;}
.vmeta{font-size:11.5px; color:#555; margin-bottom:8px;}
.vmeta .stars{color:#e8a000; letter-spacing:1px;}
.vactions{
  display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 6px; font-size:11.5px;
}
.vactions span{color:#555;}
.embedbox{
  margin-top:10px; background:#f0f0f0; border:1px solid #bbb; padding:8px 10px;
  font-size:11px; color:#444;
}
.embedbox code{
  display:block; margin-top:5px; font-family:Courier New,monospace; font-size:11px;
  background:#fff; border:1px inset #bbb; padding:5px 8px; color:#0a246a;
  overflow-wrap:anywhere;
}
.vside{min-width:0;}
.vside h2{
  font-size:13px; margin-bottom:8px; color:#333;
  border-bottom:2px solid #ddd; padding-bottom:4px;
}
.vside h2 small{font-weight:normal; color:#777;}
.pl-item{
  display:flex; gap:10px; padding:8px 6px; text-decoration:none;
  border-bottom:1px solid #e2e2e2; align-items:flex-start;
}
.pl-item:hover{background:#eef5ff;}
.pl-item .thumb{
  width:110px; aspect-ratio:4/3; flex:0 0 auto; position:relative;
  border:1px solid #999; background:#000; overflow:hidden;
}
.pl-item .thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.pl-item .dur{
  position:absolute; right:2px; bottom:2px; font-size:10px; font-weight:bold;
  color:#fff; background:rgba(0,0,0,.75); padding:0 3px;
}
.pl-item .pt{font-size:12px; font-weight:bold; color:#03c; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.pl-item:hover .pt{text-decoration:underline;}
.pl-item .pm{font-size:10.5px; color:#777; margin-top:4px; line-height:1.4;}
.vfoot{
  max-width:980px; margin:20px auto 0; padding:12px 18px; border-top:1px solid #ccc;
  font-size:11px; color:#888; text-align:center;
}
.vfoot .counter{
  display:inline-block; background:#111; color:#5cff5c; font-family:Courier New,monospace;
  font-weight:bold; letter-spacing:3px; padding:2px 8px; border:2px inset #888; margin:0 6px;
}

/* mobile */
@media (max-width:760px){
  .vlayout{grid-template-columns:1fr;}
  .quick{display:none;}
  .desk-icons{max-height:calc(100% - 120px);}
  .win{position:relative !important; max-width:100% !important; margin:10px;
       top:auto !important; left:auto !important; right:auto !important;}
  .desktop{position:static; padding-bottom:56px; min-height:100vh;}
  .cloud{display:none;}
.hill{display:none;}
}

/* ---------- [7] inner-page content (articles, lists, folders) ---------- */
.inner-body{max-height:none;}
.crumb{font-family:Courier New,monospace; font-size:10.5px; color:#555; margin-bottom:8px;
  background:#fff; border:1px inset #bbb; padding:4px 8px;}
.crumb b{color:var(--deepblue);}
.article-header{margin-bottom:10px;}
.article-kicker{display:inline-block; font-size:10px; font-weight:bold; color:#fff;
  background:linear-gradient(90deg,var(--violet),#9a6ff0); padding:2px 8px;
  border-radius:8px; letter-spacing:1px; margin-bottom:8px;}
.article-title{font-size:23px; color:var(--deepblue); line-height:1.2; margin:6px 0;}
.article-deck{font-style:italic; color:#333; margin:6px 0; line-height:1.5;}
.article-meta{font-size:11px; color:#666; border-bottom:1px solid var(--silver-lo);
  padding-bottom:8px; margin-bottom:12px;}
.article-body p{margin:10px 0; line-height:1.65; font-size:13px;}
.article-body sup a{color:var(--violet); text-decoration:none; font-weight:bold;}
.pullquote{background:#f2f0ea; border:2px solid;
  border-color:var(--silver-lo) var(--silver-hi) var(--silver-hi) var(--silver-lo);
  padding:14px 16px; font-size:16px; font-weight:bold; color:var(--deepblue);
  margin:16px 0; line-height:1.4;}
.article-figure{margin:16px 0;}
.article-figure img{width:100%; height:auto; border:2px solid var(--silver-lo); background:#fff;}
.article-figure figcaption{font-size:10.5px; color:#555; margin-top:6px; line-height:1.5;}
.article-notes{margin-top:18px; border-top:2px solid var(--silver-lo); padding-top:10px;}
.article-notes h2{font-size:13px; color:var(--deepblue); text-transform:uppercase; letter-spacing:1px;}
.article-notes ol{margin:8px 0 8px 22px; font-size:11px; color:#333; line-height:1.5;}
.article-notes li{margin:6px 0;}
.back-link{display:inline-block; margin-top:14px; padding:6px 16px; font-weight:bold;
  font-size:12px; color:#04204d; text-decoration:none; border-radius:10px;
  background:linear-gradient(180deg,#fff 0%,#cfeaff 45%,#8fd0ff 50%,#3f9df0 100%);
  border:2px solid; border-color:#eaf7ff #1c66b8 #1c66b8 #eaf7ff;}
.back-link:hover{background:linear-gradient(180deg,#fff,#e0f4ff 45%,#a8e0ff 50%,#5cb2f8);}
.index-list{list-style:none;}
.index-list li{border-bottom:1px solid #e0ddd5;}
.index-list a{display:flex; gap:10px; align-items:baseline; padding:9px 6px;
  text-decoration:none; color:var(--ink); flex-wrap:wrap;}
.index-list a:hover{background:#dcebf9;}
.index-number{font-family:Courier New,monospace; font-weight:bold; color:var(--violet); font-size:11px;}
.index-title{font-weight:bold; flex:1; min-width:200px;}
.index-meta{font-size:11px; color:#777;}
.project{display:flex; gap:12px; align-items:flex-start;}
.project-title{font-size:16px; color:var(--deepblue);}
.project-body p{margin:6px 0;}
.tag-row{margin-top:6px;}
.tag{display:inline-block; font-size:10px; font-weight:bold; color:#fff;
  background:linear-gradient(90deg,var(--violet),#9a6ff0); padding:2px 8px;
  border-radius:8px; margin-right:6px; letter-spacing:1px;}
.text-link{color:var(--deepblue); font-weight:bold;}
.shelf-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; margin-top:8px;}
.shelf-item{background:linear-gradient(180deg,#fdfeff,#dcebf9); border:2px solid;
  border-color:#fff #7d94b8 #7d94b8 #fff; padding:10px 12px;}
.shelf-item h2{font-size:13px; color:var(--deepblue); margin-bottom:4px;}
.shelf-item p{font-size:11.5px; color:#333; line-height:1.5;}
.page-title{font-size:22px; color:var(--deepblue); margin-bottom:4px;}
.page-deck{font-style:italic; color:#444; margin-bottom:10px;}
.section-heading{display:flex; justify-content:space-between; font-size:12px; font-weight:bold;
  color:var(--deepblue); text-transform:uppercase; letter-spacing:1px;
  border-bottom:2px solid var(--silver-lo); padding-bottom:6px; margin-bottom:6px;}
.empty-folder{padding:40px 20px; text-align:center; color:#666;}
.empty-folder .big{font-size:34px; margin-bottom:10px;}
.empty-folder p{margin:6px 0; font-size:12px;}

/* inner-page shell */
body.inner{background:linear-gradient(180deg,#0a246a 0%,#2f6fc4 22%,#63a9e8 46%,#a5d4f5 62%,#d9efff 74%,#f3fbff 100%);
  background-attachment:fixed; padding:34px 14px 80px;}
body.inner::before{content:"✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧";
  position:fixed; inset:0; pointer-events:none; color:rgba(255,255,255,.6);
  font-size:13px; letter-spacing:44px; line-height:120px;
  text-shadow:0 0 6px #fff, 0 0 14px var(--aqua);}
.page-win{position:relative; max-width:760px; margin:0 auto; z-index:1;}
.wide-win{max-width:860px;}

/* ---------- [8] doc-style content pages (multi-window stack) ---------- */
.stack{max-width:880px; margin:0 auto; position:relative; z-index:1;}
.stack .win{position:relative; left:auto; top:auto; right:auto; max-width:100%; margin:22px 0;}
.stack .winbody{max-height:none; background:var(--silver);}
.banner{
  background:linear-gradient(180deg,#eaf6ff 0%,#bfe3ff 45%,#7fb8ef 55%,#d3ecff 100%);
  border:2px solid var(--winblue);
  box-shadow:0 0 0 2px #fff inset, 3px 3px 0 rgba(10,36,106,.35);
  padding:6px 10px; font-weight:bold; font-size:12px; color:var(--deepblue);
  overflow:hidden; white-space:nowrap; margin-bottom:18px;
}
.banner .track{display:inline-block; animation:banner-scroll 22s linear infinite;}
@keyframes banner-scroll{from{transform:translateX(60%);}to{transform:translateX(-100%);}}
@media (prefers-reduced-motion:reduce){ .banner .track{animation:none;} }
.chrome-heading{
  font-size:34px; font-weight:900; letter-spacing:1px; text-align:center;
  background:linear-gradient(180deg,#ffffff 0%,#b9cbe8 35%,#5472ab 50%,#c7dcf7 62%,#ffffff 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(2px 2px 0 rgba(10,36,106,.45));
  text-transform:uppercase; margin-bottom:6px;
}
.chrome-heading small{display:block; font-size:12px; letter-spacing:6px; margin-top:4px;}
.sparkle-div{text-align:center; color:var(--deepblue); font-size:14px; letter-spacing:14px;
  margin:6px 0; text-shadow:0 0 5px var(--aqua);}
.doc-footer{
  text-align:center; font-size:11px; color:#eaf6ff; margin-top:26px;
  text-shadow:1px 1px 2px rgba(10,36,106,.8);
}
.doc-footer .counter{
  display:inline-block; background:#111; color:#5cff5c; font-family:Courier New,monospace;
  font-weight:bold; letter-spacing:3px; padding:3px 8px; border:2px inset #888; margin:6px 4px;
  font-size:13px;
}
.doc-footer a{color:#fff;}
@media (max-width:620px){ .chrome-heading{font-size:24px;} }
